From 0695a74b96eb8be598503b3d30a37a4935f4cf64 Mon Sep 17 00:00:00 2001 From: dev-pa5an Date: Tue, 30 Apr 2024 12:54:58 +0530 Subject: [PATCH 1/5] Add Run Locally Section --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 585d6b3d..3f498d92 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ # Example MLflow project + + +## Run Locally + +Clone the project + +```bash + git clone https://github.com/dev-pa5an/mlflow-example.git +``` + +Install dependencies + +```bash + pip install mlflow +``` + +Run mlflow + +```bash + mlflow ui +``` +```bash + python train.py +``` + From b27db3273e7f591016053741c0d29679c2854b13 Mon Sep 17 00:00:00 2001 From: dev-pa5an Date: Tue, 30 Apr 2024 19:16:59 +0530 Subject: [PATCH 2/5] updating the README.md --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3f498d92..ac8c9f0e 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,14 @@ Clone the project git clone https://github.com/dev-pa5an/mlflow-example.git ``` -Install dependencies - -```bash - pip install mlflow -``` - -Run mlflow +Run the project and track the metrics with mlflow ui ```bash mlflow ui ``` + +make sure you are inside the mlflow-example directory ```bash - python train.py + mlflow run . -P alpha={} ``` From 040b5160cae5a666bfc730c710a41b8bc3c4b40f Mon Sep 17 00:00:00 2001 From: Pasan Fernando <152805932+dev-pa5an@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:34:54 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac8c9f0e..4737f6da 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Clone the project ```bash - git clone https://github.com/dev-pa5an/mlflow-example.git + git clone https://github.com/mlflow/mlflow-example.git ``` Run the project and track the metrics with mlflow ui From b8f0c6347e6cfcc3cb23e3d4490395597ee0fe45 Mon Sep 17 00:00:00 2001 From: Pasan Fernando <152805932+dev-pa5an@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:36:37 +0530 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4737f6da..15255756 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,6 @@ Run the project and track the metrics with mlflow ui make sure you are inside the mlflow-example directory ```bash - mlflow run . -P alpha={} + mlflow run . ``` From 45de5fca8487509f39b88b35f593cb2d8dc84c6d Mon Sep 17 00:00:00 2001 From: Pasan Fernando <152805932+dev-pa5an@users.noreply.github.com> Date: Thu, 2 May 2024 23:47:23 +0530 Subject: [PATCH 5/5] Update train.py --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 26765faf..f9d9cb23 100644 --- a/train.py +++ b/train.py @@ -57,7 +57,7 @@ def eval_metrics(actual, pred): print(" MAE: %s" % mae) print(" R2: %s" % r2) - mlflow.log_param("alpha", alpha) + mlflow.log_param("alpha", int(alpha)) mlflow.log_param("l1_ratio", l1_ratio) mlflow.log_metric("rmse", rmse) mlflow.log_metric("r2", r2)