@@ -226,7 +226,8 @@ def mode(arr):
226226
227227# The `KNNCover` algorithm uses k-nearest neighbors to define the cover. The cover is created by
228228# choosing a set of points in the dataset and then connecting each point to its k-nearest
229- # neighbors.
229+ # neighbors. For this reason, each set in the cover has cardinality equal to the number of
230+ # neighbors specified.
230231
231232# ### Parameters
232233# The key parameter in the `KNNCover` is the `neighbors`, which determines how many nearest
@@ -284,6 +285,25 @@ def mode(arr):
284285
285286# ## Conclusions
286287
288+ # In this notebook, we explored three different cover algorithms: `CubicalCover`, `BallCover`, and
289+ # `KNNCover`. Each algorithm has its own strengths and weaknesses, and the choice of cover can
290+ # significantly influence the resulting Mapper graph. Here is a summary of the key differences
291+ # between the three cover algorithms:
292+
293+ # +------------------------+------------------+-------------------------------------+-------------------------------------+
294+ # | Cover Algorithm | Parameters | Advantages | Disadvantages |
295+ # +========================+==================+=====================================+=====================================+
296+ # | CubicalCover | - `n_intervals` | - Widely used and well-supported | - Sensitive to parameters |
297+ # | | - `overlap_frac` | - Easy to interpret | - Only supports Euclidean spaces |
298+ # | | - `algorithm` | | |
299+ # +------------------------+------------------+-------------------------------------+-------------------------------------+
300+ # | BallCover | - `radius` | - Works with any metric space | - Struggles with varying densities |
301+ # | | - `metric` | - Can capture isolated clusters | - Radius tuning can be difficult |
302+ # +------------------------+------------------+-------------------------------------+-------------------------------------+
303+ # | KNNCover | - `neighbors` | - Works with any metric space | - Struggles with isolated clusters |
304+ # | | - `metric` | - Adapts to local densities | - Risk of over-connecting nodes |
305+ # +------------------------+------------------+-------------------------------------+-------------------------------------+
306+
287307# As a final remark, in the example dataset that we used, despite a significative difference in the
288308# structure of the Mapper graph, the relationship between the different parts of the data are still
289309# preserved. This means that even though the cover algorithms create different structures, they
0 commit comments