Fixed modes in non_negative_tucker_hals #392
-
Hi tensorly team, I'm trying to run non negative tucker decomposition (
If I'm not mistaken, the parameter Here is how I would like my code to look (there is an "?" that need to be filled with correct values):
Thank you for your help and your great work! Francesco |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @fosfrancesco , Thanks to your question, I realized a bug in For the second part of your question, you should use TuckerTensor as init when you use fixed modes or factors (these names should be compatible as well). Here is an example by using your code and from tensorly.decomposition import non_negative_tucker_hals, tucker
import numpy as np
m1 = np.random.random([10,15,20])
tensor_hals, error = non_negative_tucker_hals(m1, rank = (3,4,5), return_errors= True)
m2 = np.random.random([10,15,20])
tensor_hals2 = tucker(m2, rank=(3,4,5), fixed_factors= [1], init=tensor_hals) By the way, tucker decomposition has no Thanks, |
Beta Was this translation helpful? Give feedback.
Hi @fosfrancesco ,
Thanks to your question, I realized a bug in
non_negative_tucker_hals
which doesn't work with fixed modes. I will work on it soon and inform you from here.For the second part of your question, you should use TuckerTensor as init when you use fixed modes or factors (these names should be compatible as well). Here is an example by using your code and
tucker
decomposition: