From a1e8821384c58f7d843a3271f909c31c26649032 Mon Sep 17 00:00:00 2001 From: Manu Date: Wed, 23 Feb 2022 19:27:36 +0100 Subject: Revert "a test for gudhi.representations.Entropy has been added" This reverts commit 758111506dfb99cdc59981395386926e178d447c. --- src/python/gudhi/representations/vector_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python/gudhi/representations/vector_methods.py') diff --git a/src/python/gudhi/representations/vector_methods.py b/src/python/gudhi/representations/vector_methods.py index ef1329d0..57ca5999 100644 --- a/src/python/gudhi/representations/vector_methods.py +++ b/src/python/gudhi/representations/vector_methods.py @@ -532,7 +532,7 @@ class Entropy(BaseEstimator, TransformerMixin): for k in range(min_idx, max_idx): ent[k] += (-1) * p[j] * np.log(p[j]) if self.normalized: - ent = ent / (np.linalg.norm(ent, ord=1)) + ent = ent / np.linalg.norm(ent, ord=1) Xfit.append(np.reshape(ent,[1,-1])) Xfit = np.concatenate(Xfit, axis=0) -- cgit v1.2.3