We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f0b01 commit 4313752Copy full SHA for 4313752
src/tdamapper/cover.py
@@ -467,6 +467,20 @@ def __init__(
467
)
468
469
def apply(self, X):
470
+ """
471
+ Covers the dataset using landmarks.
472
+
473
+ This function yields all the hypercubes intersecting the dataset.
474
475
+ This function returns a generator that yields each element of the
476
+ open cover as a list of ids. The ids are the indices of the points
477
+ in the original dataset.
478
479
+ :param X: A dataset of n points.
480
+ :type X: array-like of shape (n, m) or list-like of length n
481
+ :return: A generator of lists of ids.
482
+ :rtype: generator of lists of ints
483
484
super().fit(X)
485
lmrks_to_cover = super().landmarks(X)
486
while lmrks_to_cover:
0 commit comments