Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman123lug authored Aug 28, 2023
1 parent c820065 commit 8134bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def training(self, path:Path):
# please refer to the doc for more information:
# https://mlflow.org/docs/latest/model-registry.html#api-workflow
mlflow.sklearn.log_model(
dtree, "model", registered_model_name="DecisionTree", signature=signature
dtree, "model/model.pkl", registered_model_name="DecisionTree", signature=signature
)
else:
mlflow.sklearn.log_model(dtree, "model", signature=signature)
mlflow.sklearn.log_model(dtree, "model/model.pkl", signature=signature)

with open("metrics.txt", "w+") as f:
f.write(str(test_accracy))
Expand Down

0 comments on commit 8134bdc

Please sign in to comment.