Skip to content

Commit

Permalink
Change prediction in AnomalyResult to predictions which is now an ite…
Browse files Browse the repository at this point in the history
…rable of AnomalyPrediction.
  • Loading branch information
shunping committed Feb 13, 2025
1 parent 251c63d commit 46945de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdks/python/apache_beam/ml/anomaly/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ class AnomalyResult():
"""A dataclass for the anomaly detection results"""
#: The original input data.
example: beam.Row
#: The `AnomalyPrediction` object containing the prediction.
prediction: AnomalyPrediction
#: The iterable of `AnomalyPrediction` objects containing the predictions.
#: Expect length 1 if an aggregation strategy is applied.
predictions: Iterable[AnomalyPrediction]


class ThresholdFn(abc.ABC):
Expand Down

0 comments on commit 46945de

Please sign in to comment.