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

plot top n features in contours #2291

Closed

Conversation

bernardbeckerman
Copy link
Contributor

Summary:
This diff updates report_utils to plot only the top features, ranked by feature importance, rather than skipping plotting altogether when the number of features grows too large.

  • Adds parameters_to_use arg to interact_contour and interact_contour_plotly, which subsets which range parameters are plotted in contour plots and sets their order.
  • Adds importance arg to _get_objective_v_param_plots (pointer) to subset the top n parameters by importance on a per-metric basis, then provide those as parameters_to_use when calling interact_contour_ploty.

Differential Revision: D50501707

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Mar 19, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D50501707

bernardbeckerman added a commit to bernardbeckerman/Ax that referenced this pull request Apr 1, 2024
Summary:

This diff updates report_utils to plot only the top features, ranked by feature importance, rather than skipping plotting altogether when the number of features grows too large.

* Adds `parameters_to_use` arg to `interact_contour` and `interact_contour_plotly`, which subsets which range parameters are plotted in contour plots and sets their order.
* Adds `importance` arg to  `_get_objective_v_param_plots` ([pointer](https://www.internalfb.com/diff/D50501707?permalink=371874009149429)) to subset the top n parameters by importance on a per-metric basis, then provide those as `parameters_to_use` when calling `interact_contour_ploty`.

Reviewed By: dme65

Differential Revision: D50501707
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D50501707

Summary:

This diff updates report_utils to plot only the top features, ranked by feature importance, rather than skipping plotting altogether when the number of features grows too large.

* Adds `parameters_to_use` arg to `interact_contour` and `interact_contour_plotly`, which subsets which range parameters are plotted in contour plots and sets their order.
* Adds `importance` arg to  `_get_objective_v_param_plots` ([pointer](https://www.internalfb.com/diff/D50501707?permalink=371874009149429)) to subset the top n parameters by importance on a per-metric basis, then provide those as `parameters_to_use` when calling `interact_contour_ploty`.

Reviewed By: dme65

Differential Revision: D50501707
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D50501707

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2967164.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants