Learning Rate Schedulers¶
Training schedule functions.
sched_flat_cos ¶
Flat (1.0) until pct_start, then cosine decay to zero.
Source code in tsfast/training/schedulers.py
sched_lin_p ¶
Linear schedule that reaches the end value at position p.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
float
|
value at position 0 |
required |
end
|
float
|
value at position p and beyond |
required |
pos
|
float
|
current position in [0, 1] |
required |
p
|
float
|
position at which the end value is reached |
0.75
|
Source code in tsfast/training/schedulers.py
sched_ramp ¶
sched_ramp(start: float, end: float, pos: float, p_left: float = 0.2, p_right: float = 0.6) -> float
Ramp schedule that linearly transitions between two plateau regions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
float
|
value before p_left |
required |
end
|
float
|
value after p_right |
required |
pos
|
float
|
current position in [0, 1] |
required |
p_left
|
float
|
position where the ramp begins |
0.2
|
p_right
|
float
|
position where the ramp ends |
0.6
|