Code in Chapter 20 Clustering has redundant line #57
Author: danli349Created Dec 14, 2022Updated Jan 9, 2023
Hello,
The code in Chapter 20 Clustering has redundant line 57 https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/clustering.py
self.means = cluster_means(self.k, inputs, assignments)This line is repeated with line 47 and can be deleted. Thanks
Source: joelgrus/data-science-from-scratch