Artificial Intelligence, Machine Learning, Random Forest, Finance, Trading.
"rsi14", "vroc14", ] X = df[features] y = df["close"] X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2, random_state=42 ) And you can see that the shape of the X_train, X_test, y_train, and y_test looks like this. print(X_train.shape, X_test.shape, y_train.shape,