Skip to content

Commit

Permalink
fix: get item for final score
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <[email protected]>
  • Loading branch information
ab93 committed Jan 30, 2024
1 parent cc681a3 commit a913545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numalogic/udfs/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def exec(self, keys: list[str], datum: Datum) -> Messages:
pipeline_id=payload.pipeline_id,
composite_keys=payload.composite_keys,
timestamp=payload.end_ts,
unified_anomaly=anomaly_score,
unified_anomaly=anomaly_score.item(),
data=self._per_feature_score(payload.metrics, anomaly_scores),
metadata=payload.metadata,
)
Expand Down

0 comments on commit a913545

Please sign in to comment.