// Fit the model
rf_fit_pkl = fit_model.delay(data_dict)
rf_fit_pkl = rf_fit_pkl.get(timeout=20)
rf_fit = pickle.loads(rf_fit_pkl)
// Store the model:
print("Pickling model...")
foutname = os.path.join(
After Change
ntrees = 1000
njobs = -1
rf_fit = RFC(n_estimators=ntrees, max_features="auto", n_jobs=njobs)
print("Model initialized.")
// Fit the model to training data:
print("Fitting the model...")
rf_fit.fit(data_dict["features"], data_dict["classes"])