Commit 5850b304 authored by Alex UNNERVIK's avatar Alex UNNERVIK

Patched an issue in previous fix when only dev results were provided and not eval set results too

parent 41422101
Pipeline #38952 passed with stage
in 11 minutes and 51 seconds
......@@ -957,8 +957,18 @@ class Hist(GridSubplot):
dev_neg, dev_pos, eval_neg, eval_pos, threshold = self._get_neg_pos_thres(
idx, input_scores, input_names
)
xmin = min(numpy.min(dev_neg[0]), numpy.min(eval_neg[0]), numpy.min(dev_pos[0]), numpy.min(eval_pos[0]))
xmax = max(numpy.max(dev_neg[0]), numpy.max(eval_neg[0]), numpy.max(dev_pos[0]), numpy.max(eval_pos[0]))
if dev_neg and dev_pos and eval_neg and eval_pos is not None:
xmin = min(numpy.min(dev_neg[0]), numpy.min(eval_neg[0]), numpy.min(dev_pos[0]), numpy.min(eval_pos[0]))
xmax = max(numpy.max(dev_neg[0]), numpy.max(eval_neg[0]), numpy.max(dev_pos[0]), numpy.max(eval_pos[0]))
elif dev_neg and dev_pos is not None:
xmin = min(numpy.min(dev_neg[0]), numpy.min(dev_pos[0]))
xmax = max(numpy.max(dev_neg[0]), numpy.max(dev_pos[0]))
elif eval_neg and eval_pos is not None:
# Providing EVAL set results only not currently supported by bob bio hist, but potentially in the future?
xmin = min(numpy.min(eval_neg[0]), numpy.min(eval_pos[0]))
xmax = max(numpy.max(eval_neg[0]), numpy.max(eval_pos[0]))
# keep id of the current system
sys = idx
# if the id of the current system does not match the id of the plot,
......
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