From 340888294d4cc3b500347513e4793df41b1db84d Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 15 May 2021 16:56:58 +0200 Subject: [PATCH] Save RMSE as metrics --- sacred_exp.py | 7 +- sacred_file/1/config.json | 5 -- sacred_file/1/cout.txt | 11 --- sacred_file/1/metrics.json | 1 - sacred_file/1/run.json | 66 --------------- sacred_file/2/config.json | 5 -- sacred_file/2/cout.txt | 8 -- sacred_file/2/linear_regression.h5 | Bin 49808 -> 0 bytes sacred_file/2/metrics.json | 1 - sacred_file/2/run.json | 64 -------------- ...ed_exp_8150ed54d93299dfccf6867ea7220971.py | 80 ------------------ 11 files changed, 3 insertions(+), 245 deletions(-) delete mode 100644 sacred_file/1/config.json delete mode 100644 sacred_file/1/cout.txt delete mode 100644 sacred_file/1/metrics.json delete mode 100644 sacred_file/1/run.json delete mode 100644 sacred_file/2/config.json delete mode 100644 sacred_file/2/cout.txt delete mode 100644 sacred_file/2/linear_regression.h5 delete mode 100644 sacred_file/2/metrics.json delete mode 100644 sacred_file/2/run.json delete mode 100644 sacred_file/_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py diff --git a/sacred_exp.py b/sacred_exp.py index 477873a..3615525 100644 --- a/sacred_exp.py +++ b/sacred_exp.py @@ -22,7 +22,7 @@ def my_config(): epochs = 100 @exp.capture -def training(verbose, epochs, _log): +def training(verbose, epochs, _log, _run): pd.set_option("display.max_columns", None) @@ -68,11 +68,10 @@ def training(verbose, epochs, _log): scores = model.evaluate(x=test_X, y=test_Y) - evaluation_info = f"RMSE: {scores[1]}" - _log.info(evaluation_info) + _run.log_scalar("training.RMSE", scores[1]) @exp.automain -def run(verbose, epochs, _run): +def run(verbose, epochs): training() runner = exp.run() diff --git a/sacred_file/1/config.json b/sacred_file/1/config.json deleted file mode 100644 index 58da8f5..0000000 --- a/sacred_file/1/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "epochs": 100, - "seed": 80188794, - "verbose": 0 -} \ No newline at end of file diff --git a/sacred_file/1/cout.txt b/sacred_file/1/cout.txt deleted file mode 100644 index 65019ac..0000000 --- a/sacred_file/1/cout.txt +++ /dev/null @@ -1,11 +0,0 @@ -INFO - s434704 - Running command 'run' -INFO - s434704 - Started run with ID "1" -2021-05-15 16:30:17.771747: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA -To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. -2021-05-15 16:30:18.525767: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:176] None of the MLIR Optimization Passes are enabled (registered 2) -WARNING:tensorflow:Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. -WARNING - tensorflow - Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. -INFO - training - Verbose: 0, Epochs: 100 - 1/11 [=>............................] - ETA: 1s - loss: 0.0957 - root_mean_squared_error: 0.1177 11/11 [==============================] - 0s 674us/step - loss: 0.1033 - root_mean_squared_error: 0.1313 -INFO - training - RMSE: 0.1313309669494629 -INFO - s434704 - Completed after 0:00:08 diff --git a/sacred_file/1/metrics.json b/sacred_file/1/metrics.json deleted file mode 100644 index 9e26dfe..0000000 --- a/sacred_file/1/metrics.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/sacred_file/1/run.json b/sacred_file/1/run.json deleted file mode 100644 index 8ba1fc0..0000000 --- a/sacred_file/1/run.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "artifacts": [], - "command": "run", - "experiment": { - "base_dir": "/Volumes/seagate/ium_434704", - "dependencies": [ - "numpy==1.19.5", - "pandas==1.2.4", - "sacred==0.8.2", - "tensorflow==2.5.0rc1" - ], - "mainfile": "sacred_exp.py", - "name": "s434704", - "repositories": [], - "sources": [ - [ - "sacred_exp.py", - "_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py" - ] - ] - }, - "heartbeat": "2021-05-15T14:30:25.850078", - "host": { - "ENV": {}, - "cpu": "Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz", - "hostname": "Wojciechs-MacBook-Pro.local", - "os": [ - "Darwin", - "macOS-11.2.1-x86_64-i386-64bit" - ], - "python_version": "3.9.1" - }, - "meta": { - "command": "run", - "options": { - "--beat-interval": null, - "--capture": null, - "--comment": null, - "--debug": false, - "--enforce_clean": false, - "--file_storage": null, - "--force": false, - "--help": false, - "--loglevel": null, - "--mongo_db": null, - "--name": null, - "--pdb": false, - "--print-config": false, - "--priority": null, - "--queue": false, - "--s3": null, - "--sql": null, - "--tiny_db": null, - "--unobserved": false, - "COMMAND": null, - "UPDATE": [], - "help": false, - "with": false - } - }, - "resources": [], - "result": null, - "start_time": "2021-05-15T14:30:17.351901", - "status": "COMPLETED", - "stop_time": "2021-05-15T14:30:25.848159" -} \ No newline at end of file diff --git a/sacred_file/2/config.json b/sacred_file/2/config.json deleted file mode 100644 index 10050d5..0000000 --- a/sacred_file/2/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "epochs": 100, - "seed": 426629893, - "verbose": 0 -} \ No newline at end of file diff --git a/sacred_file/2/cout.txt b/sacred_file/2/cout.txt deleted file mode 100644 index 8daa125..0000000 --- a/sacred_file/2/cout.txt +++ /dev/null @@ -1,8 +0,0 @@ -INFO - s434704 - Running command 'run' -INFO - s434704 - Started run with ID "2" -WARNING:tensorflow:Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. -WARNING - tensorflow - Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. -INFO - training - Verbose: 0, Epochs: 100 - 1/11 [=>............................] - ETA: 0s - loss: 0.0914 - root_mean_squared_error: 0.1140 11/11 [==============================] - 0s 638us/step - loss: 0.1024 - root_mean_squared_error: 0.1294 -INFO - training - RMSE: 0.12944550812244415 -INFO - s434704 - Completed after 0:00:05 diff --git a/sacred_file/2/linear_regression.h5 b/sacred_file/2/linear_regression.h5 deleted file mode 100644 index ef7701b10e32ffffe0a0556d4ed31edb3663ab1a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49808 zcmeHwcR&+M*LR2_sHh+aC@Rf@N=blZOUQr)1ysb21u24nRB2*C0TmGoC{{oOY@n#v z$tJsi6~%(RD|YO?D}G6K$16ePeR%J^pU(^X2WMyI?3pvaJ#*&F+3d2wpSVmoUQOVIwNMSlUKQ6B)Sz0VrR)9~KXSjQmPguBr zNU*fNy^@mrO4)3p`%;zn0Q*&zmFOyYyBf=mk*6w`=jAyuz$e(dPC4?4%gB*I@t0n$ z*LioJ$dgUczvQXQyo!wHeg1c z3@^H8`AM}uN~~sb9N_$he!`(W&GtX_6XhLgev@j_8w(8u0YyK7G6R3vtU3bTKEdHW z?$#`t@)*izD8dR32@CQJ^q=k-A)U|eTxJflSO(R_{3t0&XRplE7428IGtH94a4PC2 zn}@O^MTMsDFVs&aQ+7Dej&~uv9nMzs4DT;Co4vmZ$Bx_a><>eVM(a+sq*6bec=NT&NcwBH~V4$gi zm77$gcf>S#osm>+&j>3^+2!G(o?+oK#z~%m;XcxeFi&4!AMc+kpn|kqOQV<=Q>oh3 zN9X*rwJ2x>uUD`r8JFCddU^%Q`i}^UlyzU9F?dG%%YicEy8TMIelk<9MJdM2YEkA_ zfJFxTN631!;z+gioEYIBC7&YF8ly0uz(|>-Na@V-^7oW+F{6^Mj=|DpS-Nt_EI_s# zOWPDd91s{177{Ts*ng4~O$B|!edPBNA_p`_v4fVTEyn5UxZsUFW>t_5*_laMR z`((*$oKHU{&A)V?kb2xFZjIX%=pXFkDPM~k9pC@J@k!SxX?#HM1z0Tk{y-it1crpm zRt%#cAJ1TSPp|Nhz{m(6cb~AZ5IMF%J`rL56Xok%jfh}aNJzwB>1D&GM0$q#c-zBk zei3GbNmylZ6fRX41!7dKpxK@$E8|;lA=OC-c{q^QZo+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O#M*owu`1!XrCU)51!!u9N00&DfC#_}AFf7UPVXq{lEa)Z5+2f3ya#_gd>9V=E zDGsEiO>2&1znO-Qnt0AH{Wi?OiI|y~mHAB;%>EegBG{t?D z%aHuECRUDSr;tRSZ>awU5f2$T5D9p43}Ii1N1S)y*ttEr*bGYz)J8JZ`s}J!sE++M zw3W$tBsHsrwZ-Q>=o&#K62}U~ym|#<=gK$o4-Ri>^+9k4d45zE(+i!4EVNy3X@xnV zYbJI_N~b2FeeUIZV~PN}xMOondunscF0!>1_h^cFi%Go@@5=r%!f53UVh}Pp6F0;;0MglP&wut%1k+J3NM&f9ul?8S!=`YOsVrShF7? z=9&ADfr;8!sX&Brleb~5zdqwXII`Fxz~T!MabqFovAa7ue^NR+9C?Fymv2Lih7oA? zid^)r*J?g%uaM)aXM*h3=AkP`O+>EFoIatBC3iWwzj{K zhjyD2j;ZWJ(EJH({#xEF%&>ujNS61I&)Z6gud0|aFs@n&|0p=|f%k{@cD}h$I gE`0pzIkNg)Ruhlv_5pE#wEp8SaH2K*v-3Fr57zbGod5s; diff --git a/sacred_file/2/metrics.json b/sacred_file/2/metrics.json deleted file mode 100644 index 9e26dfe..0000000 --- a/sacred_file/2/metrics.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/sacred_file/2/run.json b/sacred_file/2/run.json deleted file mode 100644 index 294e67c..0000000 --- a/sacred_file/2/run.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "artifacts": [ - "linear_regression.h5" - ], - "command": "run", - "experiment": { - "base_dir": "/Volumes/seagate/ium_434704", - "dependencies": [ - "numpy==1.19.5", - "pandas==1.2.4", - "sacred==0.8.2", - "tensorflow==2.5.0rc1" - ], - "mainfile": "sacred_exp.py", - "name": "s434704", - "repositories": [], - "sources": [ - [ - "sacred_exp.py", - "_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py" - ] - ] - }, - "heartbeat": "2021-05-15T14:30:31.335228", - "host": { - "ENV": {}, - "cpu": "Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz", - "hostname": "Wojciechs-MacBook-Pro.local", - "os": [ - "Darwin", - "macOS-11.2.1-x86_64-i386-64bit" - ], - "python_version": "3.9.1" - }, - "meta": { - "command": "run", - "options": { - "--beat-interval": null, - "--capture": null, - "--comment": null, - "--debug": false, - "--enforce_clean": false, - "--file_storage": null, - "--force": false, - "--help": false, - "--loglevel": null, - "--mongo_db": null, - "--name": null, - "--pdb": false, - "--print-config": false, - "--priority": null, - "--queue": false, - "--s3": null, - "--sql": null, - "--tiny_db": null, - "--unobserved": false - } - }, - "resources": [], - "result": null, - "start_time": "2021-05-15T14:30:25.893032", - "status": "COMPLETED", - "stop_time": "2021-05-15T14:30:31.333523" -} \ No newline at end of file diff --git a/sacred_file/_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py b/sacred_file/_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py deleted file mode 100644 index 9fd53d6..0000000 --- a/sacred_file/_sources/sacred_exp_8150ed54d93299dfccf6867ea7220971.py +++ /dev/null @@ -1,80 +0,0 @@ -import sys - -import pandas as pd -import numpy as np -import tensorflow as tf -import os.path - -from sacred import Experiment -from sacred.observers import FileStorageObserver, MongoObserver - -from tensorflow import keras -from tensorflow.keras import layers -from tensorflow.keras.layers.experimental import preprocessing - -exp = Experiment("s434704", interactive=False, save_git_info=False) -exp.observers.append(FileStorageObserver("sacred_file")) -# exp.observers.append(MongoObserver(url='mongodb://mongo_user:mongo_password_IUM_2021@172.17.0.1:27017', db_name="sacred")) - -@exp.config -def my_config(): - verbose = 0 - epochs = 100 - -@exp.capture -def training(verbose, epochs, _log): - - pd.set_option("display.max_columns", None) - - # Wczytanie danych - train_data = pd.read_csv("./MoviesOnStreamingPlatforms_updated.train") - - # Stworzenie modelu - columns_to_use = ['Year', 'Runtime', 'Netflix'] - train_X = tf.convert_to_tensor(train_data[columns_to_use]) - train_Y = tf.convert_to_tensor(train_data[["IMDb"]]) - - normalizer = preprocessing.Normalization(input_shape=[3,]) - normalizer.adapt(train_X) - - model = keras.Sequential([ - keras.Input(shape=(len(columns_to_use),)), - normalizer, - layers.Dense(30, activation='relu'), - layers.Dense(10, activation='relu'), - layers.Dense(25, activation='relu'), - layers.Dense(1) - ]) - - model.compile(loss='mean_absolute_error', - optimizer=tf.keras.optimizers.Adam(0.001), - metrics=[tf.keras.metrics.RootMeanSquaredError()]) - - params = f"Verbose: {verbose}, Epochs: {epochs}" - _log.info(params) - - model.fit(train_X, train_Y, verbose=verbose, epochs=epochs) - - model.save('linear_regression.h5') - - # Evaluation - - test_data = pd.read_csv("./MoviesOnStreamingPlatforms_updated.test") - - columns_to_use = ['Year', 'Runtime', 'Netflix'] - test_X = tf.convert_to_tensor(test_data[columns_to_use]) - test_Y = tf.convert_to_tensor(test_data[["IMDb"]]) - - scores = model.evaluate(x=test_X, - y=test_Y) - - evaluation_info = f"RMSE: {scores[1]}" - _log.info(evaluation_info) - -@exp.automain -def run(verbose, epochs, _run): - training() - -runner = exp.run() -exp.add_source_file("./training.py") -exp.add_artifact("linear_regression.h5") \ No newline at end of file