Joe Miller

Results 8 comments of Joe Miller

Oh haha, Chad already ran into this exact issue. I see. I'm not expert enough to mess around with Cassette.jl, but I appreciate how it's not possible without that, or...

Yeah, I ended up using `check_args`; I just double-checked and didn't need `rand`, but thanks for the caveat!

Hi! Your model is specified in a different style. You don't need to pass the data as an argument to the model; think of the argument as simply allowing your...

> ```julia > m = @model μ begin > x ~ Normal(0,1) > y ~ Normal(x,1) > z ~ Normal(y,1) > end > ``` Should this be `x ~ Normal(μ,1)`?...

Yeah, I like the KIS approach in general. We can go a little further with "obvious" extensions if they're unambiguous and consistent. Regarding calling models on non-arguments, here's another example...

> Intuitively, I think I'd want this to only include dependencies of β (so no p). It also feels wrong for the prior to include X. Are we happy with...

I was thinking this too recently and it's easier than I thought to define custom `show` for types: ```julia using Soss m = @model μ begin x ~ For(3) do...

From https://docs.julialang.org/en/v1/manual/types/#man-custom-pretty-printing It seems like that's supposed to be done with defining the extra `MIME` argument ```julia function Base.show(io::IO, ::MIME"text/plain", t::Type{Soss.JointDistribution{A0,A,B,M}}) where {A0,A,B,M} print(io, "Verbose goes here") end function show(io::IO,...