Skip to content

Commit

Permalink
Update src/analysis/rule_extraction.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Takuya Iwanaga <takuyai@gmail.com>
  • Loading branch information
Zapiano and ConnectedSystems authored Nov 26, 2024
1 parent f3b0f82 commit 6e23793
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/analysis/rule_extraction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,14 @@ end
"""
_remove_duplicates(rules)::Vector{Rule{Vector{Vector},Vector{Float64}}}
Returns `Vector{Rule}` without duplicate rules (if there's any). The criteria to choose
which rule to keep is based on the rule consequence probability (the one with the highest
Identifies and removes duplicate rulesets (if any are found).
The criteria to choose which rule to keep is based on the rule consequence probability (the one with the highest
probability is kept). If there are more than one rule with the same highest probability,
then the first one is chosen.
# Returns
A ruleset with duplicate rules removed
"""
function _remove_duplicates(
rules::T
Expand Down

0 comments on commit 6e23793

Please sign in to comment.