pycvi.exceptions
PyCVI exceptions.
Exceptions
The clustering algorithm didn't converge. |
|
The CVI was called with an incompatible number of clusters. |
|
The score given is not among the implemented scores. |
|
The score given is invalid, probably because it is None. |
|
The CVI couldn't select the best clustering. |
|
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.