We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c0effc commit 195afe3Copy full SHA for 195afe3
src/linearboost/sefr.py
@@ -304,6 +304,7 @@ def predict_proba(self, X):
304
Returns the probability of the sample for each class in the model,
305
where classes are ordered as they are in ``self.classes_``.
306
"""
307
+ check_is_fitted(self)
308
norm_coef = np.linalg.norm(self.coef_)
309
if norm_coef == 0:
310
# Handle the case of a zero-norm coefficient vector to avoid division by zero
0 commit comments