Update k_means_clust.py

This commit is contained in:
thor-harsh 2023-08-18 18:48:39 +05:30 committed by GitHub
parent 50d8ef8525
commit ea284221eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ def kmeans(
"""This function runs k-means on given data and initial set of centroids. """This function runs k-means on given data and initial set of centroids.
maxiter: maximum number of iterations to run.(default=500) maxiter: maximum number of iterations to run.(default=500)
record_heterogeneity: (optional) a list, to store the history of heterogeneity record_heterogeneity: (optional) a list, to store the history of heterogeneity
as function of iterations as function of iterations.
if None, do not store the history. if None, do not store the history.
verbose: if True, print how many data points changed their cluster labels in verbose: if True, print how many data points changed their cluster labels in
each iteration""" each iteration"""