INNER CODE UNIT · Python
after_fit
timeseriesAI/tsai · tsai/callback/core.py:45
def after_fit(self):
if self.show_plot and self.mult != [] and len(self.mag_tfms)>0:
print()
plt.plot(self.mult)
plt.title('Scheduled tfms')
plt.show()
print()
self.show_plot = False
# set values to initial values
for t,m in zip(self.mag_tfms, self.mag): t.magnitude = m
def __repr__(self):
return f'{self.__class__.__name__}({self.schedule_func})'
# %% ../../nbs/024_callback.core.ipynb #3d292bcc
class ShowGraph(Callback):
"(Modified) Update a graph of training and validation loss"
order,run_valid=65,False