Skip to content

Commit

Permalink
removing debugging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
naseweisssss committed Nov 19, 2024
1 parent 43027c5 commit a0ea8e9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/experimental/ProbabilisticGraphicalModels/bayesnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ using JuliaBUGS.ProbabilisticGraphicalModels:
end

@testset "Fork Structure (A ← B → C)" begin
println("\nTesting Fork Structure")
bn = BayesianNetwork{Symbol}()

add_stochastic_vertex!(bn, :A, Normal(), false)
Expand All @@ -194,11 +193,8 @@ using JuliaBUGS.ProbabilisticGraphicalModels:
add_edge!(bn, :B, :A)
add_edge!(bn, :B, :C)

println("Graph structure:")
println("Edges: ", collect(edges(bn.graph)))

result = is_conditionally_independent(bn, :A, :C, Symbol[])
println("Result for A ⊥ C | ∅: $result")
@test !is_conditionally_independent(bn, :A, :C, Symbol[])
@test is_conditionally_independent(bn, :A, :C, [:B])
end

@testset "Collider Structure (A → B ← C)" begin
Expand Down Expand Up @@ -306,4 +302,4 @@ using JuliaBUGS.ProbabilisticGraphicalModels:
@test_throws ArgumentError is_conditionally_independent(bn, Symbol[], [:F], [:B])
@test_throws ArgumentError is_conditionally_independent(bn, [:A], Symbol[], [:B])
end
end
end

0 comments on commit a0ea8e9

Please sign in to comment.