Versions in this module Expand all Collapse all v0 v0.1.1 May 13, 2023 Changes in this version + func Retry(attempts int, sleep time.Duration, callback func() error) (err error) + func WithDecayRate(rate float32) func(*DecaySchedule) + func WithMinValue(rate float32) func(*DecaySchedule) + type ConstantSchedule struct + func NewConstantSchedule(value float32) *ConstantSchedule + func (c *ConstantSchedule) Initial() float32 + func (c *ConstantSchedule) Value() float32 + type DecaySchedule struct + func DefaultDecaySchedule(opts ...DecayScheduleOpt) *DecaySchedule + func NewDecaySchedule(decayRate, initialValue, minValue float32) *DecaySchedule + func (d *DecaySchedule) Initial() float32 + func (d *DecaySchedule) Value() float32 + type DecayScheduleOpt func(*DecaySchedule) + type LinearSchedule struct + func DefaultLinearSchedule(numTimesteps int) *LinearSchedule + func NewLinearSchedule(numTimesteps int, initialValue, finalValue float32) *LinearSchedule + func (l *LinearSchedule) Initial() float32 + func (l *LinearSchedule) Value() float32 + type Schedule interface + Initial func() float32 + Value func() float32