Coder Social home page Coder Social logo

loss computation about porpoise HOT 4 CLOSED

mahmoodlab avatar mahmoodlab commented on July 17, 2024
loss computation

from porpoise.

Comments (4)

Richarizardd avatar Richarizardd commented on July 17, 2024

What do you mean by reasonable? I think you need to distribute (1-alpha) over the other terms in Line 2.

from porpoise.

hachikong avatar hachikong commented on July 17, 2024

Hi @Richarizardd , thanks a lot for your kind reply!

loss 
= (1 - alpha) * neg_l + alpha * uncensored_loss
= (1 - alpha) * (censored_loss + uncensored_loss) + alpha * uncensored_loss
= (1 - alpha) * censored_loss + (1 - alpha) * uncensored_loss + alpha * uncensored_loss
= (1 - alpha) * censored_loss + (1 - alpha + alpha) * uncensored_loss
= (1 - alpha) * censored_loss + uncensored_loss

So, it seems the alpha is not applied to the uncensored_loss. I'm not sure if this is reasonable, as in the paper, the alpha should be applied to uncensored_loss.

from porpoise.

Richarizardd avatar Richarizardd commented on July 17, 2024

Hi @hachikong - Our implementation follows that of Zadeh and Schmid, which we believe is reasonable. You can see the negative log-likelihood term described in Equation 6, with the 2nd loss term (Equation 14) described at the contribution of uncensored instances in the negative likelihood.

from porpoise.

hachikong avatar hachikong commented on July 17, 2024

Hi @Richarizardd , thanks a lot for your kind clarification! Yeah, it seems your implementation is different from theirs'. In your implementation, the network output is the hazard function, while their network output is the survival function. Both losses are the negative log-likelihood. I will read the paper more carefully. Thank you!

from porpoise.

Related Issues (14)

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.