Fix folder load path

This commit is contained in:
Wojciech Jarmosz 2021-04-25 22:19:56 +02:00
parent 176b7b693a
commit e89cd155ae

View File

@ -23,7 +23,7 @@ test_Y = tf.convert_to_tensor(test_data[["IMDb"]])
normalizer = preprocessing.Normalization(input_shape=[3,]) normalizer = preprocessing.Normalization(input_shape=[3,])
normalizer.adapt(train_X) normalizer.adapt(train_X)
if os.path.isfile('linear_regression.h5'): if os.path.isdir('linear_regression'):
model = keras.models.load_model('linear_regression') model = keras.models.load_model('linear_regression')
else: else:
model = keras.Sequential([ model = keras.Sequential([