From 32612548353e4e8e17506d39aeb81a8d00ffa52e Mon Sep 17 00:00:00 2001 From: patrycjalazna Date: Sat, 15 May 2021 15:33:14 +0200 Subject: [PATCH] added log scalar to mongo observer --- .../0/f9a79167828b4ff9a26906623384047a/meta.yaml | 15 +++++++++++++++ .../tags/mlflow.source.git.commit | 1 + .../tags/mlflow.source.name | 1 + .../tags/mlflow.source.type | 1 + .../tags/mlflow.user | 1 + mlruns/0/meta.yaml | 4 ++++ sacred-mongoobserver.py | 3 ++- 7 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 mlruns/0/f9a79167828b4ff9a26906623384047a/meta.yaml create mode 100644 mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.git.commit create mode 100644 mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.name create mode 100644 mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.type create mode 100644 mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.user create mode 100644 mlruns/0/meta.yaml diff --git a/mlruns/0/f9a79167828b4ff9a26906623384047a/meta.yaml b/mlruns/0/f9a79167828b4ff9a26906623384047a/meta.yaml new file mode 100644 index 0000000..5421e05 --- /dev/null +++ b/mlruns/0/f9a79167828b4ff9a26906623384047a/meta.yaml @@ -0,0 +1,15 @@ +artifact_uri: file:///Users/patrycjalazna/Desktop/inzynieria-uczenia-maszynowego/zadanka/mlruns/0/f9a79167828b4ff9a26906623384047a/artifacts +end_time: 1621081158822 +entry_point_name: '' +experiment_id: '0' +lifecycle_stage: active +name: '' +run_id: f9a79167828b4ff9a26906623384047a +run_uuid: f9a79167828b4ff9a26906623384047a +source_name: '' +source_type: 4 +source_version: '' +start_time: 1621081158804 +status: 4 +tags: [] +user_id: patrycjalazna diff --git a/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.git.commit b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.git.commit new file mode 100644 index 0000000..62512f4 --- /dev/null +++ b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.git.commit @@ -0,0 +1 @@ +60ec48f83ca7c4ecae6c609e8db82c91fc4b80ab \ No newline at end of file diff --git a/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.name b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.name new file mode 100644 index 0000000..b77ca4c --- /dev/null +++ b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.name @@ -0,0 +1 @@ +/Users/patrycjalazna/Desktop/inzynieria-uczenia-maszynowego/zadanka/avocado-mlflow.py \ No newline at end of file diff --git a/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.type b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.type new file mode 100644 index 0000000..0c2c1fe --- /dev/null +++ b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.source.type @@ -0,0 +1 @@ +LOCAL \ No newline at end of file diff --git a/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.user b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.user new file mode 100644 index 0000000..7d28ba1 --- /dev/null +++ b/mlruns/0/f9a79167828b4ff9a26906623384047a/tags/mlflow.user @@ -0,0 +1 @@ +patrycjalazna \ No newline at end of file diff --git a/mlruns/0/meta.yaml b/mlruns/0/meta.yaml new file mode 100644 index 0000000..1c0fe3c --- /dev/null +++ b/mlruns/0/meta.yaml @@ -0,0 +1,4 @@ +artifact_location: file:///Users/patrycjalazna/Desktop/inzynieria-uczenia-maszynowego/zadanka/mlruns/0 +experiment_id: '0' +lifecycle_stage: active +name: Default diff --git a/sacred-mongoobserver.py b/sacred-mongoobserver.py index 45b19b9..aeefafc 100644 --- a/sacred-mongoobserver.py +++ b/sacred-mongoobserver.py @@ -23,7 +23,7 @@ def my_config(): batch_size = 16 @ex.capture -def prepare_model(epochs, batch_size): +def prepare_model(epochs, batch_size, _run): # odczytanie danych z plików avocado_train = pd.read_csv('avocado_train.csv') avocado_test = pd.read_csv('avocado_test.csv') @@ -55,6 +55,7 @@ def prepare_model(epochs, batch_size): # ewaluacja rmse = mean_squared_error(y_test, prediction) + _run.log_scalar("rmse", rmse) # zapisanie modelu model.save('avocado_model.h5')