Skip to content

Commit c7b0c96

Browse files
committed
ver 0.15.11
1 parent 9ea6284 commit c7b0c96

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

npy/tools/tsne.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ def tsne_multirank(X, **kwargs):
2323
return Y
2424

2525

26-
def draw_tsne(X, n=4): # [C, N, D]
26+
def draw_tsne(X, n=4, **kwargs): # [C, N, D]
2727
emb = tsne_multirank(X, n_jobs=n)
2828
C = len(emb)
2929

3030
for c in range(C):
3131
print(c, len(emb[c]))
32-
plt.scatter(*emb[c].T, s=10)
32+
33+
_kwargs = {k: v[c] if isinstance(v, list) else v for k, v in kwargs.items()}
34+
plt.scatter(*emb[c].T, s=10, **_kwargs)
3335

3436

3537
def test():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(name='nuclear-python',
1212

13-
version='0.15.10',
13+
version='0.15.11',
1414

1515
url='https://github.com/nuclearboy95/nuclear-python',
1616

0 commit comments

Comments
 (0)