Created
November 11, 2019 11:46
-
-
Save archena/483903090f81f1efec33cea54d9ec403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rf_model = RandomForestRegressor(random_state=1, n_estimators=10) | |
rf_model.fit(train_X, train_y) | |
rf_val_predictions = rf_model.predict(val_X) | |
rf_val_mae = mean_absolute_error(rf_val_predictions, val_y) | |
print("Validation MAE for Random Forest Model: {:,.0f}".format(rf_val_mae)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment