deephyper.core.exceptions package

Submodules

deephyper.core.exceptions.loading module

Exceptions related with imports of modules/attributes/scripts.

exception deephyper.core.exceptions.loading.GenericLoaderError(target, attr, error_source, custom_msg='')[source]

Bases: deephyper.core.exceptions.DeephyperError

Raised when the generic_loader function is failing.

deephyper.core.exceptions.problem module

Exceptions related with problem definition.

exception deephyper.core.exceptions.problem.NaProblemError(msg: str)[source]

Bases: deephyper.core.exceptions.DeephyperError

Raise when an error occurs in a NaProblem instance.

exception deephyper.core.exceptions.problem.ProblemLoadDataIsNotCallable(parameter)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when the load_data parameter is not callable.

exception deephyper.core.exceptions.problem.ProblemPreprocessingIsNotCallable(parameter)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when the preprocessing parameter is not callable.

exception deephyper.core.exceptions.problem.SearchSpaceBuilderIsNotCallable(parameter)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when a search space builder is not a callable.

exception deephyper.core.exceptions.problem.SearchSpaceBuilderMissingDefaultParameter(parameter)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when a parameter of a search space builder is missing a default value.

exception deephyper.core.exceptions.problem.SearchSpaceBuilderMissingParameter(missing_parameter)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when a missing parameter is detected in a callable which creates a Structure.

Parameters

missing_parameter (str) – name of the missing parameter.

exception deephyper.core.exceptions.problem.SpaceDimNameOfWrongType(value)[source]

Bases: deephyper.core.exceptions.DeephyperError

Raised when a dimension name of the space is not a string.

exception deephyper.core.exceptions.problem.WrongProblemObjective(objective, possible_names=None)[source]

Bases: deephyper.core.exceptions.problem.NaProblemError

Raised when the objective parameter is neither a callable nor a string.

Module contents

Deephyper exceptions

exception deephyper.core.exceptions.DeephyperError[source]

Bases: Exception

Root deephyper exception.

exception deephyper.core.exceptions.DeephyperRuntimeError[source]

Bases: RuntimeError

Raised when an error is detected in deephyper and that doesn’t fall in any of the other categories. The associated value is a string indicating what precisely went wrong.