Skip to content
Snippets Groups Projects
Commit 413fd06e authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed a bug in the constructor

parent 9d42136c
No related branches found
No related tags found
No related merge requests found
......@@ -70,9 +70,9 @@ static int PyBobLearnEMMAPGMMTrainer_init_base_trainer(PyBobLearnEMMAPGMMTrainer
double relevance_factor = 4.0;
double aux = 0;
PyObject* update_means = 0;
PyObject* update_variances = 0;
PyObject* update_weights = 0;
PyObject* update_means = Py_True;
PyObject* update_variances = Py_False;
PyObject* update_weights = Py_False;
double mean_var_update_responsibilities_threshold = std::numeric_limits<double>::epsilon();
PyObject* keyword_relevance_factor = Py_BuildValue("s", kwlist1[1]);
......
......@@ -57,9 +57,9 @@ static int PyBobLearnEMMLGMMTrainer_init_base_trainer(PyBobLearnEMMLGMMTrainerOb
char** kwlist = ML_GMMTrainer_doc.kwlist(0);
PyObject* update_means = 0;
PyObject* update_variances = 0;
PyObject* update_weights = 0;
PyObject* update_means = Py_True;
PyObject* update_variances = Py_False;
PyObject* update_weights = Py_False;
double mean_var_update_responsibilities_threshold = std::numeric_limits<double>::epsilon();
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!|O!O!d", kwlist,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment