bob.learn.em issueshttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues2022-02-11T15:08:55Zhttps://gitlab.idiap.ch/bob/bob.learn.em/-/issues/29Cannot succesfully copy kmeans trainers!2022-02-11T15:08:55ZAmir MOHAMMADICannot succesfully copy kmeans trainers!See the code below to reproduce:
```python
In [2]: import bob.learn.em
In [3]: bob.learn.em
Out[3]: <module 'bob.learn.em' from 'src/bob.learn.em/bob/learn/em/__init__.py'>
# bob.learn.em from master
In [4]: trainer1 = bob.learn.em.KMe...See the code below to reproduce:
```python
In [2]: import bob.learn.em
In [3]: bob.learn.em
Out[3]: <module 'bob.learn.em' from 'src/bob.learn.em/bob/learn/em/__init__.py'>
# bob.learn.em from master
In [4]: trainer1 = bob.learn.em.KMeansTrainer()
In [6]: machine = bob.learn.em.KMeansMachine(3, 2)
In [7]: trainer1.reset_accumulators(machine)
In [8]: trainer1.zeroeth_order_statistics
Out[8]: array([0., 0., 0.])
In [9]: trainer2 = bob.learn.em.KMeansTrainer(trainer1)
In [10]: trainer2.zeroeth_order_statistics
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-10-35fe1ff0cedc> in <module>()
----> 1 trainer2.zeroeth_order_statistics
ValueError: cannot convert C++ blitz::Array<float64,1> which doesn't behave (memory contiguous, aligned, C-style) into a pythonic bob.blitz.array
```https://gitlab.idiap.ch/bob/bob.learn.em/-/issues/26training is very verbose2019-05-06T12:38:09ZManuel Günthersiebenkopf@googlemail.comtraining is very verboseUsually, training an EM model using `bob.learn.em.train` should not emit `info` messages, or only few `info` messages. However, when training, for example, a KMeans, I get tons of `info` messages. Running several such trainings in parall...Usually, training an EM model using `bob.learn.em.train` should not emit `info` messages, or only few `info` messages. However, when training, for example, a KMeans, I get tons of `info` messages. Running several such trainings in parallel simply kills my console.
The reason is here: https://gitlab.idiap.ch/bob/bob.learn.em/blob/master/bob/learn/em/train.py#L61, where `info` messages are emitted, where `debug` level messages should be emitted, if any.Manuel Günthersiebenkopf@googlemail.comManuel Günthersiebenkopf@googlemail.com