gpflux.exceptions#

This module provides custom exceptions used by GPflux.

Module Contents#

exception GPLayerIncompatibilityException[source]#

Bases: Exception

This exception is raised when GPLayer is misconfigured. This can be caused by multiple reasons, but common misconfigurations are:

  • Incompatible or wrong type of Kernel, InducingVariables and/or MeanFunction.

  • Incompatible number of latent GPs specified.

Initialize self. See help(type(self)) for accurate signature.

exception EncoderInitializationError[source]#

Bases: Exception

This exception is raised by an encoder (e.g. DirectlyParameterizedNormalDiag) when parameters are not initialised correctly.

Initialize self. See help(type(self)) for accurate signature.