Skip to content

Fixed modes in non_negative_tucker_hals #392

Answered by caglayantuna
fosfrancesco asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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], i…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@fosfrancesco
Comment options

@caglayantuna
Comment options

@fosfrancesco
Comment options

@cohenjer
Comment options

@fosfrancesco
Comment options

Answer selected by fosfrancesco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants