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

Logger routes metrics to the LoggerCallback.

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]#

Bases: composer.core.algorithm.Algorithm

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.