Show progress bar for each epoch during batchwise training in Keras

前端 未结 3 875
我寻月下人不归
我寻月下人不归 2020-12-23 19:34

When I load the whole dataset in memory and train the network in Keras using following code:

model.fit(X, y, nb_epoch=40, batch_size=32, validation_split=0.2         


        
3条回答
  •  萌比男神i
    2020-12-23 20:07

    you can set verbose=0 and set callbacks that will update progress at the end of each fitting,

    clf.fit(X, y, nb_epoch=1, batch_size=data.batch_size, verbose=0, callbacks=[some_callback])
    

    https://keras.io/callbacks/#example-model-checkpoints

    or set callback https://keras.io/callbacks/#remotemonitor

提交回复
热议问题