-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example in documentation throws exception and an additional question #6
Comments
@rsmith31415, Thanks for bringing that error to my attention. Apparently, it is being caused by one of the other packages that Mamba depends on. I just uploaded an updated version of Mamba (0.3.6) that should fix the problem. Let me know if the latest version does not work for you. You're right, the two occurrences of In practice, you really only need to name the external Model object. The internal one does not need to be referenced directly if you use the model = Model(
y = Stochastic(1,
@modelexpr(mu, s2,
IsoNormal(mu, sqrt(s2))
),
false
), P.S. |
Hi Brian, Yes, 0.3.6 indeed fixes the issue, I also had started to look which package ‘masked’ the convert() if that is the proper terminology. Regards,
|
Thanks for the confirmation Rob. I ended up downgrading packages one-at-a-time until I found the culprit. Then, I saw that there is a thread over at the Color package about it at JuliaAttic/Color.jl#68. There seems to be some questions about the root cause of the masking of convert, but regardless it affects conversion of integers to floats, which breaks core julia functionality and is a pretty serious problem IMO. |
Thank you Brian for your explanation on As Rob said, the error has been solved. Thanks! |
I learned a bit of Julia yesterday and I wanted to try Mamba, so please forgive me if there is a very elementary error on my part.
I'm running Julia 0.3.1 and Mamba from the master branch (although I don't think there is other way to install it since it is not recognized by
Pkg.add("Mamba")
). The model I was trying to run is Rats: A Normal Hierarchical Model. However, I get this error in the last part of the code:I tested this in a fresh Ubuntu 14.04 installation. The same happens in this example.
The additional question is this: When you write something like this:
Does
model[:mu]
refer to a node contained in the dictionary defined asmodel = Model(...
? I'm asking this because that part seems to have a recursive-like quality.Thanks!
The text was updated successfully, but these errors were encountered: