Commit b57f5eba authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Fix #58 ROC --no-semilogx plots are broken

parent 2e7dd749
......@@ -589,7 +589,8 @@ class Roc(PlotBase):
thres_line = far_threshold(dev_neg, dev_pos, line)
eval_fmr, eval_fnmr = fprfnr(
eval_neg, eval_pos, thres_line)
eval_fnmr = 1 - eval_fnmr
if self._semilogx:
eval_fnmr = 1 - eval_fnmr
mpl.scatter(eval_fmr, eval_fnmr, c=self._colors[idx], s=30)
self._eval_points[line].append((eval_fmr, eval_fnmr))
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment