noether.core.factory.schedule¶
Classes¶
Factory for creating schedules. Handles wrapping into |
Module Contents¶
- class noether.core.factory.schedule.ScheduleFactory(returns_partials=False)¶
Bases:
noether.core.factory.base.FactoryFactory for creating schedules. Handles wrapping into
ScheduleWrapperwhich handles update/epoch based scheduling. Additionally, populates theeffective_batch_sizeandupdates_per_epochto avoid specifying it in the config.- Parameters:
returns_partials (bool)
- create(schedule_config, **kwargs)¶
Creates a schedule based on the provided config and wraps it into a
ScheduleWrapper.- Parameters:
schedule_config (noether.core.schemas.schedules.AnyScheduleConfig) – The schedule config or already instantiated schedule. See
AnyScheduleConfigfor available options.**kwargs – Additional keyword arguments that are passed to the schedule constructor.
- Returns:
The instantiated schedule wrapped in
ScheduleWrapper.- Return type: