Giter VIP home page Giter VIP logo

Comments (2)

wy1iu avatar wy1iu commented on May 26, 2024

The training accuracy in the training protext is not the true accuracy of the model. Because when you are training the network with A-Softmax (say with m=4), you are actually using a harder classification rule than the standard classification. The network will classify the sample correcly only if the sample are achieving a large margin criterion, but in fact, the sample can be also successfully classified in testing even if it does not fully satisfy the m=4 large margin criterion.

If you want to show the training accuracy, you might need to modify the computation of the training accuracy in the training protext file in order to make it comparable with the computation of the testing accuracy.

Overall, it is unlikely that A-Softmax loss will reduce the classification accuracy (if you train it successfully).

from sphereface.

 avatar commented on May 26, 2024

The training accuracy in the training protext is not the true accuracy of the model. Because when you are training the network with A-Softmax (say with m=4), you are actually using a harder classification rule than the standard classification. The network will classify the sample correcly only if the sample are achieving a large margin criterion, but in fact, the sample can be also successfully classified in testing even if it does not fully satisfy the m=4 large margin criterion.

If you want to show the training accuracy, you might need to modify the computation of the training accuracy in the training protext file in order to make it comparable with the computation of the testing accuracy.

Overall, it is unlikely that A-Softmax loss will reduce the classification accuracy (if you train it successfully).

Thank you for your reply!
I am still confused about how to set the values of MarginInnerProduct parameters(such as base and gamma) base on my data(such as number of categories and number of samples).

from sphereface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.