Skip to content

Commit

Permalink
test outer constructor for bp from ising
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Oct 4, 2024
1 parent 4634a22 commit c0ee254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Models/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ end
rng = MersenneTwister(0)
N = 9
g = prufer_decode(rand(rng, 1:N, N-2)) |> IndexedGraph
J = randn(rng, ne(g))
J = adjacency_matrix(g)
h = randn(rng, nv(g))
β = rand(rng)
ising = Ising(g, J, h, β)
ising = Ising(J, h, β)
ms = BP(ising)
iterate_ms!(ms; maxiter=20, tol=0)
e = avg_energy(avg_energy_ms, ms)
Expand Down

0 comments on commit c0ee254

Please sign in to comment.