Skip to content

Commit

Permalink
Add test for _reverse(::Rule)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Dec 4, 2023
1 parent 4b774fb commit 718fe56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ r1b = S.Rule(S.Clause(" X[i, 1] < 32000 "), [0.61], [0.408])
r1c = S.Rule(S.Clause(" X[i, 1] < 32000 "), [0.0], [0.408])
r5 = S.Rule(S.Clause(" X[i, 3] < 64 "), [0.56], [0.334])

r1_reversed = S.Rule(S.Clause(" X[i, 1] ≥ 32000 "), [0.408], [0.61])
@test S._reverse(r1) == r1_reversed

algo = SIRUS.Classification()
@test S._mean([[1, 4], [2, 4]]) == [1.5, 4.0]

Expand Down

0 comments on commit 718fe56

Please sign in to comment.