Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
devmotion and github-actions[bot] authored Oct 3, 2023
1 parent 0b49106 commit 270acd6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions test/simple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@

# initial parameter
init_x = randn()
samples = sample(ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x)
samples = sample(
ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x
)
@test first(samples) == init_x
end

Expand Down Expand Up @@ -84,7 +86,9 @@

# initial parameter
init_x = randn()
samples = sample(ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x)
samples = sample(
ESSModel(prior, ℓ), ESS(), 10; progress=false, initial_params=init_x
)
@test first(samples) == init_x
end

Expand Down Expand Up @@ -118,7 +122,13 @@
# initial parameter
init_x = [randn(1) for _ in 1:5]
samples = sample(
ESSModel(prior, ℓvec), ESS(), alg, 10, 5; progress=false, initial_params=init_x
ESSModel(prior, ℓvec),
ESS(),
alg,
10,
5;
progress=false,
initial_params=init_x,
)
@test map(first, samples) == init_x
end
Expand Down Expand Up @@ -161,7 +171,13 @@
# initial parameter
init_x = [randn(1) for _ in 1:5]
samples = sample(
ESSModel(prior, ℓvec), ESS(), alg, 10, 5; progress=false, initial_params=init_x
ESSModel(prior, ℓvec),
ESS(),
alg,
10,
5;
progress=false,
initial_params=init_x,
)
@test map(first, samples) == init_x
end
Expand Down

0 comments on commit 270acd6

Please sign in to comment.