Skip to content

Commit

Permalink
fix(RMDS): sign error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cofri committed Apr 28, 2024
1 parent 2fd39ba commit c13da98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oodeel/methods/rmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _score_tensor(self, inputs: TensorType) -> Tuple[np.ndarray]:

# take the highest score for each sample
gaussian_score_corrected = self.op.max(
gaussian_score_bg - gaussian_score_p, dim=1
gaussian_score_p - gaussian_score_bg, dim=1
)
return -self.op.convert_to_numpy(gaussian_score_corrected)

Expand Down

0 comments on commit c13da98

Please sign in to comment.