Add some interface functions to support the new Gibbs sampler in Turing #256
Annotations
5 errors, 2 warnings, and 1 notice
build:
src/gibbs.jl#L50
doctest failure in ~/work/AbstractMCMC.jl/AbstractMCMC.jl/src/gibbs.jl:50-56
```jldoctest; setup = :(using AbstractMCMC: flatten)
julia> flatten((a=[1,2], b=[3,4,5]))
[1, 2, 3, 4, 5]
julia> flatten(OrderedCollections.OrderedDict(:x=>[1.0,2.0], :y=>[3.0,4.0,5.0]))
[1.0, 2.0, 3.0, 4.0, 5.0]
```
Subexpression:
flatten((a=[1,2], b=[3,4,5]))
Evaluated output:
5-element Vector{Int64}:
1
2
3
4
5
Expected output:
[1, 2, 3, 4, 5]
diff =
Warning: Diff output requires color.
[1, 2, 3, 4, 5]5-element Vector{Int64}:
1
2
3
4
5
|
build:
src/gibbs.jl#L50
doctest failure in ~/work/AbstractMCMC.jl/AbstractMCMC.jl/src/gibbs.jl:50-56
```jldoctest; setup = :(using AbstractMCMC: flatten)
julia> flatten((a=[1,2], b=[3,4,5]))
[1, 2, 3, 4, 5]
julia> flatten(OrderedCollections.OrderedDict(:x=>[1.0,2.0], :y=>[3.0,4.0,5.0]))
[1.0, 2.0, 3.0, 4.0, 5.0]
```
Subexpression:
flatten(OrderedCollections.OrderedDict(:x=>[1.0,2.0], :y=>[3.0,4.0,5.0]))
Evaluated output:
ERROR: UndefVarError: `OrderedCollections` not defined
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
[1.0, 2.0, 3.0, 4.0, 5.0]
diff =
Warning: Diff output requires color.
[1.0, 2.0, 3.0, 4.0, 5.0]ERROR: UndefVarError: `OrderedCollections` not defined
Stacktrace:
[1] top-level scope
@ none:1
|
build:
src/gibbs.jl#L69
doctest failure in ~/work/AbstractMCMC.jl/AbstractMCMC.jl/src/gibbs.jl:69-75
```jldoctest; setup = :(using AbstractMCMC: unflatten)
julia> unflatten([1,2,3,4,5], (a=(2,), b=(3,)))
(a=[1,2], b=[3,4,5])
julia> unflatten([1.0,2.0,3.0,4.0,5.0,6.0], (x=(2,2), y=(2,)))
(x=[1.0 3.0; 2.0 4.0], y=[5.0,6.0])
```
Subexpression:
unflatten([1,2,3,4,5], (a=(2,), b=(3,)))
Evaluated output:
(a = [1, 2], b = [3, 4, 5])
Expected output:
(a=[1,2], b=[3,4,5])
diff =
Warning: Diff output requires color.
(a=[1,2], b=[3,4,5])(a = [1, 2], b = [3, 4, 5])
|
build:
src/gibbs.jl#L69
doctest failure in ~/work/AbstractMCMC.jl/AbstractMCMC.jl/src/gibbs.jl:69-75
```jldoctest; setup = :(using AbstractMCMC: unflatten)
julia> unflatten([1,2,3,4,5], (a=(2,), b=(3,)))
(a=[1,2], b=[3,4,5])
julia> unflatten([1.0,2.0,3.0,4.0,5.0,6.0], (x=(2,2), y=(2,)))
(x=[1.0 3.0; 2.0 4.0], y=[5.0,6.0])
```
Subexpression:
unflatten([1.0,2.0,3.0,4.0,5.0,6.0], (x=(2,2), y=(2,)))
Evaluated output:
(x = [1.0 3.0; 2.0 4.0], y = [5.0, 6.0])
Expected output:
(x=[1.0 3.0; 2.0 4.0], y=[5.0,6.0])
diff =
Warning: Diff output requires color.
(x=[1.0 (x = [1.0 3.0; 2.0 4.0], y=[5.0,6.0])y = [5.0, 6.0])
|
build
Process completed with exit code 1.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, julia-actions/setup-julia@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|