Skip to content

clustering-scikitlearn.ipynb #2

@asif-nuaa

Description

@asif-nuaa

When I change number of samples to 20 in the code,
db = DBSCAN(eps=epsilon, min_samples=20, algorithm='ball_tree', metric='haversine').fit(np.radians(coords))

I am getting the error, IndexError: list index out of range on the line in get_centermost_point(cluster)
----> 2 centroid = (MultiPoint(cluster).centroid.x, MultiPoint(cluster).centroid.y)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions