Add MLproject for MLFlow
This commit is contained in:
parent
d64d3c1d5a
commit
60a565098c
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,3 +20,4 @@ evaluation_results.txt
|
|||||||
model_out
|
model_out
|
||||||
trend.png
|
trend.png
|
||||||
sacred_runs
|
sacred_runs
|
||||||
|
mlruns
|
||||||
|
14
MLproject
Normal file
14
MLproject
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: ium_s444409
|
||||||
|
|
||||||
|
docker_env:
|
||||||
|
image: s444409-create-dataset
|
||||||
|
volumes: ["/tmp/mlruns:/mlruns:rw"]
|
||||||
|
|
||||||
|
entry_points:
|
||||||
|
main:
|
||||||
|
parameters:
|
||||||
|
epochs: {type: float, default: 5}
|
||||||
|
batch_size: {type: float, default: 64}
|
||||||
|
command: "python train_model.py -e {epochs} -b {batch_size}"
|
||||||
|
eval:
|
||||||
|
command: "python eval_model.py"
|
@ -12,7 +12,7 @@ default_epochs = 5
|
|||||||
|
|
||||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||||
|
|
||||||
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
#mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||||
mlflow.set_experiment("s444409")
|
mlflow.set_experiment("s444409")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user