using
FluxTraining
using
FluxTraining
.
Events
,
FluxTraining
.
Phases
Use
Base.methods
to check what events a callback handles:
methods
(
FluxTraining
.
on
,
(
Any
,
Any
,
Recorder
,
Any
)
)
You can use GraphPlot . jl to visualize the dependencies between callbacks:
using
GraphPlot
gplot
(
learner
.
callbacks
.
graph
,
nodelabel
=
learner
.
callbacks
.
cbs
,
layout
=
stressmajorize_layout
)
(the target of an arrow depends on the origin)
As an example for a detected dependency, we can see that
MetricsPrinter
runs after
Metrics
.
MetricsPrinter
prints the values of all metrics, so [
Metrics
] needs to run first.