有人提出了将数据集拆分为三组的解决方案。我想知道在这种情况下标签在哪里。或者如何设置标签。
train, validate, test = np.split(df.sample(frac=1), [int(.6*len(df)), int(.8*len(df))])
python numpy machine-learning pandas
machine-learning ×1
numpy ×1
pandas ×1
python ×1