Commit 13f82056 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed constness-issue (#19) in nose test

parent 3273ccd2
......@@ -144,8 +144,9 @@ def test_kmeans_b():
bob.learn.em.train(trainer,machine, arStd, convergence_threshold=0.001)
[variances, weights] = machine.get_variances_and_weights_for_each_cluster(arStd)
means = machine.means
means = numpy.array(machine.means)
variances = numpy.array(variances)
multiplyVectorsByFactors(means, std)
multiplyVectorsByFactors(variances, std ** 2)
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