Skip to content

Commit

Permalink
Merge pull request #625 from open-AIMS/fix-sirus-update
Browse files Browse the repository at this point in the history
Fix bug introduced by SIRUS v2.0.1
  • Loading branch information
ConnectedSystems authored Dec 6, 2023
2 parents b1a2200 + 163fec0 commit 2308dd1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/analysis/rule_extraction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ Vector of Rule condition clauses (each one being a vector itself).
"""
function _condition(rules::SIRUS.StableRules{Int64}, index::Int64)::Vector{Vector}
condition::Vector{Vector} = []
for split in rules.rules[index].path.splits
feature_name = split.splitpoint.feature_name
direction = split.direction
value = split.splitpoint.value

for subclause in rules.rules[index].clause.subclauses
feature_name::String = subclause.feature_name
direction::Symbol = subclause.direction
value::Float32 = subclause.splitval
push!(condition, [feature_name, direction, value])
end
return condition
Expand Down

0 comments on commit 2308dd1

Please sign in to comment.