summaryrefslogtreecommitdiff
path: root/src/python/gudhi/representations/vector_methods.py
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-01-11 11:29:20 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-01-11 11:29:20 +0100
commit0afc650917ddf9fc4cf95fd86e0b6408f64a465d (patch)
tree5bb4c54cce34312cae098f14104b3997f71feeb3 /src/python/gudhi/representations/vector_methods.py
parenta506e8cee390b46076c21955f5b725193c628bc0 (diff)
Remove sphinx doc test for atol as points order can be inverted and add it in a UT but sorted
Diffstat (limited to 'src/python/gudhi/representations/vector_methods.py')
-rw-r--r--src/python/gudhi/representations/vector_methods.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/python/gudhi/representations/vector_methods.py b/src/python/gudhi/representations/vector_methods.py
index cdcb1fde..d4449e7d 100644
--- a/src/python/gudhi/representations/vector_methods.py
+++ b/src/python/gudhi/representations/vector_methods.py
@@ -606,16 +606,16 @@ class Atol(BaseEstimator, TransformerMixin):
>>> c = np.array([[3, 2, -1], [1, 2, -1]])
>>> atol_vectoriser = Atol(quantiser=KMeans(n_clusters=2, random_state=202006))
>>> atol_vectoriser.fit(X=[a, b, c]).centers
- array([[ 2. , 0.66666667, 3.33333333],
- [ 2.6 , 2.8 , -0.4 ]])
+ >>> # array([[ 2. , 0.66666667, 3.33333333],
+ >>> # [ 2.6 , 2.8 , -0.4 ]])
>>> atol_vectoriser(a)
- array([1.18168665, 0.42375966])
+ >>> # array([1.18168665, 0.42375966])
>>> atol_vectoriser(c)
- array([0.02062512, 1.25157463])
+ >>> # array([0.02062512, 1.25157463])
>>> atol_vectoriser.transform(X=[a, b, c])
- array([[1.18168665, 0.42375966],
- [0.29861028, 1.06330156],
- [0.02062512, 1.25157463]])
+ >>> # array([[1.18168665, 0.42375966],
+ >>> # [0.29861028, 1.06330156],
+ >>> # [0.02062512, 1.25157463]])
"""
def __init__(self, quantiser, weighting_method="cloud", contrast="gaussian"):
"""