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.

Add a sklearn.plot Module

See original GitHub issue

Here is an overview of the work done so far relating to plotting:

To help control the scope of sklearn.plot, I propose we only do plotting on the axes level and not the figure level. The user would pass in the axes as a keyword. As a convenience, the default of axes will be None. Only in this case, will the plotting function generate a axes/figure to plot on.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:60 (60 by maintainers)

github_iconTop GitHub Comments

1reaction
adrinjalalicommented, Mar 20, 2019

FWIW, I’d also prefer plot to inspect, since it’s more intuitive for most users to find it. People are more likely trying to plot their models than inspect their models (when searching on search engines for instance, or looking at the possible autocomplete options on their IDE).

1reaction
GaelVaroquauxcommented, Mar 19, 2019

IMO inspect is more versatile than plot

no strong opinion, will vote +1 for both name. Maybe plot is more straightforward?

“inspect” is loaded in Python (it’s a module in the standard library). I would avoid using the same name.

Again I’m interested in creating the new module before 0.21 and move plot_tree and plot_partial_dependence there. Ideally we should also reach consensus on the API (e.g., axes level/ figure level).

This shouldn’t delay 0.21. Our goal is to release early, and hopefully release early again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First steps with Scikit-plot - Read the Docs
The recommended way to start using Scikit-plot is to just go through the documentation for the various modules and choose which plots you...
Read more >
5. Visualizations — scikit-learn 1.1.3 documentation
Scikit-learn defines a simple API for creating visualizations for machine learning. The key feature of this API is to allow for quick plotting...
Read more >
How To Display A Plot In Python using Matplotlib - ActiveState
Click to display a Plot in Python using Matplotlib's two APIs. Create simple, scatter, histogram, spectrum and 3D plots.
Read more >
scikit-plot - PyPI
An intuitive library to add plotting functionality to scikit-learn objects.
Read more >
Graph Plotting in Python | Set 1 - GeeksforGeeks
We can add a legend to our plot using .legend() function. ... If overriding is not done, pyplot module uses the auto-scale feature...
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