Skip to content

Commit b19b431

Browse files
justinuliutachyonicClock
authored andcommitted
Fix inverted anomaly score calculation in HSTrees classifier
1 parent 21f6444 commit b19b431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

moa/src/main/java/moa/classifiers/oneclass/HSTrees.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public double getAnomalyScore(Instance inst)
228228

229229
accumulatedScore = accumulatedScore / (((double) this.numTrees));
230230

231-
return 0.5 - accumulatedScore + this.anomalyThreshold;
231+
return accumulatedScore;
232232
}
233233
}
234234

0 commit comments

Comments
 (0)