Giter VIP home page Giter VIP logo

Comments (6)

WardBrian avatar WardBrian commented on June 16, 2024

PyStan 2.0 was last updated ~4 years ago and hasn't been officially supported since May of 2021. Are you able to use cmdstanpy or pystan3 ?

from stan.

juliagorman avatar juliagorman commented on June 16, 2024

Unfortunately, the code I am running explicitly states you need to use pystan 2.0

from stan.

nhuurre avatar nhuurre commented on June 16, 2024

GCC failing due to no space left on device sounds like the code needlessly recompiles the model on every loop iteration.
The traceback suggests it happens on line 250 of ~/BHDMS/code/metric_HMDS.py:

hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

You could try and move that line to global scope (e.g. next to where HMDS_code is defined) so the model gets compiled only once and hmds_m can be reused.

from stan.

juliagorman avatar juliagorman commented on June 16, 2024

Sorry, move what line to glocal scope?

from stan.

nhuurre avatar nhuurre commented on June 16, 2024

The line with stan.StanModel(model_code=...), line 250 in file metric_HMDS.py

Alternatively change that line, i.e.

hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

to

global hmds_m
if hmds_m is None:
    hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

and add to the start of the same file:

hmds_m = None

from stan.

WardBrian avatar WardBrian commented on June 16, 2024

Further discussion of this is probably better on the Stan Forums

from stan.

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.