Commit 5c873dad authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed issues with unused functions in algorithms

parent e2fe3a07
......@@ -279,8 +279,8 @@ class BIC (Algorithm):
return self.model_fusion_function(scores)
# re-define unused functions, just so that they do not get documented
def train_projector(): raise NotImplementedError()
def load_projector(): raise NotImplementedError()
def project(): raise NotImplementedError()
def write_feature(): raise NotImplementedError()
def read_feature(): raise NotImplementedError()
def train_projector(*args,**kwargs): raise NotImplementedError()
def load_projector(*args,**kwargs): pass
def project(*args,**kwargs): raise NotImplementedError()
def write_feature(*args,**kwargs): raise NotImplementedError()
def read_feature(*args,**kwargs): raise NotImplementedError()
......@@ -276,5 +276,5 @@ class LDA (Algorithm):
return self.factor * self.distance_function(model, probe)
# re-define unused functions, just so that they do not get documented
def train_enroller(): raise NotImplementedError()
def load_enroller(): raise NotImplementedError()
def train_enroller(*args,**kwargs): raise NotImplementedError()
def load_enroller(*args,**kwargs): pass
......@@ -206,5 +206,5 @@ class PCA (Algorithm):
return self.factor * self.distance_function(model, probe)
# re-define unused functions, just so that they do not get documented
def train_enroller(): raise NotImplementedError()
def load_enroller(): raise NotImplementedError()
def train_enroller(*args,**kwargs): raise NotImplementedError()
def load_enroller(*args,**kwargs): pass
......@@ -171,8 +171,8 @@ class PLDA (Algorithm):
return self.score_set([model.log_likelihood_ratio(probe) for probe in probes])
# re-define unused functions, just so that they do not get documented
def train_projector(): raise NotImplementedError()
def load_projector(): raise NotImplementedError()
def project(): raise NotImplementedError()
def write_feature(): raise NotImplementedError()
def read_feature(): raise NotImplementedError()
def train_projector(*args,**kwargs): raise NotImplementedError()
def load_projector(*args,**kwargs): pass
def project(*args,**kwargs): raise NotImplementedError()
def write_feature(*args,**kwargs): raise NotImplementedError()
def read_feature(*args,**kwargs): raise NotImplementedError()
......@@ -55,5 +55,5 @@ class Linearize (Extractor):
# re-define unused functions, just so that they do not get documented
def train(): raise NotImplementedError()
def load(): raise NotImplementedError()
def train(*args,**kwargs): raise NotImplementedError()
def load(*args,**kwargs): pass
......@@ -118,6 +118,7 @@ By default, you can find them in a sub-directory the ``result`` directory, but y
At Idiap_, the default result directory differs, see ``./bin/verify.py --help`` for your directory.
.. _bob.bio.base.evaluate:
Evaluating Experiments
----------------------
......
Supports Markdown
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