Function loss
pub fn loss(
value: f64,
start_loss: f64,
start: u64,
horizon: u64,
step: u64,
) -> f64Expand description
The training loss at step of a segment that started at start with loss
start_loss and converges to value at horizon. Past the horizon it
stays at value.