onecycle

function defined in module FluxTraining


			onecycle(nsteps, max_val, [start_val, end_val; pct_start])

Creates a one-cycle Schedule over nsteps steps from start_val
over max_val to end_val .

Examples


			
			epochlength = length(traindataiter)
cb = Scheduler(LearningRate => onecycle(10epochlength, 0.01))
learner = Learner(<args>...; callbacks=[cb])
Methods

There is 1 method for onecycle:

onecycle(nsteps, max_val; pct_start, div, divfinal, start_val, end_val)
callbacks/scheduler.jl:82
Backlinks