From c98cf1440e482824d6c782abc4780e0f97665d34 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 09:57:15 +0200 Subject: [PATCH 01/31] Create cml.yaml --- .github/workflows/cml.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cml.yaml diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml new file mode 100644 index 0000000..cccc5a3 --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,16 @@ +name: mlops-exaple-tensorflow-regression +on: [push] +jobs: + run: + runs-on: [ubuntu-latest] + container: docker://dvcorg/cml-py3:latest + steps: + - uses: actions/checkout@v2 + - name: 'Train my model' + env: + repo_token: ${{ secrets.GITHUB_TOKEN }} + run: | + + # Your ML workflow goes here + pip install -r requirements.txt + python model.py From 7624a349e0d5a4c836d85b01c2c49ac6c655562d Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:13:10 +0200 Subject: [PATCH 02/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index b732a8d..31ef1fb 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -#with open('metrics.txt', 'w') as outfile: -# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +with open('metrics.txt', 'w') as outfile: + outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From b7b12dd113ea47461239952d2c66c7358f35024b Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:14:58 +0200 Subject: [PATCH 03/31] Update cml.yaml --- .github/workflows/cml.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index cccc5a3..1f1cc35 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,3 +14,6 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py + + echo "## Model metrics" > report.md + cat metrics.txt >> report.md From 32ead2bbb14aadb353d9b8bf14863070eb794720 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:24:04 +0200 Subject: [PATCH 04/31] Update cml.yaml --- .github/workflows/cml.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 1f1cc35..cccc5a3 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,6 +14,3 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py - - echo "## Model metrics" > report.md - cat metrics.txt >> report.md From e0a131e6851d65c1442e41440356b095f80806fa Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:25:55 +0200 Subject: [PATCH 05/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index 31ef1fb..b732a8d 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -with open('metrics.txt', 'w') as outfile: - outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +#with open('metrics.txt', 'w') as outfile: +# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From ebf55e977fbac407b230c1a26cc4e61ef2fbf79a Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:27:59 +0200 Subject: [PATCH 06/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index b732a8d..31ef1fb 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -#with open('metrics.txt', 'w') as outfile: -# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +with open('metrics.txt', 'w') as outfile: + outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From 4709092c7f09ee62fdb456ddbf962510b18c2200 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:30:34 +0200 Subject: [PATCH 07/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index cccc5a3..d3bd179 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,3 +14,8 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py + + echo "## Model Metrics" > report.md + cat metrics.txt >> report.md + + cml-send-comments report.md From de595e217df4fb2311c163d6ed5a9677c7629d29 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:34:03 +0200 Subject: [PATCH 08/31] Update cml.yaml --- .github/workflows/cml.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index d3bd179..71ef631 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -18,4 +18,4 @@ jobs: echo "## Model Metrics" > report.md cat metrics.txt >> report.md - cml-send-comments report.md + cml-send-comment report.md From 4dd63da12f7aa5a2cb7f622da273d338d210bf35 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:38:11 +0200 Subject: [PATCH 09/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 71ef631..cccc5a3 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,8 +14,3 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py - - echo "## Model Metrics" > report.md - cat metrics.txt >> report.md - - cml-send-comment report.md From 10b59d77e281579e6af59be4d2582ac63198bca8 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:38:31 +0200 Subject: [PATCH 10/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index 31ef1fb..b732a8d 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -with open('metrics.txt', 'w') as outfile: - outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +#with open('metrics.txt', 'w') as outfile: +# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From f05a0d4401386a13e6173e1ea5857c4232c278d7 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:40:58 +0200 Subject: [PATCH 11/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index b732a8d..31ef1fb 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -#with open('metrics.txt', 'w') as outfile: -# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +with open('metrics.txt', 'w') as outfile: + outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From 2c9e3835eda217984254f97d477e9c6597470b72 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:43:27 +0200 Subject: [PATCH 12/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index cccc5a3..71ef631 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,3 +14,8 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py + + echo "## Model Metrics" > report.md + cat metrics.txt >> report.md + + cml-send-comment report.md From ae5b9ea004df7231501669f5ff1e952584998c58 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:51:01 +0200 Subject: [PATCH 13/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index 31ef1fb..b732a8d 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -with open('metrics.txt', 'w') as outfile: - outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +#with open('metrics.txt', 'w') as outfile: +# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From ce1112f97135679d1e14d59ad5dd8eed2b771a95 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:51:22 +0200 Subject: [PATCH 14/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 71ef631..cccc5a3 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,8 +14,3 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py - - echo "## Model Metrics" > report.md - cat metrics.txt >> report.md - - cml-send-comment report.md From 75d50fb98877ba1ec0f2d40859bc2caeee16fcdc Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:55:06 +0200 Subject: [PATCH 15/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index b732a8d..31ef1fb 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -#with open('metrics.txt', 'w') as outfile: -# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +with open('metrics.txt', 'w') as outfile: + outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From bf70df4d774e583f900ac65288a82b1ef188fc65 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 11:57:34 +0200 Subject: [PATCH 16/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index cccc5a3..71ef631 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,3 +14,8 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py + + echo "## Model Metrics" > report.md + cat metrics.txt >> report.md + + cml-send-comment report.md From 59abbeb1ba0f2f7172b44927680dcd180ee49c44 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:05:38 +0200 Subject: [PATCH 17/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 71ef631..cccc5a3 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,8 +14,3 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py - - echo "## Model Metrics" > report.md - cat metrics.txt >> report.md - - cml-send-comment report.md From af029fdd245f88d9e4cafae8e9c4e940fb103774 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:06:00 +0200 Subject: [PATCH 18/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index 31ef1fb..b732a8d 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -with open('metrics.txt', 'w') as outfile: - outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +#with open('metrics.txt', 'w') as outfile: +# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From b6a2b54f94464e978ba236c83e1b9d732a3e2cdc Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:08:42 +0200 Subject: [PATCH 19/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index b732a8d..31ef1fb 100644 --- a/model.py +++ b/model.py @@ -98,5 +98,5 @@ def mse(y_test, y_pred): print(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') # Write metrics to file -#with open('metrics.txt', 'w') as outfile: -# outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') +with open('metrics.txt', 'w') as outfile: + outfile.write(f'\nMean Absolute Error = {mae_1}, Mean Squared Error = {mse_1}.') From 2c112fcfca04c92c5c9a3f1634f9290184f378ea Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:10:58 +0200 Subject: [PATCH 20/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index cccc5a3..71ef631 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,3 +14,8 @@ jobs: # Your ML workflow goes here pip install -r requirements.txt python model.py + + echo "## Model Metrics" > report.md + cat metrics.txt >> report.md + + cml-send-comment report.md From 48fb0c0076d18cb67ed5399526f004e0dc5dd100 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:35:56 +0200 Subject: [PATCH 21/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 31ef1fb..c08751b 100644 --- a/model.py +++ b/model.py @@ -89,7 +89,7 @@ def mse(y_test, y_pred): # Make and plot predictions for model_1 y_preds = model.predict(X_test) -#plot_predictions(train_data=X_train, train_labels=y_train, test_data=X_test, test_labels=y_test, predictions=y_preds) +plot_predictions(train_data=X_train, train_labels=y_train, test_data=X_test, test_labels=y_test, predictions=y_preds) # Calculate model_1 metrics From 3e2127ce7f82f435a48eb61aee569ec983159f12 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 12:38:26 +0200 Subject: [PATCH 22/31] Update cml.yaml --- .github/workflows/cml.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 71ef631..162b71f 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -18,4 +18,9 @@ jobs: echo "## Model Metrics" > report.md cat metrics.txt >> report.md + echo "/n## Model Performance" + echo "Model performance metrics are on the plot below." + + cml-publish model_results.png --md >> report.md + cml-send-comment report.md From 89f83433b7acb6ed63041e35ca315137783f0c81 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 13:01:08 +0200 Subject: [PATCH 23/31] Update cml.yaml --- .github/workflows/cml.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 162b71f..a9c43bb 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -18,8 +18,8 @@ jobs: echo "## Model Metrics" > report.md cat metrics.txt >> report.md - echo "/n## Model Performance" - echo "Model performance metrics are on the plot below." + echo "/n## Model Performance" >> report.md + echo "Model performance metrics are on the plot below." >> report.md cml-publish model_results.png --md >> report.md From 67ffeb08807491c2744f37bea920b7941e9d9f8a Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 13:02:42 +0200 Subject: [PATCH 24/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index c08751b..1ab062f 100644 --- a/model.py +++ b/model.py @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=50) +model.fit(X_train, y_train, epochs=200) # Make and plot predictions for model_1 From 72729b5630cb1aebc46f58170b352f78fb83733c Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 13:14:12 +0200 Subject: [PATCH 25/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 1ab062f..c08751b 100644 --- a/model.py +++ b/model.py @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=200) +model.fit(X_train, y_train, epochs=50) # Make and plot predictions for model_1 From aaebbbf1bb3492621fd674705f129e85390c2af7 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 13:16:18 +0200 Subject: [PATCH 26/31] Update cml.yaml --- .github/workflows/cml.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index a9c43bb..baa7c87 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -18,7 +18,7 @@ jobs: echo "## Model Metrics" > report.md cat metrics.txt >> report.md - echo "/n## Model Performance" >> report.md + echo "\n## Model Performance" >> report.md echo "Model performance metrics are on the plot below." >> report.md cml-publish model_results.png --md >> report.md From ab421f9858e24a3a2e5df792c4bfe3f61bb5ea82 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 13:56:00 +0200 Subject: [PATCH 27/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index c08751b..704e3e7 100644 --- a/model.py +++ b/model.py @@ -9,7 +9,7 @@ def plot_predictions(train_data, train_labels, test_data, test_labels, predict """ Plots training data, test data and compares predictions. """ - plt.figure(figsize=(10, 7)) + plt.figure(figsize=(6, 5)) # Plot training data in blue plt.scatter(train_data, train_labels, c="b", label="Training data") # Plot test data in green @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=50) +model.fit(X_train, y_train, epochs=100) # Make and plot predictions for model_1 From 04b91ca5f659c8ac6383202e907bcc6d48cfa0bc Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 14:05:12 +0200 Subject: [PATCH 28/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 704e3e7..d37cf79 100644 --- a/model.py +++ b/model.py @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=100) +model.fit(X_train, y_train, epochs=50) # Make and plot predictions for model_1 From 68232d47cf0ac67b9eaaf62c4d0aa9d01dc7287d Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 14:07:43 +0200 Subject: [PATCH 29/31] Update model.py --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index d37cf79..31ef863 100644 --- a/model.py +++ b/model.py @@ -75,7 +75,7 @@ def mse(y_test, y_pred): # Create a model using the Sequential API model = tf.keras.Sequential([ tf.keras.layers.Dense(1), - #tf.keras.layers.Dense(1) + tf.keras.layers.Dense(1) ]) # Compile the model @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=50) +model.fit(X_train, y_train, epochs=100) # Make and plot predictions for model_1 From d775833b0a952bfbd7864c64f39a31b9f8fc8aa1 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 14:11:08 +0200 Subject: [PATCH 30/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 31ef863..90371ad 100644 --- a/model.py +++ b/model.py @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=100) +model.fit(X_train, y_train, epochs=50) # Make and plot predictions for model_1 From 64b26c53dca71ea18eb878304d150ee2f2cc6ac8 Mon Sep 17 00:00:00 2001 From: Vytautas Bielinskas Date: Wed, 24 Mar 2021 14:12:43 +0200 Subject: [PATCH 31/31] Update model.py --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 90371ad..31ef863 100644 --- a/model.py +++ b/model.py @@ -84,7 +84,7 @@ def mse(y_test, y_pred): metrics = ['mae']) # Fit the model -model.fit(X_train, y_train, epochs=50) +model.fit(X_train, y_train, epochs=100) # Make and plot predictions for model_1