-
Notifications
You must be signed in to change notification settings - Fork 312
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
Global Sensitivity Analysis for Categorical Features #2357
Conversation
This pull request was exported from Phabricator. Differential Revision: D56070326 |
Summary: Sobol sensitivity analysis and the sensitivity plots currently do not support categorical features. The plots in particular error out when categorical features are present because the sensitivity analysis (both first order and gradient-based). This commit adds support for categorical features by - introducing a uniformly random integer-valued point distribution for categorical and ordinal features in `SobolSensitivity`, in line with the usual integer-valued encoding, - ignoring the sign of the derivative-based sensitivity analysis of the categorical features, since the `CategoricalKernel` is non-differentiable, and the "direction" of categorical features is not well defined, - adding a separate case for categorical features to the sensitivity analysis plot, stating that the categorical features "affect" but don't "increase" or "decrease" the metric. Note that the results for the categorical features are still first order Sobol indices, so all the results in the plot are on the same scale. Differential Revision: D56070326
e425c26
to
c36dd93
Compare
This pull request was exported from Phabricator. Differential Revision: D56070326 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2357 +/- ##
==========================================
+ Coverage 94.91% 94.92% +0.01%
==========================================
Files 491 495 +4
Lines 47788 48049 +261
==========================================
+ Hits 45356 45609 +253
- Misses 2432 2440 +8 ☔ View full report in Codecov by Sentry. |
Summary: Sobol sensitivity analysis and the sensitivity plots currently do not support categorical features. The plots in particular error out when categorical features are present because the sensitivity analysis (both first order and gradient-based). This commit adds support for categorical features by - introducing a uniformly random integer-valued point distribution for categorical and ordinal features in `SobolSensitivity`, in line with the usual integer-valued encoding, - ignoring the sign of the derivative-based sensitivity analysis of the categorical features, since the `CategoricalKernel` is non-differentiable, and the "direction" of categorical features is not well defined, - adding a separate case for categorical features to the sensitivity analysis plot, stating that the categorical features "affect" but don't "increase" or "decrease" the metric. Note that the results for the categorical features are still first order or total Sobol indices, so all the results in the plot are on the same scale. Differential Revision: D56070326
c36dd93
to
2b94086
Compare
This pull request was exported from Phabricator. Differential Revision: D56070326 |
Summary: Sobol sensitivity analysis and the sensitivity plots currently do not support categorical features. The plots in particular error out when categorical features are present because the sensitivity analysis (both first order and gradient-based). This commit adds support for categorical features by - introducing a uniformly random integer-valued point distribution for categorical and ordinal features in `SobolSensitivity`, in line with the usual integer-valued encoding, - ignoring the sign of the derivative-based sensitivity analysis of the categorical features, since the `CategoricalKernel` is non-differentiable, and the "direction" of categorical features is not well defined, - adding a separate case for categorical features to the sensitivity analysis plot, stating that the categorical features "affect" but don't "increase" or "decrease" the metric. Note that the results for the categorical features are still first order or total Sobol indices, so all the results in the plot are on the same scale. Differential Revision: D56070326
2b94086
to
bbe1743
Compare
This pull request was exported from Phabricator. Differential Revision: D56070326 |
This pull request has been merged in 43cef62. |
Summary:
Sobol sensitivity analysis and the sensitivity plots currently do not support categorical features. The plots in particular error out when categorical features are present because the sensitivity analysis (both first order and gradient-based).
This commit adds support for categorical features by
SobolSensitivity
, in line with the usual integer-valued encoding,CategoricalKernel
is non-differentiable, and the "direction" of categorical features is not well defined,Note that the results for the categorical features are still first order Sobol indices, so all the results in the plot are on the same scale.
Differential Revision: D56070326