From 1dc56d0d84bc53aaaf83109b8e20dbe01383ceb9 Mon Sep 17 00:00:00 2001 From: pat-alt Date: Wed, 18 Oct 2023 15:59:15 +0200 Subject: [PATCH] bug --- src/counterfactuals/search.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/counterfactuals/search.jl b/src/counterfactuals/search.jl index 174754621..7791fba3b 100644 --- a/src/counterfactuals/search.jl +++ b/src/counterfactuals/search.jl @@ -63,5 +63,5 @@ Wrapper function that applies underlying domain constraints. """ function apply_domain_constraints!(ce::CounterfactualExplanation) ce.x′ = apply_domain_constraints(ce.data, ce.x′) # apply domain constraints in feature space - ce.s′ = encode_state(ce.x′) # re-encode counterfactual state + ce.s′ = encode_state(ce, ce.x′) # re-encode counterfactual state end