Commit 5c43dbbc authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed issue #18. Corrected the prints for the KMeans machine

parent 8dfe578d
......@@ -52,7 +52,12 @@ def train(trainer, machine, data, max_iterations = 50, convergence_threshold=Non
if hasattr(trainer,"compute_likelihood"):
average_output = trainer.compute_likelihood(machine)
if type(machine) is bob.learn.em.KMeansMachine:"average euclidean distance = %f", average_output)
else:"log likelihood = %f", average_output)
convergence_value = abs((average_output_previous - average_output)/average_output_previous)"convergence value = %f",convergence_value)
Markdown is supported
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