Skip to content
Snippets Groups Projects
Commit 1c90fc41 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

deprecate the GMM algorithm

parent ffd5c342
Branches
Tags
1 merge request!18Deprecate the GMM algorithm
Pipeline #36805 passed
...@@ -76,6 +76,7 @@ class GMM(Algorithm): ...@@ -76,6 +76,7 @@ class GMM(Algorithm):
self.kmeans_trainer = bob.learn.em.KMeansTrainer() self.kmeans_trainer = bob.learn.em.KMeansTrainer()
self.gmm_trainer = bob.learn.em.ML_GMMTrainer(self.update_means, self.update_variances, self.update_weights, self.gmm_trainer = bob.learn.em.ML_GMMTrainer(self.update_means, self.update_variances, self.update_weights,
self.responsibility_threshold) self.responsibility_threshold)
print("This class is deprecated. Please use bob.pad.base.algorithm.GMM instead.")
def _check_feature(self, feature, machine=None, projected=False): def _check_feature(self, feature, machine=None, projected=False):
"""Checks that the features are appropriate.""" """Checks that the features are appropriate."""
...@@ -242,6 +243,3 @@ class GMM(Algorithm): ...@@ -242,6 +243,3 @@ class GMM(Algorithm):
def score_for_multiple_projections(self, toscore): def score_for_multiple_projections(self, toscore):
"""Returns the difference between log likelihoods of being real or attack""" """Returns the difference between log likelihoods of being real or attack"""
self.score(toscore) self.score(toscore)
algorithm = GMM()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment