-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Toumash/pr/simplify-images
feat: simplify images and e2e test so that we know if it works
- Loading branch information
Showing
5 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import os | ||
from random import random, randint | ||
|
||
from mlflow import mlflow,log_metric, log_param, log_artifacts | ||
import mlflow | ||
|
||
if __name__ == "__main__": | ||
with mlflow.start_run() as run: | ||
mlflow.set_tracking_uri('http://localhost:5000') | ||
print("Running mlflow_tracking.py") | ||
|
||
log_param("param1", randint(0, 100)) | ||
mlflow.log_param("param1", randint(0, 100)) | ||
|
||
log_metric("foo", random()) | ||
log_metric("foo", random() + 1) | ||
log_metric("foo", random() + 2) | ||
mlflow.log_metric("foo", random()) | ||
mlflow.log_metric("foo", random() + 1) | ||
mlflow.log_metric("foo", random() + 2) | ||
|
||
if not os.path.exists("outputs"): | ||
os.makedirs("outputs") | ||
with open("outputs/test.txt", "w") as f: | ||
f.write("hello world!") | ||
|
||
log_artifacts("outputs") | ||
mlflow.log_artifacts("outputs") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM continuumio/miniconda3:latest | ||
|
||
RUN pip install mlflow boto3 pymysql | ||
RUN pip install mlflow boto3 | ||
|
||
ADD . /app | ||
WORKDIR /app | ||
|
||
COPY . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
from random import random, randint | ||
|
||
import mlflow | ||
|
||
if __name__ == "__main__": | ||
with mlflow.start_run() as run: | ||
mlflow.set_tracking_uri('http://mlflow:5000') | ||
print("Running mlflow_tracking.py") | ||
|
||
mlflow.log_param("param1", randint(0, 100)) | ||
|
||
mlflow.log_metric("foo", random()) | ||
mlflow.log_metric("foo", random() + 1) | ||
mlflow.log_metric("foo", random() + 2) | ||
|
||
if not os.path.exists("outputs"): | ||
os.makedirs("outputs") | ||
with open("outputs/test.txt", "w") as f: | ||
f.write("hello world!") | ||
|
||
mlflow.log_artifacts("outputs") |