赞
踩
Tucker Decomposition可以看作是张量的PCA(principal components analysis),将一个张量分解为一个核心张量和因子矩阵乘积形式
import tensorly as tl
import numpy as np
from tensorly.decomposition import tucker
X = tl.tensor(np.arange(24).reshape(3, 4, 2))
core, factors = tucker(X, rank=[3, 4, 2])
print(core)
print(core.shape)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。