There is no option to change the KMeans initialization inside GMM.py, and the default causes trouble
As reported in https://groups.google.com/forum/#!topic/bob-devel/Y61TTeiQQiY the default value for initialization_method
in the KMeansTrainer
constructor https://www.idiap.ch/software/bob/docs/latest/bob/bob.learn.em/master/py_api.html#bob.learn.em.KMeansTrainer inside GMM.py
: https://gitlab.idiap.ch/bob/bob.bio.gmm/blob/master/bob/bio/gmm/algorithm/GMM.py#L84 causes trouble.
Two things to do:
-
make the initialization_method
a parameter of thebob.bio.gmm.algorithm.GMM
constructor, with default valueKMEANS_PLUS_PLUS
-
check that the tests pass -- different KMeans initialization will change results and corresponding reference values in the test cases