Skip to content

Commit

Permalink
Bits for multimodality detector
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Sep 25, 2023
1 parent 87c54fd commit c67b38d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Changelog

## 0.3.1, Fall 2023
## 0.3.1, coming Fall 2023

- `redflag` can now be installed by the `conda` package and environment manager. To do so, use `conda install -c conda-forge redflag`.
- All of the `sklearn` components can now be instantiated with `warn=False` in order to trigger a `ValueException` instead of a warning. This allows you to build pipelines that will break if a detector is triggered.
- You can now pass `groups` to `redflag.distributions.is_multimodal()`. If present, the modality will be checked for each group, returning a Boolean array of values (one for each group). This allows you to check a feature partitioned by target class, for example.
- Added `MultimodalDetector` to provide a way to check for multimodal features. If `y` is passed and is categorical, it will be used to partition the data and modality will be checked for each class.
- Added `MultimodalityDetector` to provide a way to check for multimodal features. If `y` is passed and is categorical, it will be used to partition the data and modality will be checked for each class.
- Removed `RegressionMultimodalDetector`. Use `MultimodalDetector` instead.


Expand Down
2 changes: 1 addition & 1 deletion src/redflag/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def make_rf_pipeline(*steps, memory=None, verbose=False):
("rf.imbalance", ImbalanceDetector()),
("rf.clip", ClipDetector()),
("rf.correlation", CorrelationDetector()),
# ("rf.multimodal", MultimodalDetector()),
("rf.multimodality", MultimodalityDetector()),
("rf.outlier", OutlierDetector()),
("rf.distributions", DistributionComparator()),
("rf.importance", ImportanceDetector()),
Expand Down

0 comments on commit c67b38d

Please sign in to comment.