You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add common test to ensure all(predict(X[mask]) == predict(X)[mask]) #10420
I don't think we currently test that estimator predictions/transformations are invariant whether performed in batch or on subsets of a dataset. For some fitted estimator est, data X and any boolean mask mask of length X.shape[0], we need:
all(est.method(X[mask]) ==est.method(X)[mask])
where method is any of {predict, predict_proba, decision_function, score_samples, transform}. Testing that predictions for individual samples match the predictions across the dataset might be sufficient. This should be added to common tests at sklearn/utils/estimator_checks.py
Indeed, #9174 reports that this is broken for one-vs-one classification. :'(
Activity
Johayon commentedon Jan 8, 2018
Hi, could I take this issue ?
jnothman commentedon Jan 8, 2018