Skip to content

Commit

Permalink
add wrapper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
naseweisssss committed Nov 6, 2024
1 parent 102069d commit 503910f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/experimental/ProbabilisticGraphicalModels/bayesnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,12 @@ If Z is provided, the conditioning information in `bn` will be ignored.
function is_conditionally_independent end

function is_conditionally_independent(bn::BayesianNetwork{V}, X::V, Y::V) where {V}
# TODO: Implement
Z = bn.names[findall(bn.is_observed)]
return is_conditionally_independent(bn, X, Y, Z)
end

function is_conditionally_independent(
bn::BayesianNetwork{V}, X::V, Y::V, Z::Vector{V}
) where {V}
# TODO: Implement

end

0 comments on commit 503910f

Please sign in to comment.