main.py52 chars3 lines
model.predict_proba(x_test)
is used in scikit-learn to predict the probabilities of each class. It will output an array where each element is the probability of the corresponding class label.
model.predict(x_test)
is used to predict the class labels for the samples in x_test
.
The other two options model.predict_probabilities(x_test)
and model.predict(x_test, prob=true)
are invalid as there is no built-in method with those names in the standard scikit-learn library.
gistlibby LogSnag