From 8b551cc9c87a66c96102467c877b7ed3c33986f3 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Mon, 4 Apr 2022 18:11:40 +0200 Subject: [PATCH] it is better to call super().__init__(**kwargs) first --- bob/bio/gmm/algorithm/GMM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/gmm/algorithm/GMM.py b/bob/bio/gmm/algorithm/GMM.py index 41da8f2..558d562 100644 --- a/bob/bio/gmm/algorithm/GMM.py +++ b/bob/bio/gmm/algorithm/GMM.py @@ -111,6 +111,7 @@ class GMM(BioAlgorithm, BaseEstimator): scoring_function Function returning a score from a model, a UBM, and a probe. """ + super().__init__(**kwargs) # Copy parameters self.number_of_gaussians = number_of_gaussians @@ -140,7 +141,6 @@ class GMM(BioAlgorithm, BaseEstimator): self.ubm = None - super().__init__(**kwargs) def _check_feature(self, feature): """Checks that the features are appropriate""" -- GitLab