MCPcopy Create free account
hub / github.com/tim-learn/SHOT / CrossEntropyLabelSmooth

Class CrossEntropyLabelSmooth

object/loss.py:54–87  ·  view source on GitHub ↗

Cross entropy loss with label smoothing regularizer. Reference: Szegedy et al. Rethinking the Inception Architecture for Computer Vision. CVPR 2016. Equation: y = (1 - epsilon) * y + epsilon / K. Args: num_classes (int): number of classes. epsilon (float): weight.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

train_sourceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…