导入喀拉拉邦
callbacks_list = [keras.callbacks.EarlyStopping(monitor="val_acc",patience=10),
keras.callbacks.ModelCheckpoint(filepath="inception_model.h5",monitor="val_loss",s ave_best_only=True),
keras.callbacks.TensorBoard(log_dir="tensor_log",histogram_freq=1,embeddings_freq=1)]
model.compile(loss='mean_squared_error', optimizer='sgd',metrics=["acc"])
history = model.fit_generator(train_generator,steps_per_epoch=10,epochs=10,validation_data=validation_generator,validation_steps=1,verbose=2
,callbacks=callbacks_list)
ValueError:没有要保存的变量
我不明白为什么要建模。 fit无法运行脚本。