Update 'predict.py'

This commit is contained in:
Patryk Gałka 2023-05-10 20:32:32 +02:00
parent 659cd05107
commit 18b29dc335

View File

@ -12,7 +12,7 @@ reloaded = tensorflow.keras.models.load_model('test')
x_to_test = pandas.read_csv('./X_test.csv') x_to_test = pandas.read_csv('./X_test.csv')
y_to_test = pandas.read_csv('./Y_test.csv') y_to_test = pandas.read_csv('./Y_test.csv')
accu = norm_games_model.evaluate(x_to_test, y_to_test) accu = reloaded.evaluate(x_to_test, y_to_test)
pre = norm_games_model.predict(x_to_test) pre = reloaded.predict(x_to_test)
pre.tofile('prediction.csv', sep=',', format='%s') pre.tofile('prediction.csv', sep=',', format='%s')