Confidence map

Hello everyone,
I am working on RF classifications and I would like to know how we get the confidence maps that come out of the algorithms. Is it possible to obtain these maps following a randomforest performed under python or do they only exist in SNAP?
Thank you for your answers,
Have a nice day.