From bd556dc26aaff71533ad19db96fdc659d2b3b095 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Tue, 23 Jun 2020 17:19:55 +0200 Subject: [PATCH] Implemented score_multiple_models --- bob/bio/face/algorithm/Histogram.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bob/bio/face/algorithm/Histogram.py b/bob/bio/face/algorithm/Histogram.py index 8ed6c2d7..4104020a 100644 --- a/bob/bio/face/algorithm/Histogram.py +++ b/bob/bio/face/algorithm/Histogram.py @@ -155,4 +155,10 @@ class Histogram (Algorithm): def read_feature(*args, **kwargs) : raise NotImplementedError("This function is not implemented and should not be called.") def train_enroller(*args, **kwargs) : raise NotImplementedError("This function is not implemented and should not be called.") def load_enroller(*args, **kwargs) : pass - def score_for_multiple_models(*args, **kwargs) : raise NotImplementedError("This function is not implemented and should not be called.") + + def score_for_multiple_models(self, models, probe): + + self._check_feature(probe, self._is_sparse(probe)) + scores = [ self.score(m, probe) for m in models ] + return scores + -- GitLab