Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix constant node evaluation #16

Merged
merged 1 commit into from
Jun 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Logical/Queries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function evaluate(root::ΔNode, data::XData{Bool})::BitVector
[broadcast(!,feature_matrix(data)[:,variable(n)])]
end
@inline f_con(n) =
is_true(n) ? always(Bool, num_examples(data)) : never(Bool, num_examples(data))
[is_true(n) ? always(Bool, num_examples(data)) : never(Bool, num_examples(data))]
@inline fa(n, call) = begin
if num_children(n) < 2
return call(@inbounds children(n)[1])
Expand Down Expand Up @@ -329,4 +329,4 @@ end
function pass_up_down2(circuit::Δ, data::XData{Bool})
circuit[end](data)
pass_down2(circuit, data)
end
end