Skip to content

relai package

Subpackages

Submodules

relai.relai_algorithm module

class relai.relai_algorithm.RELAIAlgorithm(fabric: Fabric = None)

Bases: object

Base class for all algorithms in the relai_algorithms package. Any users of the relai_algorithms package should not need to interact with this class directly.

  • Parameters:
    • fabric (L.Fabric , optional) – Lightning fabric to run the algorithm. If None, a new fabric with 1 device will be created. Defaults to None.
    • save_to_path (Union *[*str , Path ] , optional) – Path to save the outputs to. If None, the outputs will be saved to the current working directory with a default name that includes the algorithm name and a timestamp. If provided and the parent directories do not exist, they will be silently created. Defaults to None.

relai.relai_params_validator module

class relai.relai_params_validator.RELAIParamsValidator(schema)

Bases: object

property errors : list

validate(params: dict)

Module contents