'ModelCheckpoint not saving checkpoint files (.h5 files)
model = Model(sequence_input, preds)
adadelta = tf.keras.optimizers.Adadelta(lr=0.9, rho=0.95, epsilon=None, decay=0.002)
lr_metric = get_lr_metric(adadelta)
model.compile(loss='categorical_crossentropy', optimizer=adadelta, metrics=['acc'])
path = "D:/Jupyter Notebooks/Text-Emotion-Analysis/Text-Emotion-Analysis-master/checkpoints/checkpoint-{val_acc:.4f}.h5"
tensorboard = callbacks.TensorBoard(log_dir='./logs', histogram_freq=0, batch_size=16, write_grads=True , write_graph=True)
model_checkpoints = ModelCheckpoint(path,monitor='val_acc', verbose=0, save_best_only=False, save_weights_only=True, mode='auto', period=0)
lr_schedule = callbacks.LearningRateScheduler(initial_boost)
When I run the code shown above, there are no checkpoints that get saved onto my checkpoints folder.
Does anyone know the reason as to why?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
