数据如图
data_path2 = './tablet_dataset/tablet_new.mat'
x_train = sio.loadmat(data_path2)['x_train_1'][0, 0]['data']
print("x_train.shape,", x_train.shape)
另一种写法
data_path2 = './tablet_dataset/tablet_new.mat'
x_train = sio.loadmat(data_path2)['x_train_1']
x_train = x_train[0, 0]['data']
输出
x_train.shape, (460, 650)
注意,这里一定加上[0, 0],否则会报错