We are writing a classification code in python, we want to obtain the probablities of sample belonging to each class as our output . How do we obtain probablities instead of class label from the classifier?
valid question