Exceptions Documentation

This page contains the Exceptions Module documentation.

The exceptions Module

This module defines all exceptions for CMPy.

exception cmpy.exceptions.CMPyException(*args)

Bases: exceptions.Exception

Base class for exceptions in CMPy.

exception cmpy.exceptions.CMPyError(*args)

Bases: cmpy.exceptions.CMPyException

Exception for a fatal error in CMPy

exception cmpy.exceptions.CMPyStop(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use when breaking out of multiple (while)loops.

exception cmpy.exceptions.InvalidKeywords(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown when invalid keywords are passed to a function.

exception cmpy.exceptions.AttrException(*args)

Bases: cmpy.exceptions.CMPyException

Exception to be used during the parsing of attributes.

exception cmpy.exceptions.InvalidEdgeError(*args)

Bases: cmpy.exceptions.CMPyException

Exception for edges which do not have valid nodes

exception cmpy.exceptions.InvalidProbabilitySum(*args)

Bases: cmpy.exceptions.CMPyException

Exception for use when summed probabilies do not add to 1.

exception cmpy.exceptions.InitializationError(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown when something wasn’t initialized.

exception cmpy.exceptions.WaitTimeExceeded(*args)

Bases: cmpy.exceptions.Exceeded

Exception thrown when a wait time has been exceeded.

exception cmpy.exceptions.InvalidOrdering(*args)

Bases: cmpy.exceptions.CMPyException

Exception for use when an ordering contains duplicate items or items not in the CMGraph.

exception cmpy.exceptions.AlphabetException(*args)

Bases: cmpy.exceptions.CMPyException

Exception for when the alphabet could not be obtained.

exception cmpy.exceptions.ForbiddenWord(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use when an operation cannot be completed due to the specification of a forbidden word.

exception cmpy.exceptions.MaxIterationsExceeded(*args)

Bases: cmpy.exceptions.Exceeded

Exception to use when the maximum number of iterations has been exceeded.

exception cmpy.exceptions.MaxClustersExceeded(*args)

Bases: cmpy.exceptions.Exceeded

Exception to use when the maximum number of clusters has been exceeded.

exception cmpy.exceptions.Exceeded(*args)

Bases: cmpy.exceptions.CMPyException

Base class for all errors related to some quantity being exceeded.

exception cmpy.exceptions.CausalStateUnchanged(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown to indicate that a history word’s causal state has not changed.

exception cmpy.exceptions.CausalStateChanged(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown to indicate that a history word’s causal state has changed.

exception cmpy.exceptions.LostCluster(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use when a cluster was lost.

exception cmpy.exceptions.OCIWaveDetected(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use when a wave was detected.

exception cmpy.exceptions.FoundBestNumberOfClusters(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use when the best number of clusters has been found.

exception cmpy.exceptions.AnnealingRateUnderflow(*args)

Bases: cmpy.exceptions.CMPyException

exception cmpy.exceptions.MultipleRecurrentComponents(*args)

Bases: cmpy.exceptions.CMPyException

Exception for use when there is more than one asymptotic state distribution. The eigenvalues are degenerate, and thus, more than one eigenvector has eigenvalue 1.

exception cmpy.exceptions.NonunifilarException(*args)

Bases: cmpy.exceptions.CMPyException

Exception for when a machine is not unifilar, when it should be.

exception cmpy.exceptions.NotAccessibleException(node, *args)

Bases: cmpy.exceptions.CMPyException

Exception for when a machine is not accessible from a node.

exception cmpy.exceptions.TransducerError(*args)

Bases: cmpy.exceptions.CMPyException

exception cmpy.exceptions.UnexpectedHMM(*args)

Bases: cmpy.exceptions.CMPyException

exception cmpy.exceptions.InvalidDistribution(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown when a distribution is not normalized.

exception cmpy.exceptions.InfiniteRelativeEntropy(*args)

Bases: cmpy.exceptions.CMPyException

Exception to use if the relative entropy was calculated to be infinite.

exception cmpy.exceptions.InvalidProbability(*args)

Bases: cmpy.exceptions.CMPyException

Exception thrown when a probability is not in [0,1].