Which of these classifiers does not provide a predict_proba method?
-
A
GaussianNB
-
B
LinearSVC
Correct answer
-
C
LogisticRegression
-
D
RandomForestClassifier
Correct answer
B. LinearSVC
16 views
Explanation
LinearSVC exposes decision_function only; its scores are not calibrated into probabilities, so predict_proba is unavailable.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ