-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effect Plot for Linear Models #604
Comments
Hi Mattharrison, Have you tried Random Forrest? It can help you create a feature importance chart by using python. I found a good example to create the feature importance chart: http://www.agcross.com/2015/02/random-forests-scikit-learn/ Is this kind of solution you are asking about? If not, please clarify and I can continue help on this issue. |
@mattharrison great suggestion - I think an effect plot would be a very interesting feature to add to Matplotlib has a box plot implementation, so it would be straightforward to pass a 2D array of effects to produce this plot. However, I'm especially intrigued about the possibility of also including a single point as in 5.1.5 (or points). Perhaps we could provide this functionality by having the user pass in the point data to be plotted as test data? @smile2snail thank you for chiming in here- I think what @mattharrison is looking for is a new visualizer that can create this visualization for regression models. Please also note that Yellowbrick does already have a FeatureImportances visualizer that does something very similar to the plot you suggested! @mattharrison as always, thank you for being an excellent resource for new visualizers! |
@bbengfort I am interested in working on the issue. |
@souravsingh that'd be great - feel free to open a PR when you're ready to discuss it! |
Hello @bbengfort , The code snippet looks like this model = LinearRegression()
viz = effect(model=model)
viz.fit(dataset,Y)
viz.finalize() I wish to hear your reviews on this and any suggestion would be valuable. |
@naresh-bachwani Thanks for commenting on this issue. We are just coming off a hiatus and it might take a bit to get to this but we will asap. I encourage you to open a PR. Our contributing guide can be found @ http://www.scikit-yb.org/en/latest/contributing.html |
Dear @bbengfort @mattharrison @rebeccabilbro @lwgray, |
Hello @lwgray, |
Hi @naresh-bachwani actually I propose that this plot should go into Why don't you go ahead and start with it there, and in the course of reviewing the PR we can see if it continues to make sense in the regressor module? |
@naresh-bachwani I'm slowly getting back involved with PRs and issues - I noticed that you currently have two PRs open, #806 and #807; I really appreciate your enthusiasm and desire to contribute to YB - but perhaps we could focus on getting those shipped before opening a new PR for effect plots? We're quite a small group and we do this in our spare time -- as you can probably tell we don't have a lot of surface area to deal with a large number of PRs! |
Hello @bbengfort, |
Describe the solution you'd like
Would love to have an Effect Plot for aiding with interpreting linear models. I realize that a feature importance plot does some of this. An effect plot shows the weights as a bar plot so you can see whether the impact is positive or negative and also how large the variance is.
Examples
There is a great example here
https://christophm.github.io/interpretable-ml-book/limo.html#visual-parameter-interpretation
My scouring has not turned up any Python code to generate this plot in the wild.
The text was updated successfully, but these errors were encountered: