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
Instead of failing with an uncaught exception like the following:
ValueError: perplexity must be less than n_samples
the t-SNE embedding should compare the number of samples in the input distance matrix to the perplexity and let the user know how to fix the error.
Another option would be to automatically use the minimum of the requested perplexity and given number of samples while printing a warning to the user. This approach would allow the embedding to run in most cases except when there are fewer than 2 samples.
The text was updated successfully, but these errors were encountered:
Instead of failing with an uncaught exception like the following:
the t-SNE embedding should compare the number of samples in the input distance matrix to the perplexity and let the user know how to fix the error.
Another option would be to automatically use the minimum of the requested perplexity and given number of samples while printing a warning to the user. This approach would allow the embedding to run in most cases except when there are fewer than 2 samples.
The text was updated successfully, but these errors were encountered: