Skip to main content
Version: 0.5.x

aisp.exceptions

Custom warnings and errors.

Module: aisp.exceptions
Import: from aisp import exceptions

Exception classes

MaxDiscardsReachedError

class MaxDiscardsReachedError(Exception):
...

Exception thrown when the maximum number of detector discards is reached.

Parameters

NameTypeDefaultDescription
object_namestr-The name of the instantiated class that throws the exceptions.
messageOptional[str]NoneCustom message to display.

FeatureDimensionMismatch

class FeatureDimensionMismatch(Exception):
...

Exception raised when the number of input features does not match the expected number.
This exception is triggered during prediction if the input features' dimension is incorrect.

Parameters

NameTypeDefaultDescription
expectedint-The expected number of features
receivedint-The actual number of features received.
variable_nameOptional[str]NoneThe name of the variable that caused this mismatch.

UnsupportedTypeError

class UnsupportedTypeError(Exception):
...

Exception raised when the input vector type is not supported.
This exception is thrown when the vector data type does not match any of the supported.

Parameters

NameTypeDefaultDescription
messageOptional[str]NoneCustom message to display.

ModelNotFittedError

class ModelNotFittedError(Exception):
...

Exception raised when a method is called before the model has been fit.
This exception is thrown when the model instance is being used without first training it via the fit method.

Parameters

NameTypeDefaultDescription
object_namestr-The name of the instantiated class that throws the exceptions.
messageOptional[str]NoneCustom message to display.