I'm trying to load a csv file with pandas and do a random forest regression with sk-learn. On the referring site, n_jobs of the following code was **-1 **, so when I copied it as it was, the following error was thrown.
sklearn.externals.joblib.my_exceptions.JoblibValueError: JoblibValueError
r_forest = RandomForestRegressor(
n_estimators=100,
criterion='mse',
random_state=1,
n_jobs=1,
)
r_forest.fit(X_train, Y_train) #I get an error here
y_traing_preq = r_forest.predict(X_train)
y_test_preq = r_forest.predict(X_test)
I would appreciate it if anyone could teach me.