Artificial Intelligence, Machine Learning, Random Forest, Finance, Trading.
y_test.shape) (1440, 10) (360, 10) (1440,) (360,) This is all you need to do to fit your model. rf = RandomForestRegressor(n_estimators=100, random_state=42) rf.fit(X_train, y_train) Making Predictions y_train_pred = rf.predict(X_train) y_test_pred = rf.predict(X_test) Visualisation of the