diff --git a/Python3Code/Chapter5/Clustering.py b/Python3Code/Chapter5/Clustering.py index 71284a65..87b73cba 100755 --- a/Python3Code/Chapter5/Clustering.py +++ b/Python3Code/Chapter5/Clustering.py @@ -145,7 +145,7 @@ def compute_distance_matrix_instances(self, dataset, distance_metric): DM = InstanceDistanceMetrics() # Define the ranges of the columns if we use the gower distance. - ranges = [] + self.ranges = [] if distance_metric == self.gower: for col in dataset.columns: self.ranges.append(dataset[col].max() - dataset[col].min())