Git Product home page Git Product logo

Comments (2)

davek44 avatar davek44 commented on August 15, 2024

Hey Dadi, I'm a bit too tied up right now to dig in here myself. In Basset, the loss is defined here: https://github.com/davek44/Basset/blob/master/src/convnet.lua#L251. The binary cross entropy loss is described here: https://github.com/torch/nn/blob/master/doc/criterion.md#nn.BCECriterion. I'd open a torch session, and try some things to test your assumptions and get a feel for how these work.

from basset.

dg520 avatar dg520 commented on August 15, 2024

Hi David,

Sorry my assumption was totally wrong. By generating a dummy set with random targets labels either 0 or 1 and normally distributed probability between 0.0001 and 0.99, the defined BCE loss function loss(o, t) = - 1/n sum_i (t[i] * log(o[i]) + (1 - t[i]) * log(1 - o[i])) can exceed my expectation. It makes sense now.

BTW, seems the nucleotide order in motif heat map is reversed. I've compared the weight matrix and the heat map matrix. both agree to the reverse of current setting. I've reported it in a separate thread.

Apologize for disturbing you a lot.

Best,
Dadi

from basset.

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.