Fix casting

This commit is contained in:
Wojciech Jarmosz 2021-05-14 04:12:42 +02:00
parent f1083d4e7a
commit e67ad3779c

View File

@ -44,8 +44,8 @@ else:
optimizer=tf.keras.optimizers.Adam(0.001),
metrics=[tf.keras.metrics.RootMeanSquaredError()])
verbose = 0 if len(verbose) == 0 else verbose[0]
epochs = 100 if len(epochs) == 0 else epochs[0]
verbose = 0 if len(verbose) == 0 else int(verbose[0])
epochs = 100 if len(epochs) == 0 else int(epochs[0])
model.fit(train_X, train_Y, verbose=verbose, epochs=epochs)
model.save('linear_regression.h5')