rsetienne / daisie Goto Github PK
View Code? Open in Web Editor NEWDAISIE
License: GNU General Public License v3.0
DAISIE
License: GNU General Public License v3.0
An Rplot.pdf file is created when tests are run. Find out what is causing it and change it so that a file is not stored.
Probably a problem in a plotting test.
Rates functions must be tested and functioning. Last functioning version is in f63027a.
Not correct as of now.
NAMESPACE should be created using roxygen2.
This requires adding :: before function calls from other package, see f63027a.
I will convert to a new namespace to prevent having to juggle exported functions manually, and because the current namespace breaks pedro-ontogeny
If ran:
set.seed(1)
DAISIE::DAISIE_sim(
time = 10,
M = 1000,
pars = c(1.0e+00, 4.0e-01, 1.5e+01, 1.0e-04, 2.0e-01),
replicates = 100,
divdepmodel = "IW"
)
on any branch develop
or above format IW fails due to btimes
being empty.
While working on #11, I noticed the following:
The cladogenesis calculation in get_clado_rate
is different than the one in loglik_CS_time
.
In the loglik_CS_time
rhs function, it is computed this way:
lacvec <- pmax(rep(0, lnn), lac0 * (1 - nn / (area * K0)))
while in get_clado_rate
it is computed like this:
clado_rate <- max(c( N * lac * island_area(timeval, Apars, island_ontogeny) * (1 - N / (island_area( timeval, Apars, island_ontogeny) * K)), 0), na.rm = T)
where island_area evaluates to area as in above.
The question is: should the nn
vector be included in the calculation (missing in the first example)? I added this vector in 9c72df4, which makes the null-ontogeny and ontogeny likelihoods (last test of DAISIE_test.R
) be different, implying the change is incorrect. Is the N *
term in get_clado_rate
incorrect, then?
Asking @rsetienne for help, please!
After changes of today, all branches must PR from develop. PR #9 broke pedro-ontogeny
.
After fixed, will PR for others.
I see in e.g. Josh's Travis build that Travis produces 10k lines of output. Due to this, one cannot read the reason why a build fails.
I suggest to follow the UNIX Golden Rule of Silence: if everything works, no output should be produced. In our contexts: tests should not produce output (unless you test them to have output, which is very rare).
I will try to assign @Neves-P to do this, he's perfectly able to let another team member fix this, as this is a rather easy Issue 👍
The Travis CI build log states:
Undocumented code objects:
‘DAISIE_loglik_all_choosepar3’ ‘DAISIE_ML3’ ‘order_pars1’
‘translate_island_ontogeny’
Apparently, there is some undocumented code that breaks the build.
I can only suggest the authors of those functions to document these.
Related to (and to prevent) #21
Depends on:
Rules of how to contribute should be clearly laid out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.