which of these code snippets work group of answer choices model.predict_proba(x_test) model.predict(x_test) model.predict_probabilities(x_test) model.predict(x_test, prob=true) in python

main.py
model.predict_proba(x_test)  
model.predict(x_test)
52 chars
3 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