add learn parameter
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
cda767977a
commit
41d0a23830
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
python3 ./src/task1python.py
|
||||
python3 ./src/trainScript.py
|
||||
python3 ./src/trainScript.py 6
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user