Philipp Gabler
Philipp Gabler
There have already been [a couple of Greek issues](https://github.com/cormullion/juliamono/search?q=greek+is%3Aissue&type=issues), but there's two more small things I want to bring to attention. The thing which I stumbled upon was that the...
The following should better work, but it currently doesn't: ```julia julia> @model function test() x = Vector{Float64}(undef, 2) x[1] ~ Normal() x[2] ~ Normal() end test (generic function with 1...
The example does not really make sense, but it shows that [`flatten_namedtuple`](https://github.com/TuringLang/Turing.jl/blob/6dca57ed349e7c8e4242d56cde6d5f5b243ecae2/src/inference/Inference.jl#L331) is missing an `init` parameter in `mapreduce`: ```julia julia> @model function test(x) # no prior! x ~ Bernoulli(0.5)...
Autofill forces you to enter the password for the base URL on password forms starting with the same URL, because typing Enter fills out the account password, instead of submitting...
I either get this: ![Screenshot_2020-11-25_18-50-34](https://user-images.githubusercontent.com/7878215/100264539-40bd4600-2f4f-11eb-81ac-bc747448ace7.png) Or this: ![Screenshot_2020-11-25_18-50-56](https://user-images.githubusercontent.com/7878215/100264555-4581fa00-2f4f-11eb-89a7-c3b88dd05910.png)
Is there any way to match on expressions with a `:$` head? Like, replacing ``` if isexpr(expr, :$) @assert length(expr.args) == 1 :(shift($(esc(expr.args[1])))) end ``` by ``` @match expr begin...
When a chain contains, say, `x[1]` and `x[2]`, then `mean(group(chain, :x))` works nicely to see the mean of `x`. Now I'd have expected `Array(mean(group(chain, :x)))` to convert it to a...
```julia julia> μ = rand(2,2) 2×2 Matrix{Float64}: 0.943631 0.45465 0.0845643 0.781602 julia> Setfield.set(μ, @lens(_[1, :]), [0.0, 0.0]) 2×2 Matrix{Any}: 0.0 0.0 0.0845643 0.781602 ```
With `SampleFromPrior` and `DefaultContext`: ```julia julia> @model function bernoulli_mixture(x) w ~ Dirichlet(2, 1.0) p ~ DiscreteNonParametric([0.3, 0.7], w) x ~ Bernoulli(p) end julia> vi = VarInfo(); julia> bernoulli_mixture(false)(vi, SampleFromPrior(), DefaultContext())...
Implements #340 TODO: - [x] Upgrade to AbstractPPL 0.4 as soon as released - [x] Require Distributions 0.25.25 - [ ] Rename `logdensity` to `logdensityof` (deprecating the former), check interface...