modularml.utils.exceptions
Exceptions
|
Raised when error occurs with Activation class |
|
Raised when a component receives input or configuration with the wrong backend. |
|
Raised when an operation is called on a backend that is not supported. |
|
|
|
Raised when error occurs with Loss class |
|
Raised when loss is None but required. |
|
Raised when error occurs within ModelStage class |
|
|
Base class for all ModularML-specific exceptions. |
|
|
Raised when error occurs with Optimizer class |
|
Raised when training is called on a ModelStage with no Optimizer |
|
|
- exception modularml.utils.exceptions.ActivationError(message: str = None)
Bases:
ModularMLErrorRaised 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:
ModularMLErrorRaised 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:
ModularMLErrorRaised 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:
ModularMLErrorRaised 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:
LossErrorRaised 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:
ModularMLErrorRaised 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:
ExceptionBase 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:
ModularMLErrorRaised 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:
OptimizerErrorRaised 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.