Skip to content

Commit

Permalink
Error confirmed. MCMC difference is not large enough (so OK)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 7, 2023
1 parent 86ee0ed commit cae6c88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions docker/Dockerfile.flexiblas
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ RUN dnf install R flexiblas-* -y
# Clonning tag v3.3.1 from the repo flexiblas
RUN dnf install R-flexiblas -y

RUN flexiblas default ATLAS

RUN echo 'options(repos=c(CRAN="https://cloud.r-project.org"))' >> ~/.Rprofile

RUN \
Rscript -e 'utils::install.packages(c("fmcmc", "MASS", "ape", "coda", "tinytest", "xml2"))'
Rscript -e 'utils::install.packages(c("fmcmc", "MASS", "ape", "coda", "tinytest", "xml2"));'

RUN Rscript -e 'utils::install.packages("lattice")'
RUN Rscript -e 'utils::install.packages("lattice");'

RUN Rscript -e 'utils::install.packages(c("knitr", "rmarkdown"))'
RUN Rscript -e 'utils::install.packages(c("knitr", "rmarkdown"));'

RUN Rscript -e 'utils::install.packages("AUC")'
RUN Rscript -e 'utils::install.packages("AUC");'

RUN dnf install R-devtools -y

Expand Down
6 changes: 3 additions & 3 deletions inst/tinytest/test-parameter-estimates-and-formulas.r
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
if (Sys.getenv("APHYLO_ATLAS_TEST") == "true") {
library(flexiblas)
idx <- load_backend("ATLAS")
idx <- flexiblas_load_backend("ATLAS")
flexiblas_switch(idx)
message("Using flexiblas with backend: ", flexiblas_backend())
message("Using flexiblas with backend: ", flexiblas_current_backend())
}

suppressMessages(library(coda))
Expand Down Expand Up @@ -119,7 +119,7 @@ suppressMessages(library(coda))
do.call(
fmcmc::MCMC, c(
list(
fun = fun,
fun = fun,
initial = aphylo:::APHYLO_PARAM_DEFAULT[-c(7:8)],
kernel = fmcmc::kernel_am(ub = .9999, lb = 0.001, freq = 1L)
),
Expand Down

0 comments on commit cae6c88

Please sign in to comment.