In scikit learn, I was doing multi-class classification using MultinomialNB for labelled text data. While predicting I used "predict_proba" feature of multinomialNB
clf=MultinomialNB()
print(clf.fit(X_train,Y_train))
clf.predict_proba(X_test[0])
As a result I got a vector of probability values for each class which added upto 1. I know this is because of softmax cross entropy function.
array ( [ [ 0.01245064, 0.02346781, 0.84694063, 0.03238112, 0.01833107, 0.03103464, 0.03539408 ] ] )
My question here is, while predicting I need to have binary_cross_entropy so that I get a vector of probability values for each class between 0 and 1 independent of each other. So how do i change the function while doing prediction in scikit-learn?