Skip to content

Commit 0c9e853

Browse files
committed
Flattened hierarchies. Added tests
1 parent f6a3dbe commit 0c9e853

38 files changed

Lines changed: 97 additions & 55 deletions

docs/source/apiref.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ tdamapper.clustering
3333
:undoc-members:
3434
:show-inheritance:
3535

36-
tdamapper.utils.metrics
36+
tdamapper.metrics
3737
-----------------------
3838

39-
.. automodule:: tdamapper.utils.metrics
39+
.. automodule:: tdamapper.metrics
4040
:members:
4141
:undoc-members:
4242
:show-inheritance:
4343

44-
tdamapper.utils.vptree
44+
tdamapper.vptree
4545
-----------------------
4646

47-
.. automodule:: tdamapper.utils.vptree
47+
.. automodule:: tdamapper.vptree
4848
:members:
4949
:undoc-members:
5050
:show-inheritance:

src/tdamapper/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from numpy.typing import NDArray
4040

4141
from tdamapper._common import EstimatorMixin, ParamsMixin, clone, deprecated
42-
from tdamapper.utils.unionfind import UnionFind
42+
from tdamapper.unionfind import UnionFind
4343

4444
ATTR_IDS = "ids"
4545

src/tdamapper/cover.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ class BallCover(ParamsMixin):
9090
Defaults to 1.0.
9191
:type radius: float
9292
:param metric: The metric used to define the distance between points.
93-
Accepts any value compatible with `tdamapper.utils.metrics.get_metric`.
93+
Accepts any value compatible with `tdamapper.metrics.get_metric`.
9494
Defaults to 'euclidean'.
9595
:type metric: str or callable
9696
:param metric_params: Additional parameters for the metric function, to be
97-
passed to `tdamapper.utils.metrics.get_metric`. Defaults to None.
97+
passed to `tdamapper.metrics.get_metric`. Defaults to None.
9898
:type metric_params: dict, optional
9999
:param kind: Specifies whether to use a flat or a hierarchical vantage
100100
point tree. Acceptable values are 'flat' or 'hierarchical'. Defaults
@@ -187,11 +187,11 @@ class KNNCover(ParamsMixin):
187187
Defaults to 1.
188188
:type neighbors: int
189189
:param metric: The metric used to define the distance between points.
190-
Accepts any value compatible with `tdamapper.utils.metrics.get_metric`.
190+
Accepts any value compatible with `tdamapper.metrics.get_metric`.
191191
Defaults to 'euclidean'.
192192
:type metric: str or callable
193193
:param metric_params: Additional parameters for the metric function, to be
194-
passed to `tdamapper.utils.metrics.get_metric`. Defaults to None.
194+
passed to `tdamapper.metrics.get_metric`. Defaults to None.
195195
:type metric_params: dict, optional
196196
:param kind: Specifies whether to use a flat or a hierarchical vantage
197197
point tree. Acceptable values are 'flat' or 'hierarchical'. Defaults
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import numpy as np
3232

33-
import tdamapper.utils._metrics as _metrics
33+
import tdamapper._metrics as _metrics
3434

3535
_EUCLIDEAN = "euclidean"
3636
_MANHATTAN = "manhattan"

src/tdamapper/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import numpy as np
88

99
from tdamapper._common import deprecated
10-
from tdamapper.plot_backends.plot_matplotlib import plot_matplotlib
11-
from tdamapper.plot_backends.plot_plotly import plot_plotly, plot_plotly_update
12-
from tdamapper.plot_backends.plot_pyvis import plot_pyvis
10+
from tdamapper.plot_matplotlib import plot_matplotlib
11+
from tdamapper.plot_plotly import plot_plotly, plot_plotly_update
12+
from tdamapper.plot_pyvis import plot_pyvis
1313

1414

1515
class MapperPlot:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)