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

enh: Add a .frame() method to Displays #1359

Open
glemaitre opened this issue Feb 25, 2025 · 1 comment
Open

enh: Add a .frame() method to Displays #1359

glemaitre opened this issue Feb 25, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@glemaitre
Copy link
Member

Right now, our displays have a single method .plot (and potentially .set_style). I most cases, it would be great to expose a .frame property returning a dataframe containing all the information allowing to make the plot.

For instance, for the feature importance, it could be a dataframe with the name of the features as row and the importance as column. For the ROC curve, it could be the fpr, tpr, and the associated thresholds.

@glemaitre glemaitre changed the title enh: Add a .frame property to display enh: Add a .frame property to Displays Feb 25, 2025
@glemaitre glemaitre changed the title enh: Add a .frame property to Displays enh: Add a .frame() method to Displays Feb 25, 2025
@glemaitre
Copy link
Member Author

Actually, I think that we could make it a method such that we can offer the possibility to have name easy to index vs. name to make the rendering nice, in the same spirit of the flat_index.

@MarieSacksick MarieSacksick added the enhancement New feature or request label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants