brief-knife-49991
05/31/2024, 7:39 AMValueError: cannot set WRITEABLE flag to True of this array
Here is where I got the error
@step
def fit_randomforest(self):
self.model_rf = RandomForestRegressor(n_estimators=self.n_estimators, random_state=42)
self.model_rf.fit(self.X_train, self.y_train)
self.next(self.predict_randomforest)