-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All nan in matrix come from non negative tucker decomposition #516
Comments
What's your input tensor? Can you produce a minimal snippet of code to reproduce your error? It seems your tensor is very sparse / could it also be low-rank? It also seems the range might be problematic - I think that's also link with another thing I want to add in tensorLy: optional normalization of the input tensor (and unnormalizing directly in factorized form) @cohenjer @aarmey As a small test, could you try i) lower rank and ii) normalizing your tensor (e.g. remove mean and divide by std). |
Just to complete @JeanKossaifi's great answer, you can easily normalize a tensor Something bad which may also occur is if whole slices of the tensor are zero. |
Code:
dat is
The facs_overall
Could someone provide an explanation for this?
The text was updated successfully, but these errors were encountered: