-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error when running the example in the readme #64
Comments
The example works in the dev branch. |
Are you on
|
Yes, I'm using 1.2.0. |
Thanks @kskyten, I think this is due to a change in GeneralizedGenerated 0.2; I didn't have version upper bounds (oops). Works in |
Fixed in v0.8: julia> using Soss, Random
julia> m = @model X begin
β ~ Normal() |> iid(size(X,2))
y ~ For(eachrow(X)) do x
Normal(x' * β, 1)
end
end;
julia> Random.seed!(3);
julia> X = randn(6,2)
6×2 Array{Float64,2}:
1.19156 0.100793
-2.51973 -0.00197414
2.07481 1.00879
-0.97325 0.844223
-0.101607 1.15807
-1.54251 -0.475159
julia> rand(m(X=X))
(X = [1.1915557734285787 0.10079289135480324; -2.5197330871745263 -0.0019741367391015213; … ; -0.1016067940589428 1.158074626662026; -1.5425131978228126 -0.47515878362112707], β = [0.07187269298745927, -0.5128103336795292], y = [0.10079289135480324, -2.5197330871745263, 2.0748097755419757, 0.8442227439533416, 1.158074626662026, -0.47515878362112707]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the following with the current registry version of Soss and on the master branch:
gives me the following error:
The text was updated successfully, but these errors were encountered: