Common test to check that estimator state does not change at transform/predict/predict_proba time
See original GitHub issueDescription
I feel the design of https://github.com/scikit-learn/scikit-learn/pull/6607 could have been better thought of, if we had a common test that tests that learning happens only during fit time. We should check __dict__
after fit and after transform and their state should not change.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Scikit-learn predict_proba gives wrong answers - Stack Overflow
It's weird that the internal cross validation done by libsvm for scaling the probabilities does not fail (explicitly) in this case.
Read more >Developing scikit-learn estimators
The next thing you will probably want to do is to estimate some parameters in the model. This is implemented in the fit()...
Read more >Difference Between predict and predict_proba in scikit-learn
The predict method is used to predict the actual class while predict_proba method can be used to infer the class probabilities (i.e. the ......
Read more >How to Make Predictions with scikit-learn
In this tutorial, you will discover exactly how you can make classification and regression predictions with a finalized machine learning model ...
Read more >3.6. scikit-learn: machine learning in Python
Train set error is not a good measurement of prediction performance. You need to leave out a test set. In general, we should...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sorry, have a tough days at work, but hope to continue here soon
Sure, thanks! I’m removing the Need Contributor label.