Skip to content

Commit

Permalink
Update initial score in LOF
Browse files Browse the repository at this point in the history
Co-authored-by: Max Halford <[email protected]>
  • Loading branch information
MarekWadinger and MaxHalford authored Oct 10, 2023
1 parent 4df36df commit 26b990e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion river/anomaly/lof.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def score_one(self, x: dict):
self.x_scores, equal = check_equal(self.x_scores, self.x_list)

if len(self.x_scores) == 0 or len(self.x_list) == 0:
return 0.5
return 0.0

x_list_copy = self.x_list.copy()

Expand Down

0 comments on commit 26b990e

Please sign in to comment.