Add Statistical Significance for Subgroup Discovery#57
Open
Rilanja wants to merge 25 commits intoflemmerich:masterfrom
Open
Add Statistical Significance for Subgroup Discovery#57Rilanja wants to merge 25 commits intoflemmerich:masterfrom
Rilanja wants to merge 25 commits intoflemmerich:masterfrom
Conversation
…ualize the distribution including subgroup.
…on and the presentation in the SubgroupDiscoveryResult, and a wrapper for search function for flexibility.
…solution (I found) was to extract all components for a SubgroupDiscoveryTask object and independently recreating it in a worker function. You have to manually define all possible parameters (e.g. constraint or value to ignore in 'create_selectors'. Maybe not the best solution but parallelization works so far.
…te values (-inf, inf) back that messed up my normality test. Placed filter for this.
… that come with it. No way to extract the ignore attribute, constraint, ...
…mal or gumbel distribution in visualization. Small corrections on docstrings.
…metric calculation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a framework for assessing statistical significance of discovered subgroups via permutation testing, implemented through composition to preserve original functionality.
Key Changes:
StatisticalSignificance Class
Stats
SignificantSubgroupResult
Visualization
plot_null_distribution()function for analysis:Technical Notes:
SelectorBaseserialization methods to enable parallel processingjoblib(parallel processing)statsmodels(multiple testing correction; normal and gumbel distribution)tqdmandtqdm_joblib(progress bar and patch for parallel processing)seaborn(Plotting of histogram and KDE)Usage Example:
metrics.ipynbdemonstrating: