question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Common test to check that estimator state does not change at transform/predict/predict_proba time

See original GitHub issue

Description

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kiotecommented, Sep 27, 2016

sorry, have a tough days at work, but hope to continue here soon

1reaction
MechCodercommented, Sep 22, 2016

Sure, thanks! I’m removing the Need Contributor label.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found