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 2 commits 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 @@ -247,6 +247,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 @@ -310,6 +311,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 @@ -444,6 +444,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 @@ -532,6 +533,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 @@ -176,6 +176,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 @@ -230,6 +231,7 @@ def show_anomalies_from_prediction(
names_of_scorers=scorer_name,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
)

@property
Expand Down Expand Up @@ -580,6 +582,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 @@ -633,6 +636,7 @@ def show_anomalies(
names_of_scorers=scorer_name,
title=title,
metric=metric,
multivariate_plot=multivariate_plot,
)

@property
Expand Down
Loading
Loading