Giter Site home page Giter Site logo

processx error with ulam() about rethinking HOT 5 OPEN

jswesner avatar jswesner commented on June 28, 2024
processx error with ulam()

from rethinking.

Comments (5)

rmcelreath avatar rmcelreath commented on June 28, 2024 2

The problem is not my package, but that cmdstanr doesn't have permission to write to the directory. So it couldn't write the compiled model to disk. Seems like other people have had this problem and there is an option in cmdstanr to change the path? This is what I found by searching a bit: https://discourse.mc-stan.org/t/permissions-error-running-brms-on-windows-with-cmdstanr-backend/28429

from rethinking.

rmcelreath avatar rmcelreath commented on June 28, 2024 1

Sorry I can't be of more help. But yes, if you can get cmdstanr to work on, then ulam() should work. ulam() just builds Stan code and passes it to cmdstanr for the hard part.

from rethinking.

jswesner avatar jswesner commented on June 28, 2024

Thank you. I tried changing the path as suggested there with no luck. But since the issue is in cmdstanr and permissions, I'll see if I can resolve it within cmdstanr first.

from rethinking.

torkar avatar torkar commented on June 28, 2024

Remember that you need to compile cmdstan etc. again with a new path.

from rethinking.

jswesner avatar jswesner commented on June 28, 2024

I've found a workaround by using rstan as the backend instead of cmdstan with set_ulam_cmdstan(F). In case it was confusing to anyone else, I first tried to use rstan within the ulam() function: ulam(model...., cmdstan = F). But this did not work. After reading the help closer, I needed to use set_ulam_cmdstan(F) first outside of the ulam() model. Then running the ulam() model worked fine.

from rethinking.

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.