Commit 0e57689
committed
The parameter init="pca" cannot be used with metric="precomputed".
ValueError: The parameter init="pca" cannot be used with metric="precomputed".
Changed in version 1.2: The default value changed to "pca".
model = TSNE(n_components=2, random_state=0, metric='precomputed',
perplexity=min(len(dist_matrix) - 1, 30), **kwargs)
add back what was the default param initially: init='random'
See also scikit-learn/scikit-learn#180181 parent 8d855d6 commit 0e57689
3 files changed
+284
-671
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments