NoElbowDetectedError#
- exception neurocaps.exceptions.NoElbowDetectedError[source]#
Bases:
ExceptionElbow Method Failure Exception.
This exception occurs in
CAP.get_caps()whencluster_selection_methodis set to “elbow” but kneed’sKneeLocatorfails to detect a point of maximum curvature in the elbow curve.- This error may occur due to:
The range of tested cluster sizes (k) is too restrictive and should be expanded, as the elbow likely occurs at a larger cluster size.
Multiple elbows existing; thus, the value of the sensitivity (
S) parameter ofKneeLocatorshould be increased to be more conservative.The data lacking a natural clustering structure (exceptionally rare for fMRI data).