-
I'm using learn.fit_one_cycle to train a model with a large number of epochs and a notebook with Paperspace Gardient. Displaying the loss after every epoch causes my browser (Chrome) to crash. The code stills runs fine in the background but I'm not able to refresh the browser and see how the training is progressing or how close it is to finishing. Is there a way to disable displaying the loss after each epoch? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @jrfackler, X, y, splits = get_UCR_data('LSST', split_data=False)
tfms=[None, TSClassification()]
batch_tfms = [TSStandardize(by_sample=True)]
dls = get_ts_dls(X,y,splits=splits,tfms=tfms, batch_tfms=batch_tfms)
learn = ts_learner(dls, InceptionTimePlus, metrics=[accuracy, BalancedAccuracy()], cbs=[ShowGraph(), PredictionDynamics()])
with ContextManagers([learn.no_logging(), learn.no_bar()]):
learn.fit_one_cycle(50, 1e-3)
learn.plot_metrics() learn.no_logging() avoids displaying the loss. learn.no_bar() avoids displaying the progress bar. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much!!! That worked perfectly. |
Beta Was this translation helpful? Give feedback.
Thank you very much!!! That worked perfectly.