{"action":"opened","issue":{"url":"https://api.github.com/repos/mnick/scikit-tensor/issues/12","labels_url":"https://api.github.com/repos/mnick/scikit-tensor/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mnick/scikit-tensor/issues/12/comments","events_url":"https://api.github.com/repos/mnick/scikit-tensor/issues/12/events","html_url":"https://github.com/mnick/scikit-tensor/issues/12","id":58614590,"number":12,"title":"scikit-tensor is creating nans / infinities along the way","user":{"login":"brianmingus","id":3188728,"avatar_url":"https://avatars.githubusercontent.com/u/3188728?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmingus","html_url":"https://github.com/brianmingus","followers_url":"https://api.github.com/users/brianmingus/followers","following_url":"https://api.github.com/users/brianmingus/following{/other_user}","gists_url":"https://api.github.com/users/brianmingus/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmingus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmingus/subscriptions","organizations_url":"https://api.github.com/users/brianmingus/orgs","repos_url":"https://api.github.com/users/brianmingus/repos","events_url":"https://api.github.com/users/brianmingus/events{/privacy}","received_events_url":"https://api.github.com/users/brianmingus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-23T16:57:57Z","updated_at":"2015-02-23T16:57:57Z","closed_at":null,"body":"# Note that I changed                                                                                                                                                                                            \r\n# /Library/Python/2.7/site-packages/scikit_tensor-0.1-py2.7.egg/sktensor/cp.py:147                                                                                                                               \r\n# to use nan_to_num: Y = nan_to_num(Y). While I was already doing this                                                                                                                                           \r\n# here, this lib may be doing operations that create additional nans                                                                                                                                             \r\n# or infinities. Instead of dying it now returns                                                                                                                                                                 \r\n# /Library/Python/2.7/site-packages/scikit_tensor-0.1-py2.7.egg/sktensor/cp.py:157:                                                                                                                              \r\n# RuntimeWarning: invalid value encountered in divide U[n] = Unew / lmbda                                                                                                                                        \r\n# /Library/Python/2.7/site-packages/scikit_tensor-0.1-py2.7.egg/sktensor/cp.py:156:                                                                                                                              \r\n# RuntimeWarning: invalid value encountered in less lmbda[lmbda < 1] = 1                                                                                                                                         \r\n# BUT: It keeps going!                                                                                                                                                                                           \r\n"}}