We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think this particular piece of code causes error num_clusters = len(set(cluster_labels))
num_clusters = len(set(cluster_labels))
clusters = pd.Series([coords[cluster_labels==n] for n in range(num_clusters)])
since when min_samples>1, there are points that are considered 'noisy' and get a label '-1' that label should be discarded,
cluster_set = set(cluster_labels)
if -1 in cluster_set: cluster_set.remove(-1)
num_clusters = len(cluster_set)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think this particular piece of code causes error
num_clusters = len(set(cluster_labels))
clusters = pd.Series([coords[cluster_labels==n] for n in range(num_clusters)])
since when min_samples>1, there are points that are considered 'noisy' and get a label '-1'
that label should be discarded,
cluster_set = set(cluster_labels)
if -1 in cluster_set: cluster_set.remove(-1)
num_clusters = len(cluster_set)
The text was updated successfully, but these errors were encountered: