# composer.algorithms.scale_schedule.scale_schedule#

composer.algorithms.scale_schedule.scale_schedule

Classes

 Algorithm Base class for algorithms. Event Enum to represent events in the training loop. Logger An interface to record training data. ScaleSchedule Deprecated - do not use. State The state of the trainer.

Attributes

• Optional

• log

class composer.algorithms.scale_schedule.scale_schedule.ScaleSchedule(ratio=1.0)[source]#

Deprecated - do not use.

This algorithm is deprecated, and is being replaced by the scale_schedule_ratio param supported directly by the Composer Trainer. For backwards compatibility, the Composer Trainer detects when this algorithm has been initialized, and pulls the ratio param accordingly.

Parameters

ratio (float, optional) – The factor by which to scale the duration of the schedule. E.g., 0.5 makes the schedule take half as long and 2.0 makes it take twice as long. Default: 1.0.

apply(event, state, logger)[source]#

No-op.

match(event, state)[source]#

Run on Event.INIT.

Parameters
• event (Event) – The current event.

• state (State) – The current state.

Returns

bool – True if this algorithm should run.