Updated loading scores function

parent 77ab8765
Pipeline #53507 passed with stage
in 52 minutes and 3 seconds
...@@ -33,7 +33,7 @@ class VanillaBiometricsCallback(Callback): ...@@ -33,7 +33,7 @@ class VanillaBiometricsCallback(Callback):
self.config = config self.config = config
self.fmr = fmr self.fmr = fmr
self.output_path = output_path self.output_path = output_path
self.scores_dev = os.path.join(output_path, "scores-dev") self.scores_dev = os.path.join(output_path, "scores-dev.csv")
super(VanillaBiometricsCallback, self).__init__() super(VanillaBiometricsCallback, self).__init__()
def on_train_epoch_end(self, epoch, logs=None): def on_train_epoch_end(self, epoch, logs=None):
...@@ -45,7 +45,7 @@ class VanillaBiometricsCallback(Callback): ...@@ -45,7 +45,7 @@ class VanillaBiometricsCallback(Callback):
standalone_mode=False, standalone_mode=False,
) )
neg, pos = bob.bio.base.score.load.split_four_column(self.scores_dev) neg, pos = bob.bio.base.score.load.split_csv_scores(self.scores_dev)
far_thres = bob.measure.far_threshold(neg, pos, self.fmr) far_thres = bob.measure.far_threshold(neg, pos, self.fmr)
fmr, fnmr = bob.measure.fprfnr(neg, pos, far_thres) fmr, fnmr = bob.measure.fprfnr(neg, pos, far_thres)
......
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