- Operating System: Mac
- brms Version: 2.16.1
Since updating to brms 2.16.1, I’m having difficulty using
adapt_delta. Here’s an example:
library(brms) data(package = "rethinking", Howell1) # this runs, but the chains are a mess # because of the terrible prior used on sigma fit1 <- brm( data = Howell1, height ~ 1, prior = prior(uniform(0, 100), class = sigma), cores = 4, seed = 4 ) # this fails to run fit2 <- brm( data = Howell1, height ~ 1, prior = prior(uniform(0, 100), class = sigma), cores = 4, seed = 4, control = list(adapt_delta = 0.9) )
The second model,
fit2, returned the following:
Warning: It appears as if you have specified an upper bounded prior on a parameter that has no natural upper bound. If this is really what you want, please specify argument 'ub' of 'set_prior' appropriately. Warning occurred for prior sigma ~ uniform(0, 100) Compiling Stan program... sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `clang++ -E -nostdinc -x c++ -P -C -I /var/folders/hm/3s73t2vd2lz35rvqyfxdshy40000gn/T//RtmphqLf8P -I /Users/solomonkurz/Dropbox/ML coef() -o /var/folders/hm/3s73t2vd2lz35rvqyfxdshy40000gn/T//RtmphqLf8P/file125411c35eb70.stan /var/folders/hm/3s73t2vd2lz35rvqyfxdshy40000gn/T//RtmphqLf8P/file12541469010a9.stan >/dev/null 2>/dev/null' recompiling to avoid crashing R session Start sampling starting worker pid=78171 on localhost:11382 at 09:41:46.234 starting worker pid=78185 on localhost:11382 at 09:41:46.441 starting worker pid=78199 on localhost:11382 at 09:41:46.637 starting worker pid=78213 on localhost:11382 at 09:41:46.833 SAMPLING FOR MODEL '6ca711e8ed4dd648c40f21e5c8889091' NOW (CHAIN 1). Error in unserialize(socklist[[n]]) : error reading from connection SAMPLING FOR MODEL '6ca711e8ed4dd648c40f21e5c8889091' NOW (CHAIN 2).