X, y = make_moons(n_samples=100, noise=.3, random_state=0) X_train, X_val, y_train, y_val = train_test_split(X, y, test_size=.2, random_state=13)
sc = StandardScaler() sc.fit(X_train) X_train = sc.transform(X_train) X_val = sc.transform(X_val)
标签:Chapter,val,Simple,PyTorchStepByStep,transform,state,train,sc,Problem From: https://www.cnblogs.com/zhangzhihui/p/18463425