Skip to content

Commit

Permalink
Add mlFlow logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicedlp committed Sep 7, 2023
1 parent 68edab6 commit ef696cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions formation_indus_ds_avancee/train_and_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def train_model(features: pd.DataFrame, model_registry_folder: str) -> None:
y = features[target]
with mlflow.start_run():
# insert autolog here ...
mlflow.sklearn.autolog()
model = RandomForestRegressor(n_estimators=1, max_depth=10, n_jobs=1)
model.fit(X, y)
time_str = time.strftime('%Y%m%d-%H%M%S')
Expand Down

0 comments on commit ef696cf

Please sign in to comment.