From 503910f5e780b75190288d6c4d99d0d5fee6d038 Mon Sep 17 00:00:00 2001 From: Naseweisssss Date: Tue, 5 Nov 2024 15:16:15 +0000 Subject: [PATCH] add wrapper functions --- src/experimental/ProbabilisticGraphicalModels/bayesnet.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/experimental/ProbabilisticGraphicalModels/bayesnet.jl b/src/experimental/ProbabilisticGraphicalModels/bayesnet.jl index 61c879f83..a1e521d79 100644 --- a/src/experimental/ProbabilisticGraphicalModels/bayesnet.jl +++ b/src/experimental/ProbabilisticGraphicalModels/bayesnet.jl @@ -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