This repository contains a PyTorch implementation of the Label Smoothing.
- PyTorch
- torchvision
- matplotlib
- scikit-learn
To produce th result, we use CIFAR-10 dataset for ResNet18.
# no label smoothing
python run.py
# use label smoothing
python run.py --do_lsr
# extract feature
python generate_feature.py
python generate_feature.py --do_lsr
#----------- plot tsne
python tsne_plot.py
python tsne_plot.py --do_lsr
Training result
TSNE Visualisation