Skip to content

Commit

Permalink
fix roc curves
Browse files Browse the repository at this point in the history
  • Loading branch information
theoheimel committed Mar 16, 2023
1 parent 48db8f6 commit 865722d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def plot_roc(self, file: str):
Args:
file: Output file name
"""
scores = np.concatenate((self.weights_true, self.weights_fake), axis=0)
scores = -np.concatenate((1/self.weights_true, self.weights_fake), axis=0)
labels = np.concatenate((
np.ones_like(self.weights_true),
np.zeros_like(self.weights_fake)
Expand Down

0 comments on commit 865722d

Please sign in to comment.