.FluxTrainingon

function defined in module FluxTraining


			on(event::Event, phase::Phase, callback::AbstractCallback, learner)

Handle event with Callback callback. By default, this event handler does nothing for a callback.

To see events which an AbstractCallback handles, use


			
			methods(Training.on, (Any, Any, MyCallbackType, Any)

Extending

You can add event handlers to Callbacks by implementing a method for on. See also Callback and custom callbacks.

A method of on should always dispatch on the callback type, i.e. on(event, phase, cb::MyCallback, learner). It may also dispatch on specific Event s and Phase . It should not dispatch on a specific type for learner.