Closed zhaixzh closed 4 years ago
Where exactly in test.ipynb do you get this error? The first time tsne is run? Please copy paste the terminal output.
# Running t-SNE on the full MNIST in the default way (this uses perplexity=30) %time Z = fast_tsne(X50, seed=42) plt.figure(figsize=(5,5)) plt.scatter(Z[:,0], Z[:,1], c=col[y], s=.1) plt.tight_layout()
When I test this step,I encounter this error. I use this test data and anthoer data,but after fast_tsne,the 'Z' is the same,should I add some parameters. Thank you .
Please post the terminal output here. Open the terminal window where you started the Python notebook and copy-paste the FIt-SNE output.
`--------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~/.conda/envs/vev1/lib/python3.7/site-packages/matplotlib/axes/_axes.py in _parse_scatter_color_args(c, edgecolors, kwargs, xshape, yshape, get_next_color_func) 4290 valid_shape = False -> 4291 raise ValueError 4292 except ValueError:
ValueError:
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
No, sorry, that's not what I meant. I need to see the FIt-SNE output. It should look like this:
=============== t-SNE v1.1.0 ===============
fast_tsne data_path: data.dat
fast_tsne result_path: result.dat
fast_tsne nthreads: 8
Read the following parameters:
...
and quite a lot afterwards.
What you copied are Python errors when running plt.scatter
. What I need, is Python output when running fast_tsne
.
I have solved the problem. I changed the terminal, then normal running, it should be configuration problem. Thank you .
When I running the test.ipynb,I encounter an error
ValueError: 'c' argument has 70000 elements, which is not acceptable for use with 'x' with size 25000, 'y' with size 25000.
Then I run another data,I encounter the same error, no matter how much cell number from the initial data,after fast_tsne,the Z.shape is (25000,50)