-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[Obsolete][AnomalyDetection] Add transforms and detectors. #34218
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
Conversation
- Detectors include z-score, robust z-score and IQR. - Move threshold DoFns out of threshold.py - Add more docstrings - Minor refactor of existing code
5901a43 to
fe32cc2
Compare
|
Assigning reviewers. If you would like to opt out of this review, comment R: @tvalentyn for label python. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
76d2728 to
7b55027
Compare
7b55027 to
f18bf73
Compare
damccorm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is quite large (~2,000 lines), could we try splitting it up a bit? Specifically, it includes several pieces of functionality (new detectors and trackers, main PTransform) which could be parallelized, and it mixes in significant amounts of refactoring which make it hard to tell what is a functional/non-functional change. If we could split those components up into their own PRs it would be much easier to review well.
You might be able to chunk it and just open a few PRs at once
| yield k1, (k2, self._apply_threshold_to_predictions(result)) | ||
|
|
||
|
|
||
| class StatefulThresholdDoFn(BaseThresholdDoFn): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to move this out of thresholds.py? It seems more natural here.
If it is just a refactor, could we split that into a separate PR? This one is already quite large
|
Sure. Let me split it into smaller ones. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.