Сначала я нормализовал числовые данные из массива 1000x20, а затем создал другой массив, содержащий случайную перестановку индексов строк нормализованных данных.Как разделить этот новый массив на наборы для обучения, перекрестной проверки и тестирования?
In[150]:
row_indices = np.random.permutation(X_norm.shape[0])
In[151]:
# Create a Training Set - 60 percent of data - 600x20
X_train =
# Create a Cross Validation Set - 20 percent - 200x20
X_crossVal =
# Create a Test Set - 20 percent - 200x20
X_test =
# If you performed the above calculations correctly, then X_train
# should have 600 rows and 20 columns, X_crossVal should have 200 rows
# and 20 columns, and X_test should have 200 rows and 20 columns. You
# can verify this by filling the code below:
In[152]:
# Print the shape of X_train
X_train.shape
# Print the shape of X_crossVal
# Print the shape of X_test
Пожалуйста, прости, насколько я плох при переполнении стека.