Code Monkey home page Code Monkey logo

Comments (4)

newforrestgump001 avatar newforrestgump001 commented on July 28, 2024 1

@arrufat You are very nice and professional. Thank you guy!

from dnn.

arrufat avatar arrufat commented on July 28, 2024

I am assuming you are training with loss_multiclass_log, right? That loss function uses a softmax, which means, the sum of the three possible outputs has to add to 1 always. So, it can output something like 0.33 for each class when it's not sure, however, if it's slightly more sure that it's one class, it might get overconfident on that class.

For that case, I like to train classifiers with the loss_multibinary_log. Instead of a softmax, it uses a sigmoid for each output independently, so any combination can be possible, even outputting everything to 0 and everything to 1 (that's why it's sometimes called multi label).

You can check an example on how to use it in the tests.

from dnn.

newforrestgump001 avatar newforrestgump001 commented on July 28, 2024

It is very helpful, and thanks a lot! BTW, Are you familiar with Anomaly Detection for defect inspection which is unpredictable, it may be everything you can imagine.

from dnn.

arrufat avatar arrufat commented on July 28, 2024

I am familiar with it, but just theoretically, I never had the chance to play with it myself. I know dlib has tools for this: http://dlib.net/ml.html#kcentroid

from dnn.

Related Issues (5)

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.