composer.algorithms.algorithm_hparams#

composer.algorithms.algorithm_hparams

Functions

abstractmethod

A decorator indicating abstract methods.

dataclass

Returns the same class as was passed in, with dunder methods added based on the fields defined in the class.

Classes

ABC

Helper class that provides a standard way to create an ABC using inheritance.

Algorithm

Base class for algorithms.

Hparams

These classes are used with yahp for YAML-based configuration.

AlgorithmHparams

Hyperparameters for algorithms.

Attributes

  • Optional

  • annotations

class composer.algorithms.algorithm_hparams.AlgorithmHparams[source]#

Bases: yahp.hparams.Hparams, abc.ABC

Hyperparameters for algorithms.

abstract initialize_object()[source]#

Invoked by the TrainerHparams.initialize_object() to create an instance of the Algorithm.

Returns

Algorithm โ€“ An instance of the Algorithm.