gregversteeg / CorEx

CorEx or "Correlation Explanation" discovers a hierarchy of informative latent factors. This reference implementation has been superseded by other versions below.
GNU General Public License v2.0
303 stars 53 forks source link

Mean of empty slice #1

Closed usptact closed 9 years ago

usptact commented 9 years ago

I get the following warning when running your example with four patterns having five variables:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice. warnings.warn("Mean of empty slice.", RuntimeWarning)

Wondering if this is serious or can be safely ignored.

And by the way, does this implementation support sparse matrices in input?

gregversteeg commented 9 years ago

The warning can safely be ignored. I just updated so that this warning is not produced. Thanks for point it out.

Sorry, sparse matrices are not supported. I'll have to think carefully at some point about whether this method can get speed benefits from sparsity.