alinlab / M2m

Code for the paper "M2m: Imbalanced Classification via Major-to-minor Translation" (CVPR 2020)

Home Page:http://arxiv.org/abs/2004.00431

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could you tell me how you use T-SNE? Thank you!

sunhappy6900 opened this issue · comments

Could you tell me how you use T-SNE? Thank you!

Hi, T-SNE plots (in Figure 4) are obtained as follow:

  1. Training the network with the desired method under the target imbalanced ratio, e.g., M2m with \rho=100

  2. Then, randomly select N training samples per class which will be plotted using T-SNE. (E.g., N=50 in the paper)

  3. Obtaining the "penultimate features", i.e., before the linear classifier, of the selected samples using the trained network

  4. The, plot the obtained features using any T-SNE code, e.g., Multicore-TSNE (https://github.com/DmitryUlyanov/Multicore-TSNE)

Best,
Jaehyung