AvgLossCallback#

class radionets.core.callbacks.AvgLossCallback[source]#

Bases: Callback

Callback for tracking and plotting average training and validation losses.

Saves the average loss for training and validation that is printed to the terminal.

Attributes Summary

learn

name

Name of the Callback, camel-cased and with 'Callback' removed

order

run

run_train

run_valid

Methods Summary

__call__(event_name)

Call self.{event_name} if it's defined

after_batch()

after_train()

after_validate()

plot_loss()

plot_lrs()

Attributes Documentation

learn = None#
name#

Name of the Callback, camel-cased and with ‘Callback’ removed

order = 0#
run = True#
run_train = True#
run_valid = True#

Methods Documentation

__call__(event_name)#

Call self.{event_name} if it’s defined

after_batch()[source]#
after_train()[source]#
after_validate()[source]#
plot_loss()[source]#
plot_lrs()[source]#