I want to perform probabilistic binary classification (0,1). My dataset is imbalanced.Thus, I use SVC with some class weights assigned to each class.
After fitting SVC to the test dataset, I use predict_proba
to get the probabilistic classification results. However, SVC predicts training examples as 1 with probabilistic classification results higher than 0.4.
I think the default threshold for predict_proba
is 0.5.
I wonder that in case of using class_weights
, does default threshold chage automatically?
Ex:
[0.58497606, 0.41502394] >> The predicted label for result of predict_probaba function is 1.