modularml.utils.exceptions

Exceptions

ActivationError([message])

Raised when error occurs with Activation class

BackendMismatchError(expected, received[, ...])

Raised when a component receives input or configuration with the wrong backend.

BackendNotSupportedError(backend[, method, ...])

Raised when an operation is called on a backend that is not supported.

FeatureSetError([message])

LossError([message])

Raised when error occurs with Loss class

LossNotSetError([method, message])

Raised when loss is None but required.

ModelStageError([message])

Raised when error occurs within ModelStage class

ModelStageInputError([message])

ModularMLError

Base class for all ModularML-specific exceptions.

OptimizerError([message])

Raised when error occurs with Optimizer class

OptimizerNotSetError([method, message])

Raised when training is called on a ModelStage with no Optimizer

SampleLoadError([message])

SubsetOverlapWarning

exception modularml.utils.exceptions.ActivationError(message: str = None)

Bases: ModularMLError

Raised when error occurs with Activation class

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.BackendMismatchError(expected: str, received: str, message: str = None)

Bases: ModularMLError

Raised when a component receives input or configuration with the wrong backend.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.BackendNotSupportedError(backend: Backend, method: str = None, message: str = None)

Bases: ModularMLError

Raised when an operation is called on a backend that is not supported.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.FeatureSetError(message: str = None)

Bases: ModularMLError

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.LossError(message: str = None)

Bases: ModularMLError

Raised when error occurs with Loss class

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.LossNotSetError(method: str = None, message: str = None)

Bases: LossError

Raised when loss is None but required.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.ModelStageError(message: str = None)

Bases: ModularMLError

Raised when error occurs within ModelStage class

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.ModelStageInputError(message: str = None)

Bases: ModelStageError

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.ModularMLError

Bases: Exception

Base class for all ModularML-specific exceptions.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.OptimizerError(message: str = None)

Bases: ModularMLError

Raised when error occurs with Optimizer class

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.OptimizerNotSetError(method: str = None, message: str = None)

Bases: OptimizerError

Raised when training is called on a ModelStage with no Optimizer

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.SampleLoadError(message: str = None)

Bases: FeatureSetError

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception modularml.utils.exceptions.SubsetOverlapWarning

Bases: UserWarning

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.