Update 'ium_zadanie6_evaluation.py'

This commit is contained in:
Zofia Galla 2021-05-16 11:30:13 +02:00
parent 7d96ad4ca5
commit 8439d39d7b

View File

@ -20,7 +20,7 @@ y_predicted = model.predict(x_test, batch_size=64)
error = mean_squared_error(y_test, y_predicted) error = mean_squared_error(y_test, y_predicted)
with open('evaluation.txt', 'a+') as f: with open('evaluation.txt', 'a+') as f:
f.write('%d\n' % error) f.write('%f\n' % error)
errors = np.genfromtxt('evaluation.txt') errors = np.genfromtxt('evaluation.txt')