Skip to content
Snippets Groups Projects
Commit a191b9c4 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Fix error on numpy zero creation

parent bf9ccd78
No related branches found
No related tags found
1 merge request!16Trial to implement EM with multiprocessing
Pipeline #29926 passed
......@@ -35,8 +35,8 @@ def _set_average(trainer, trainers, data):
if isinstance(trainer, KMeansTrainer):
# K-Means statistics
trainer.zeroeth_order_statistics = numpy.zeros(0., trainer.zeroeth_order_statistics.shape)
trainer.first_order_statistics = numpy.zeros(0., trainer.first_order_statistics.shape)
trainer.zeroeth_order_statistics = numpy.zeros(trainer.zeroeth_order_statistics.shape)
trainer.first_order_statistics = numpy.zeros(trainer.first_order_statistics.shape)
trainer.average_min_distance = 0.
for t in trainer:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment