Last active
January 4, 2022 19:11
-
-
Save afcotroneo/9c9f57804c75f5000925975b874e4c74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| with mlflow.start_run(run_name="Random_Forest_Undercount"): | |
| from sklearn.ensemble import RandomForestRegressor | |
| # model parameters | |
| params = {'n_estimators': 1000, 'random_state': 41} | |
| # log model params | |
| for key in params: | |
| mlflow.log_param(key, params[key]) | |
| # train Random Forest model | |
| RFtree = RandomForestRegressor(**params) | |
| RFtree.fit(train_features, train_labels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment