-
Notifications
You must be signed in to change notification settings - Fork 80
Add default params_to_tune
for MedianOutliersTransform
, DensityOutliersTransform
and PredictionIntervalOutliersTransform
#1231
Conversation
…ityOutliersTransform, PredictionIntervalOutliersTransform
|
||
class PredictionIntervalOutliersTransform(OutliersTransform): | ||
"""Transform that uses :py:func:`~etna.analysis.outliers.prediction_interval_outliers.get_anomalies_prediction_interval` to find anomalies in data.""" | ||
|
||
def __init__( | ||
self, | ||
in_column: str, | ||
model: Union[Type["ProphetModel"], Type["SARIMAXModel"]], | ||
model: Union[Literal["prophet"], Literal["sarimax"], Type["ProphetModel"], Type["SARIMAXModel"]], |
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.
It looks somewhat like a hack. I don't think it is a good solution.
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.
It is because categorical distribution can't work with this type?
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.
🚀 Deployed on https://deploy-preview-1231--etna-docs.netlify.app |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## automl-2.0 #1231 +/- ##
=============================================
Coverage ? 87.42%
=============================================
Files ? 166
Lines ? 10330
Branches ? 0
=============================================
Hits ? 9031
Misses ? 1299
Partials ? 0 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
||
class PredictionIntervalOutliersTransform(OutliersTransform): | ||
"""Transform that uses :py:func:`~etna.analysis.outliers.prediction_interval_outliers.get_anomalies_prediction_interval` to find anomalies in data.""" | ||
|
||
def __init__( | ||
self, | ||
in_column: str, | ||
model: Union[Type["ProphetModel"], Type["SARIMAXModel"]], | ||
model: Union[Literal["prophet"], Literal["sarimax"], Type["ProphetModel"], Type["SARIMAXModel"]], |
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.
It is because categorical distribution can't work with this type?
Before submitting (must do checklist)
Proposed Changes
Look #1225.
Closing issues
Closes #1225.