Skip to content
New issue

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

clustering.py problem #8

Open
HotView opened this issue Sep 5, 2018 · 1 comment
Open

clustering.py problem #8

HotView opened this issue Sep 5, 2018 · 1 comment

Comments

@HotView
Copy link

HotView commented Sep 5, 2018

The file clustering.py has some lines of code:

def __init__(self, geo_locs_, k_):
        self.geo_locations = geo_locs_
        self.k = k_
        self.clusters = []  #clusters of nodes
        self.means = []     #means of clusters
        self.debug = True  #debug flag

self.clusters = []
the clusters is a list.
Should the self.clusters is a dict?

@EStormLynn
Copy link

Sure, it's a dict. Actually, It's not important, in function assign_points() line:90,clusters define as a dict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants