I have tried other distance metrics like chebychev distance or Manhatten distance and so on, which are all implemented in tsne in Matlab. Some of them achieve the same good performance as Euclidean distance metric. So I have some questions about why tsne always use the Euclidean distance to calculate the distance. Is there any advantages for this distance metric compared with other distance metrics? I hope someone could help me solve my problem. Thanks in advance!
Why tsne method use Euclidean distance to compute the similarities in high dimensional data?
2.2k Views Asked by CuishleChen At
2
There are 2 best solutions below
0
liborm
On
Not sure which implementation you are talking about, but in general tSNE works on a distance matrix, and it's up to you to calculate this distance matrix according to what actually makes sense for your data.
Euclidean and Jaccard distances generally work well, I got some nice results also by using TSVD to reduce the data to ~50 dimensions and then doing tSNE on Euclidean distance matrix.
Related Questions in MACHINE-LEARNING
- Trained ML model with the camera module is not giving predictions
- Keras similarity calculation. Enumerating distance between two tensors, which indicates as lists
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- How to predict input parameters from target parameter in a machine learning model?
- The training accuracy and the validation accuracy curves are almost parallel to each other. Is the model overfitting?
- ImportError: cannot import name 'HuggingFaceInferenceAPI' from 'llama_index.llms' (unknown location)
- Which library can replace causal_conv1d in machine learning programming?
- Fine-Tuning Large Language Model on PDFs containing Text and Images
- Sketch Guided Text to Image Generation
- My ICNN doesn't seem to work for any n_hidden
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- How can I resolve this error and work smoothly in deep learning?
- ModuleNotFoundError: No module named 'llama_index.node_parser'
- Difference between model.evaluate and metrics.accuracy_score
- Give Bert an input and ask him to predict. In this input, can Bert apply the first word prediction result to all subsequent predictions?
Related Questions in DATA-VISUALIZATION
- R: How to visualize interactive time series via boxplots?
- hvplot not displaying dynamically
- How to chart two metrics from aggregated table in Looker?
- How do I make a intensity plot with coordinates on map in python?
- How to coax `missingno` nullity plot to show only selected columns
- Interactive bar plot with multiple dataframe column selection
- Bokeh checkboxes with multiple dataframe columns
- Having trouble adding a tooltip to my D3 bar chart?
- Hierarchical plot with bubbles in r
- Correlation plots and bar plots to visualize four datasets in R
- Plotly express shows Invalid property for latitude for choropleth map plot for python
- Matplotlib 3D scatter plot animation is not moving
- How to plot Two Sample t.test() means, medians, and CI in R?
- Violin plot in R, each column a violin, split by gender
- Why is my line graph falling to 0 after each month and why is there a sudden spike in december? (this is in Tableau)
Related Questions in EUCLIDEAN-DISTANCE
- Euclidean Distance between two vectors in two columns in spark data frme
- How to exclude double values in sklearn.metrics.pairwise.euclidean_distances results
- Iterate through ID-matched Euclidean distances using dist() in R
- Generate P random N-dimensional points from list of ALL possible pairwise distances
- Fast way to find closest line segment for a large set of planar points [Python]
- How to compute the Euclidean distance between two complex matrix by vectorization?
- Move point B to be between A and C while keeping the distance
- How to produce the indexes from pdist2 function in Octave?
- Pairing Test and Control Plots by Euclidean Distance of a Vector in R
- Finding a point close enough to a point
- finding distance between two object of an image with euclidean distance and opencv
- Computationally efficient way of calculating euclidean distance between points and nearest line on a landscape in R sf
- Minimum and Mean Euclidean distance between two tensors of different shape
- how to calculate a masked distance transform with ndimage.distance_transform_edt?
- Travelling Salesman Problem - Best path to go through all points
Related Questions in DIMENSION-REDUCTION
- goodness of fit of umap
- numpy convert N-D array to a list of (N-1)D array without loop
- I want to input 3d array(custom data) to sklearn-PCA function
- The lstm autoencoder does not use the full dimensions of the latent space for dimension reduction
- Why is it ok to remove variables with low variance from a dataset
- Global operator along a single dimension in Keras?
- Optimal perplexity for t-SNE with using larger datasets (>300k data points)
- How to compute/extract the residual variance from an Isomap [vegan] model in R
- Mapping a numerical function with two inputs onto one with one input
- Looking for a function in R to sum rows and cols for matrix reduction
- Why tsne method use Euclidean distance to compute the similarities in high dimensional data?
- How to use a function that changes during training with keras
- Confirmatory Factor Analysis in Python
- Dimensional reduction through subspace clustering
- The Curse of high Dimension And Distance
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
TSNE always uses the Euclidean distance function to measure distances because it is the default parameter set inside the method definition. If you wish to change the distance function being used for your particular problem, the 'metric' parameter is what you need to change inside your method call.
Here is a link that lists the different distance functions you can use as a parameter instead of Euclidean.
Hope this helps!