Skip to content

Commit

Permalink
Defaulting grade to 0 if negative (#977)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis authored Aug 14, 2023
1 parent bc6b8e6 commit 2499d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/opensearch/ad/model/AnomalyResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public static AnomalyResult fromRawTRCFResult(
detectorId,
taskId,
rcfScore,
grade,
Math.max(0, grade),
confidence,
featureData,
dataStartTime,
Expand Down

0 comments on commit 2499d85

Please sign in to comment.