add learn parameter
Some checks failed
s444417-training/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-04-25 22:55:03 +02:00
parent cda767977a
commit 41d0a23830
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash
python3 ./src/task1python.py
python3 ./src/trainScript.py
python3 ./src/trainScript.py 6

View File

@ -6,6 +6,9 @@ import numpy as np
import tensorflow as tf
from tensorflow.keras import layers
#train params
numberOfEpoch = sys.argv[1]
cwd = os.path.abspath(os.path.dirname(sys.argv[0]))
pathTrain = cwd + "/../Participants_Data_HPP/Train.csv"
@ -56,7 +59,7 @@ linear_model.compile(loss = tf.losses.MeanSquaredError(),
optimizer = tf.optimizers.Adam(1))
# train model
history = linear_model.fit(house_price_features, house_price_labels, epochs=5, )
history = linear_model.fit(house_price_features, house_price_labels, epochs=numberOfEpoch, )
#callbacks=[cp_callback])
# print(history)