Skip to content

Commit

Permalink
Update src/counterfactuals/encodings.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
JorgeLuizFranco and github-actions[bot] authored Sep 4, 2024
1 parent 4acb1c5 commit 1fe3c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/counterfactuals/encodings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Apply the causal effects defined in a structural causal model (SCM) to an array
function run_causal_effects(scm::CausalInference.SCM, x::AbstractArray)
# Perform the matrix multiplication on the selected rows and include the bias term

return scm.causal_effects[:,1:end-1] * x + scm.causal_effects[:,end] # bias
return scm.causal_effects[:, 1:(end - 1)] * x + scm.causal_effects[:, end] # bias

# try both approaches, split in sum || concatenate 1 in x
end
Expand Down

0 comments on commit 1fe3c8a

Please sign in to comment.