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.

Check if an estimator is fitted and visualize without modification

See original GitHub issue

Don’t call fit on an already fitted estimator.

ModelVisualizer objects should be able to accept either a fitted or unfitted model; we shouldn’t call fit on the model if it’s already fitted, especially if fit() is a hook for drawing.

Moreover there are a series of visualizers that use fit() to draw themselves but only need information from the model, there should be a shortcut function for drawing these things (unless they need data).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bbengfortcommented, Jan 3, 2018

Totally understood, no worries! The links and notes are very helpful!

0reactions
rebeccabilbrocommented, May 3, 2019

Awesome, thanks @amueller — this will be super helpful for our roadmap planning (happening later this month). Stay tuned!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the best way to test whether an sklearn model has ...
So in general I would recommend calling model.predict() and letting the specific algorithm handle the best way to check whether it is already...
Read more >
sklearn.utils.validation.check_is_fitted
Perform is_fitted validation for estimator. Checks if the estimator is fitted by verifying the presence of fitted attributes (ending with a trailing underscore ......
Read more >
Visualizing Decision Trees with Python (Scikit-learn, Graphviz ...
In order to visualize decision trees, we need first need to fit a decision tree model using scikit-learn. If this section is not...
Read more >
Step 4: Train a Model - Amazon SageMaker
For more information about SageMaker built-in framework estimators, see. ... To start model training, call the estimator's fit method with the training and ......
Read more >
3.6. scikit-learn: machine learning in Python
See also. Data science in Python. The Statistics in Python chapter may also be of interest ... Estimated parameters: When data is fitted...
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