You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to show how to use this package, we perform some analysis on the the well known dataset of hand written digits (more info [here](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_digits.html)), consisting of less than 2000 8x8 pictures represented as arrays of 64 elements.
43
-
44
-
```python
45
-
import numpy as np
46
-
47
-
from sklearn.datasets import load_digits
48
-
from sklearn.cluster import AgglomerativeClustering
49
-
from sklearn.decomposition importPCA
50
-
51
-
from tdamapper.core import*
52
-
from tdamapper.cover import*
53
-
from tdamapper.clustering import*
54
-
from tdamapper.plot import*
55
-
56
-
import matplotlib
57
-
58
-
digits = load_digits()
59
-
X, y = [np.array(x) for x in digits.data], digits.target
 you can find a worked out example that shows how to use this package.
43
+
We perform some analysis on the the well known dataset of , consisting of less than 2000 8x8 pictures represented as arrays of 64 elements.
78
44
79
45

80
46
81
47
It's also possible to obtain a new plot colored according to different values, while keeping the same computed geometry. For example, if we want to visualize how much dispersion we have on each cluster, we could plot colors according to the standard deviation
0 commit comments