Skip to content
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

Feat/show_anomalies for multivariate #2544

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions darts/ad/anomaly_model/anomaly_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def show_anomalies(
names_of_scorers: Union[str, Sequence[str]] = None,
title: str = None,
metric: Optional[Literal["AUC_ROC", "AUC_PR"]] = None,
multivariate_plot: bool = False,
**score_kwargs,
):
"""Plot the results of the anomaly model.
Expand Down Expand Up @@ -313,6 +314,7 @@ def show_anomalies(
names_of_scorers=names_of_scorers,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
)

@property
Expand Down
2 changes: 2 additions & 0 deletions darts/ad/anomaly_model/forecasting_am.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def show_anomalies(
names_of_scorers: Union[str, Sequence[str]] = None,
title: str = None,
metric: Optional[Literal["AUC_ROC", "AUC_PR"]] = None,
multivariate_plot: bool = False,
**score_kwargs,
):
"""Plot the results of the anomaly model.
Expand Down Expand Up @@ -535,6 +536,7 @@ def show_anomalies(
names_of_scorers=names_of_scorers,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
**score_kwargs,
)

Expand Down
4 changes: 4 additions & 0 deletions darts/ad/scorers/scorers.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def show_anomalies_from_prediction(
anomalies: TimeSeries = None,
title: str = None,
metric: Optional[Literal["AUC_ROC", "AUC_PR"]] = None,
multivariate_plot: bool = False,
):
"""Plot the results of the scorer.

Expand Down Expand Up @@ -229,6 +230,7 @@ def show_anomalies_from_prediction(
names_of_scorers=scorer_name,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
)

@property
Expand Down Expand Up @@ -579,6 +581,7 @@ def show_anomalies(
scorer_name: str = None,
title: str = None,
metric: Optional[Literal["AUC_ROC", "AUC_PR"]] = None,
multivariate_plot: bool = False,
):
"""Plot the results of the scorer.

Expand Down Expand Up @@ -632,6 +635,7 @@ def show_anomalies(
names_of_scorers=scorer_name,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
)

@property
Expand Down
Loading
Loading