커뮤니티

  math/python  view

  keras tips2020-06-02 12:57/김윤중/1124

  • fit verbose의 altanative
    • If you want to use an alternative, you could use tqdm (version >= 4.41.0):
    • from tqdm.keras import TqdmCallback
      ...
      model.fit(..., verbose=0, callbacks=[TqdmCallback(verbose=2)])
    • This turns off keras' progress (verbose=0), and uses tqdm instead. For the callback, verbose=2 means separate progressbars for epochs and batches. 1 means clear batch bars when done. 0 means only show epochs (never show batch bars).
  • from keras_tqdm import TQDMNotebookCallback
    run Keras' fit or fit_generator with verbose=0 or verbose=2 settings, but with a callback to the imported TQDMNotebookCallback, e.g. model.fit(X_train, Y_train, verbose=0, callbacks=[TQDMNotebookCallback()])
  • from keras_tqdm import TQDMNotebookCallback
    ...
    model.fit(..., verbose=0, callbacks=[TqdmCallback(verbose=2)])
    enter image description here

re m d      LIST