We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc4692 commit de66cfcCopy full SHA for de66cfc
1 file changed
machine_learning/tsne.py
@@ -5,7 +5,7 @@
5
t-SNE is a nonlinear dimensionality reduction algorithm for visualizing
6
high-dimensional data in a low-dimensional space (2D or 3D).
7
8
-It computes pairwise similarities in both spaces and minimizes the
+It computes pairwise similarities in both spaces and minimizes the
9
Kullback-Leibler divergence using gradient descent.
10
11
References:
@@ -39,9 +39,7 @@ def collect_dataset() -> Tuple[ndarray, ndarray]:
39
return np.array(data.data), np.array(data.target)
40
41
42
-def compute_pairwise_affinities(
43
- data_x: ndarray, sigma: float = 1.0
44
-) -> ndarray:
+def compute_pairwise_affinities(data_x: ndarray, sigma: float = 1.0) -> ndarray:
45
"""
46
Compute high-dimensional affinities (P matrix) using Gaussian kernel.
47
0 commit comments