Skip to content

sciml.errors

Errors of the neural networks.

NetworkError

Bases: Exception

The base of the errors of a network.

A caller catches every error of the import and the evaluation of a network with it.

NetworkImportError

Bases: NetworkError, ValueError

A network or its arrays cannot be read.

The message names the network and, where it applies, the layer and the array.

UnsupportedLayerError

UnsupportedLayerError(network, node, target, reason)

Bases: NetworkError, NotImplementedError

A node of the forward pass has no implementation.

Attributes:

Name Type Description
network

id of the network.

node

name of the node of the forward pass.

target

the layer type, function or method of the node.

reason

why the node is not evaluated.

Initialize the error.

Parameters:

Name Type Description Default
network str

id of the network.

required
node str

name of the node of the forward pass.

required
target str

the layer type, function or method of the node.

required
reason str

why the node is not evaluated.

required

NetworkHybridizationError

Bases: NetworkError, ValueError

A hybridization does not fit its network, its model or its fit.

The message names the network and, where it applies, the input, the output or the target.

NetworkCompilationError

Bases: NetworkError, ValueError

A network cannot be compiled into a model.

The message names the network and, where it applies, the node or the target, and the reason.