Code Monkey home page Code Monkey logo

Comments (6)

VMatthijs avatar VMatthijs commented on July 29, 2024 1

This should be fixed now. Definitely was a bug.

from stanc3.

bob-carpenter avatar bob-carpenter commented on July 29, 2024

from stanc3.

seantalts avatar seantalts commented on July 29, 2024

Those error messages are coming from Stan on develop, I can try pulling again and see if they go away.

from stanc3.

seantalts avatar seantalts commented on July 29, 2024

Oh, I made a mistake when I first wrote the post and edited it in github and I see that you replied to the old post. Try
model { 1 ~ bernoulli(0.2) T[0.1, 1.1]; }

from stanc3.

bob-carpenter avatar bob-carpenter commented on July 29, 2024

from stanc3.

VMatthijs avatar VMatthijs commented on July 29, 2024

Right. The following does compile, on stanc2:

model { 1 ~ bernoulli(0.2) T[0, 1]; }

So the problem was merely the signature of the bounds.

I think stanc3 currently does check the existence of a cdf, but I don't think it checks the type of the cdf. I hadn't realised that the bounds can sometimes be integer and that that needs to be checked. Therefore, it was not throwing an error.

By the way, the following also compiles on stanc2, which shouldn't, so that's a bug:

model { 1 ~ bernoulli(0.2) T[0, 1.1]; }

from stanc3.

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.