Skip to content

ValueError: No point was within bandwidth=0.654847 of any seed. Try a different seeding strategy or increase the bandwidth. #14812

Closed
@zwyyy215

Description

@zwyyy215

My code is below.

bandwidth = estimate_bandwidth(u_feas, quantile=0.3, n_samples=500)
ms = MeanShift(bandwidth=bandwidth, bin_seeding=True, cluster_all=True)
ms.fit(u_feas)
labels_new = ms.labels_ 
unique_labels = np.sort(np.unique(np.array(labels_new)))

I don't know how to solve the problem.Title is the error.
Best wishes!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions