k1lib.schedule module¶
-
k1lib.schedule.
combine
(lambdas: List[Callable[[float], float]], ratios: Optional[List[float]] = None) → Callable[[float], float][source]¶ Combine multiple different schedules.
- Parameters
ratios – weighting diferent functions. Does not have to add up to 1.
lambdas – functions with 1 float input in [0, 1]
-
k1lib.schedule.
decorate
(f: Callable[[float, float, float], float]) → Callable[[float], float][source]¶ Decorator, transforms f(low, high, x) to (low, high) -> f(x).
-
class
k1lib.schedule.
Schedule
(param: str, scheduleF: Callable[[float], float])[source]¶ Bases:
object
-
property
value
¶
-
static
linear
(param: str, low: float, high: float) → Callable[[float], float][source]¶ Sharply goes from low to high
-
static
cosine
(param: str, low: float, high: float) → Callable[[float], float][source]¶ Smoothly goes from low to high
-
property
-
class
k1lib.schedule.
ParamScheduler
(css: str, schedules: Union[List[k1lib.schedule.Schedule], k1lib.schedule.Schedule])[source]¶ Bases:
k1lib.callbacks.callbacks.Callback
Schedules a param in parts of the network.
- Parameters
css – the selected parts of the network to schedule
schedules – (obvious)
-
startRun
()¶ meta:private