Add test for filtering (still failing)
This commit is contained in:
parent
252493a776
commit
698b7a5db8
@ -135,6 +135,8 @@ main = hspec $ do
|
|||||||
runGEvalTest "accuracy-probs" `shouldReturnAlmost` 0.4
|
runGEvalTest "accuracy-probs" `shouldReturnAlmost` 0.4
|
||||||
it "sorted" $
|
it "sorted" $
|
||||||
runGEvalTest "accuracy-on-sorted" `shouldReturnAlmost` 0.75
|
runGEvalTest "accuracy-on-sorted" `shouldReturnAlmost` 0.75
|
||||||
|
it "with filtering" $
|
||||||
|
runGEvalTest "accuracy-filtering" `shouldReturnAlmost` 1.0
|
||||||
describe "F-measure" $ do
|
describe "F-measure" $ do
|
||||||
it "simple example" $
|
it "simple example" $
|
||||||
runGEvalTest "f-measure-simple" `shouldReturnAlmost` 0.57142857
|
runGEvalTest "f-measure-simple" `shouldReturnAlmost` 0.57142857
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
foo
|
||||||
|
foo
|
||||||
|
bar
|
||||||
|
bar
|
||||||
|
foo
|
|
1
test/accuracy-filtering/accuracy-filtering/config.txt
Normal file
1
test/accuracy-filtering/accuracy-filtering/config.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
--metric Accuracy:f<in[2]:yep>
|
@ -0,0 +1,5 @@
|
|||||||
|
foo
|
||||||
|
bar
|
||||||
|
bar
|
||||||
|
bar
|
||||||
|
bar
|
|
5
test/accuracy-filtering/accuracy-filtering/test-A/in.tsv
Normal file
5
test/accuracy-filtering/accuracy-filtering/test-A/in.tsv
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
1 yep 111
|
||||||
|
1 nope 2323
|
||||||
|
3 yep 32323
|
||||||
|
2 yep 222
|
||||||
|
11 nope sdsds
|
|
Loading…
Reference in New Issue
Block a user