U,S,V=np.linalg.svd(train_data_normalize) LinAlgError: 0-dimensional array given. Array must be at least two-dimensional
train_data_normalize是一个(13233, 15625)的矩阵
来源如下
import minpy.numpy as np #使用GPU加速矩阵运算train_data=train_mat.reshape(13233,125*125).astype('float16') #将二维图像reshape成一维图像meanvalue=np.mean(train_data,axis=0)#数据去中心化train_data_normalize=train_data-meanvalue
元芳怎么了
相关分类