You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going through the cp_sensory_bread_data.py example:
importloggingfromscipy.io.matlabimportloadmatfromsktensorimportdtensor, cp_als# Set logging to DEBUG to see CP-ALS informationlogging.basicConfig(level=logging.DEBUG)
# Load Matlab data and convert it to dense tensor formatmat=loadmat('../data/sensory-bread/brod.mat')
T=dtensor(mat['X'])
# Decompose tensor using CP-ALSP, fit, itr, exectimes=cp_als(T, 3, init='random')
If I try:
mat['X'].shape
--> (10, 88)
T.shape
--> (10, 88)
Shouldn't the tensor have a third dimension?
The text was updated successfully, but these errors were encountered:
I'm going through the
cp_sensory_bread_data.py
example:If I try:
Shouldn't the tensor have a third dimension?
The text was updated successfully, but these errors were encountered: