Created
June 24, 2021 08:49
-
-
Save ogyalcin/423516db76d326258a398e12293cb77b 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
from sklearn.ensemble import RandomForestRegressor | |
y = df.target | |
X = df.drop('target', axis=1) | |
# Train a Random Forest Regressor model | |
rf = RandomForestRegressor(random_state=42, n_estimators=50, n_jobs=-1) | |
rf.fit(X, y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment