From 1abc47f5bf65ee3451a907ecfc9db84c0471ef93 Mon Sep 17 00:00:00 2001 From: martinroyer <16647869+martinroyer@users.noreply.github.com> Date: Tue, 16 Jun 2020 22:36:31 +0200 Subject: Update src/python/gudhi/representations/vector_methods.py --- src/python/gudhi/representations/vector_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python/gudhi/representations') diff --git a/src/python/gudhi/representations/vector_methods.py b/src/python/gudhi/representations/vector_methods.py index a576267c..566c24a3 100644 --- a/src/python/gudhi/representations/vector_methods.py +++ b/src/python/gudhi/representations/vector_methods.py @@ -675,7 +675,7 @@ class Atol(BaseEstimator, TransformerMixin): if self.quantiser.n_clusters == 1: dist_centers = pairwise.pairwise_distances(measures_concat) np.fill_diagonal(dist_centers, 0) - self.inertias = np.max(dist_centers)/2 + self.inertias = np.array([np.max(dist_centers)/2]) else: dist_centers = pairwise.pairwise_distances(self.centers) np.fill_diagonal(dist_centers, np.inf) -- cgit v1.2.3