Created
January 6, 2021 03:28
-
-
Save MattLowrieDS/f6eabe67b8e6f2abae221774833c12ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def label_smoothing(y, factor=0.1): | |
y *= 1 - factor | |
y += factor / y.shape[1] | |
return y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment