pycvi.exceptions

PyCVI exceptions.

Exceptions

EmptyClusterError

The clustering algorithm didn't converge.

InvalidKError

The CVI was called with an incompatible number of clusters.

InvalidScoreError

The score given is not among the implemented scores.

ScoreError

The score given is invalid, probably because it is None.

SelectionError

The CVI couldn't select the best clustering.

ShapeError

The given data doesn't have the right shape.

exception pycvi.exceptions.EmptyClusterError

The clustering algorithm didn’t converge.

As a result of not converging, some clusters are empty resulting in the absence of clustering.

exception pycvi.exceptions.ShapeError

The given data doesn’t have the right shape.

The acceptable input shapes are: (N,) or (N, d) or (N, T, d).

exception pycvi.exceptions.InvalidScoreError

The score given is not among the implemented scores.

Either because its reduction was not implemented or because its main function was not implemented.

exception pycvi.exceptions.ScoreError

The score given is invalid, probably because it is None.

exception pycvi.exceptions.InvalidKError

The CVI was called with an incompatible number of clusters.

exception pycvi.exceptions.SelectionError

The CVI couldn’t select the best clustering.

This is probably because the CVI values given are all None or NaN or all equal.