abhimanyu08 / blog Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi Abhimanyu,
thanks for the great explanation of label smoothing. I found a little typo. At the end of section 1 you write:
Now suppose our model didn't output
${p_{1}}$ but${p_{2}=[0.01,0.79,0.15,0.5]}$ . In this case it is less sure that the image has label 2. Loss will be${L(y^{l},p_{2})= -(0.05\log0.01+0.85\log0.79+0.05\log0.15+0.05\log0.5)=0.56}$ which is less than the loss with${p_{1}}$ ! This goes on to show that smooth labels want the model to be confident about it's predictions but not over-confident.
The problem with p_2
is that the entries don't sum to 1. The last probability should likely be 0.05
instead of 0.5
. In this case the resulting loss is 0.68
. This in turn is slightly more than the loss for p_1
(0.61
) which matches my expectation.
Thanks again for a great tutorial!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.