<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
When trying to fit a Random Forest Regressor model with y data that looks like this:
<ASSISTANT_TASK:>
Python Code:
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestRegressor
X, y, X_test = load_data()
assert type(X) == np.ndarray
assert type(y) == np.ndarray
assert type(X_test) == np.ndarray
regressor = RandomForestRegressor(n_estimators=150, min_samples_split=1.0, random_state=42)
regressor.fit(X.reshape(-1, 1), y)
<END_TASK>