-
Notifications
You must be signed in to change notification settings - Fork 884
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
Added anomaly display cell and comments #1493
Merged
julien12234
merged 2 commits into
example/anomaly_detection_example
from
example/anomaly_detection_example_comments
Jan 26, 2023
Merged
Added anomaly display cell and comments #1493
julien12234
merged 2 commits into
example/anomaly_detection_example
from
example/anomaly_detection_example_comments
Jan 26, 2023
Conversation
This file contains 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
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
dennisbader
added a commit
that referenced
this pull request
May 10, 2024
* Small fix in utils.py * Factorize tests * Correct format * Dataset taxiNY * jupyter notebook addition, XX-anomaly-detection.ipynb * relocated XX-anomaly-detection.ipynb * Fix NormScorer proba input, and show_anomaly function * Fix NormScorer proba input, and show_anomaly function * Refactor window of Wasserstein, Kmeans and PyOD Scorers * Refactor test * Added anomaly display cell and comments (#1493) * Added anomaly display cell and comments * Added samuele comments Co-authored-by: julien12234 <julien.adda@gmail.com> * Added images, and Julien's recommendation * Added parameter window_transform, git statusChange the default windowing methodgit status * fix: solve error due to merge conflict and apply linting * round of Julien_H's comment * with images * states to values * Committing old local changes * Small fix * fix: reduced code redundancy between the two detectors, renamed the method eval_accuracy to eval_metric * refactor: simplified class hierarchy, added a bit of type hinting, fixed bug in predict * feat: migrated tests from unittest to pytest framework for the aggregators * feat: parametrized tests to reduce code repetition * fix: added docstring, increased test granularity * fix: bug in fittableaggreg predict sanity check * refactor: renamed eval_accuracy to eval_metric, removed NonFittableScorer class * fix: changed tests after eval_accuracy function name change * refactor: changed scorers tests from unittest to pytest framework * fix: all non fittable anomaly scorer are tested * refactor: renamed eval_accuracy eval_metric * refactor: changed framework from unittest to pytest * fix: typo * refactor: changed test framework from unittest to pytest * refactor: reduced code redundancy by using pytest.mark.parametrize * refactor: reduced redundant code in kmeans, pyod and wasserstein scorers * fix: logging * fix: ad module use series2seq instead of its own util method * refactor: single show_anomalies method across anomaly model classes * fix: modularized scorer training, fixed logging * fix: indentation error * feat: parallelize training of scorers * feat: parallelize scorer score method for component-wise multivariate * feat: parallelize and/or aggregators predict_core method * feat: simplified aggregation of anomaly scorer, added corresponding tests * Apply suggestions from code review Co-authored-by: Samuele Giuliano Piazzetta <samuele.piazzetta@gmail.com> * fix lint * update docs init and utils * refactor ad utils * refactor aggregators * refactor aggregators * refactor aggregators * refactor detectors * refactor module docs * refactor anomaly models * refactor anomaly models * refactor scorers * update diff_fn for scorers * refactor WindowAnomalyScorer * refactor tabularization for scorers * improve scorer docs * refactor score_from_prediction * use slice_intersect_values in ad evaluation * further code clean up * further code clean up * make API consistent * refactor show anomalies api * refactor eval_metric api for anomaly models * refactor eval_metric api for anomaly scorers * refactor eval_metric api for anomaly detectors * refactor eval_metric api for anomaly aggregator * enfore GlobalForecastingModel for AnomalyModel * update changelog * remove prefix in AD API to keep unified and covariates parameter names * apply suggestions from PR review * final updates * improve docs * revert changes * prepare example notebook * update changelog * add taxi dataset test --------- Co-authored-by: Samuele Giuliano Piazzetta <samuele.piazzetta@gmail.com> Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com> Co-authored-by: Antoine Madrona <antoine.madrona@epfl.ch> Co-authored-by: Julien Sven Adda <julien.adda@epfl.ch> Co-authored-by: madtoinou <antoine.madrona@unit8.co> Co-authored-by: dennisbader <dennis.bader@gmx.ch>
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.
Summary
Review of the AD example notebook.
Details
In this way, we can help the user understand the anomalies in the dataset we are showcasing.
Added some comments in the cells (in red). In general, I would suggest to: