summaryrefslogtreecommitdiff
path: root/src/python/gudhi/clustering
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-05-25 23:20:17 +0200
committerMarc Glisse <marc.glisse@inria.fr>2020-05-25 23:20:17 +0200
commitcd623dcce7612723acca7f1a6f0b3ca4c87a4fb9 (patch)
treee1faeff5b39f0344327aa5221ccd88711f789eba /src/python/gudhi/clustering
parent2fb0d594060958804239fcdad5336832ea5133d0 (diff)
doc
Diffstat (limited to 'src/python/gudhi/clustering')
-rw-r--r--src/python/gudhi/clustering/tomato.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/python/gudhi/clustering/tomato.py b/src/python/gudhi/clustering/tomato.py
index e3eaa300..a3e304dc 100644
--- a/src/python/gudhi/clustering/tomato.py
+++ b/src/python/gudhi/clustering/tomato.py
@@ -9,11 +9,9 @@ from ._tomato import *
class Tomato:
"""
- Clustering
-
This clustering algorithm needs a neighborhood graph on the points, and an estimation of the density at each point.
A few possible graph constructions and density estimators are provided for convenience, but it is perfectly natural
- to provide your own. In particular, we do not provide anything specific to cluster pixels on images yet.
+ to provide your own.
Attributes
----------
@@ -92,10 +90,9 @@ class Tomato:
raise ValueError("Cannot specify both a merge threshold and a number of clusters")
def fit(self, X, y=None, weights=None):
- # FIXME: Iterable -> Sequence?
"""
Args:
- X ((n,d)-array of float|(n,n)-array of float|Iterable[Iterable[int]]): coordinates of the points, or distance matrix (full, not just a triangle) if metric is "precomputed", or list of neighbors for each point (points are represented by their index, starting from 0) if graph_type is "manual".
+ X ((n,d)-array of float|(n,n)-array of float|Sequence[Iterable[int]]): coordinates of the points, or distance matrix (full, not just a triangle) if metric is "precomputed", or list of neighbors for each point (points are represented by their index, starting from 0) if graph_type is "manual".
weights (ndarray of shape (n_samples)): if density_type is 'manual', a density estimate at each point
"""
# TODO: First detect if this is a new call with the same data (only threshold changed?)