This commit is contained in:
parent
ce6278c648
commit
10e3f9fad8
@ -16,10 +16,10 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN ls -la
|
||||
|
||||
RUN chmod o+wrx ./startscript1.sh
|
||||
|
||||
RUN chmod o+wrx ./runPythonScripts.sh
|
||||
|
||||
RUN ./startscript1.sh
|
||||
RUN ./startscript1.sh
|
||||
|
||||
RUN ls -la
|
||||
|
@ -56,10 +56,13 @@ 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=10, )
|
||||
history = linear_model.fit(house_price_features, house_price_labels, epochs=5, )
|
||||
#callbacks=[cp_callback])
|
||||
# print(history)
|
||||
|
||||
# save model
|
||||
linear_model.save('saved_model/my_model')
|
||||
|
||||
test_results = {}
|
||||
test_results['linear_model'] = linear_model.evaluate(
|
||||
house_price_test_features, house_price_test_expected, verbose=0)
|
||||
|
Loading…
Reference in New Issue
Block a user