Giter VIP home page Giter VIP logo

Comments (5)

richelbilderbeek avatar richelbilderbeek commented on July 27, 2024

Marked test with

skip("Cannot do ML estimation on BD trees, Issue #4, #4")

from mbd.

Giappo avatar Giappo commented on July 27, 2024

Please give a look inside mbd_loglik on the error triggered by condition2.
I suppose you get the error because you are using q=0 which is not allowed by the "safety_threshold". In general q==0 could create problems. However if you want to test under BD conditions, any value of q should work, as long as nu==0 (if the environmental change never triggers, the probability of multiple speciation is not influent).

from mbd.

richelbilderbeek avatar richelbilderbeek commented on July 27, 2024

Thanks! I'm wondering if some elegant rewrite could allow for q == 0. Combining the code with the mathematical derivation may help me succeed 👍

from mbd.

Giappo avatar Giappo commented on July 27, 2024

i think you can add an if statement like if (nu == 0) then (whatever with q)

from mbd.

richelbilderbeek avatar richelbilderbeek commented on July 27, 2024

Note to self pmb_loglik could handle every combination of q == 0 and nu == 0. This was disabled by an if-statement, but dropping that restriction just worked. For mbd_loglik this restriction cannot be dropped, due to log(pc) being NaN, where pc is created by calc_cond_prob.

from mbd.

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.