Skip to content
Snippets Groups Projects
Commit c3da3509 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Fixed a bug: correct number of epochs is now displayed

parent 9d37e556
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ def plot_loss(state_file, figsize=(10, 10), step=5,
# compute early stopping point
if loss['va'].any():
esepoch = np.argmax(loss['va'].mean(axis=0)) * nbatches
esepoch = np.argmax(loss['va'].mean(axis=0)) * nbatches + 1
esacc = np.max(loss['va'].mean(axis=0))
ax1.vlines(esepoch, ymin=ax1.get_ylim()[0], ymax=ax1.get_ylim()[1],
ls='--', color='grey')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment