GithubHelp home page GithubHelp logo

Comments (6)

ChuanXu1 avatar ChuanXu1 commented on June 4, 2024

@chbeltz, thx a lot!! will check and let you know soon.

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on June 4, 2024

@chbeltz , can I ask why you set the scores of the opposite class to all 0. As I understand, the emulated score matrix can be simply stacked by column-binding the -decision_function vector with the decision_function vector.

from celltypist.

chbeltz avatar chbeltz commented on June 4, 2024

@ChuanXu1 Sure, it could. However I did not see any reason to believe that would be superior. In fact I did not see anything in the docs leading me to lean either way, seeing as the relative difference in certainty between predictions would remain the same.

Is there anything making your version preferable in your opinion?

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on June 4, 2024

@chbeltz, in a binary case, even with the 'ovr' mode, the classifier outputs the intercept and coefficients for the second class (.classes_[1]). For the first class, the decision score is not output, but it is actually the negative form of the score in the second class. Activated by the sigmoid further, the probability of the first class will be 1 - probability_of_2nd_class. If you turn the opposite to 0, you will get all probabilities of 0.5. Wdyt?

from celltypist.

ChuanXu1 avatar ChuanXu1 commented on June 4, 2024

@chbeltz, I did not adopt your approach finally, but used the negative scores to make the sum of probabilities in binary cases to 1. Let me know how you think of it? Anyhow, thank you very much for raising the binary cases. cfb3b91

from celltypist.

chbeltz avatar chbeltz commented on June 4, 2024

Ah, makes sense. Did not think of that. Thanks for the fix.

from celltypist.

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.