Skip to content
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

Add new vi plots #196

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Add new vi plots #196

merged 3 commits into from
Nov 25, 2024

Conversation

aloctavodia
Copy link
Member

Computation of variable importance is splitted into one function that computes the importance and two that plots the results.

For example.

vi_results = pmb.compute_variable_importance(idata_bikes, μ_, X);

vi_results is a dictionary, we can do

pmb.plot_variable_importance(vi_results, X);

vi

and/or

pmb.plot_scatter_submodels(vi_results, grid=(2,2))

scatter

This last function needs more love, for instance, we could have error bars per observation, as we did for Friedman's example, and we need to improve labels, aesthetics, etc.

There is also a function to plot the variable inclusion

pmb.plot_variable_inclusion(idata_bikes, X)

inclusion

This could be used as a guide for setting the parameters for the backward_VI method

@aloctavodia aloctavodia merged commit 4ef2dd0 into main Nov 25, 2024
4 checks passed
@aloctavodia aloctavodia deleted the vip branch November 25, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant