Closed mhauru closed 1 week ago
Answers the feature request from #1417
The return type here is a bit questionable. It currently mimics the NamedTuples that MCMCChains returns for Base.get, but I also considered returning NamedArrays like the ModeResult.values field. Opinions on this are welcome.
NamedTuples
Base.get
NamedArrays
ModeResult.values
Fix #1417
As a fun side effect of this PR, I ran into this case of bizarrely slow type inference: https://github.com/JuliaLang/julia/issues/54879
Thanks @mhauru and @devmotion!
Answers the feature request from #1417
The return type here is a bit questionable. It currently mimics the
NamedTuples
that MCMCChains returns forBase.get
, but I also considered returningNamedArrays
like theModeResult.values
field. Opinions on this are welcome.Fix #1417