colab.research.google.com
首先挂载谷歌硬盘
from google.colab import drive
drive.mount('/content/drive')
然后切换到代码所在路径
import os
os.chdir("/content/drive/MyDrive/Colab Notebooks")
就可以加载数据集了
#加载csv文件,直接就是矩阵
import numpy as np
with open("../data/y_test_m2.csv", encoding='utf-8') as path_x_train_m:
x_train = np.loadtxt(path_x_train_m, delimiter=",")
print(x_train.shape)