hdbscan
hdbscan copied to clipboard
X[labels == cluster_id, :] implicitly expect X to be numpy array
Probably type check should be performed.
In my case X was list and i received
subset_X = X[labels == cluster_id, :]TypeError: list indices must be integers or slices, not tuple
Following scikit-learn procedures there should be a call to check_array prior to that which ensures certain formats. Can you actually refer to the line in the code?