Tests for FLC-F1 metric

This commit is contained in:
Lukasz Borchmann 2020-02-04 13:13:58 +01:00
parent a66fa35a42
commit b22d1777d7
4 changed files with 8 additions and 0 deletions

View File

@ -285,6 +285,9 @@ main = hspec $ do
runGEvalTest "soft-f1-simple" `shouldReturnAlmost` 0.33333333333333 runGEvalTest "soft-f1-simple" `shouldReturnAlmost` 0.33333333333333
it "perfect test" $ do it "perfect test" $ do
runGEvalTest "soft-f1-perfect" `shouldReturnAlmost` 1.0 runGEvalTest "soft-f1-perfect" `shouldReturnAlmost` 1.0
describe "FLC-F1" $ do
it "simple test" $ do
runGEvalTest "flc-f1-simple" `shouldReturnAlmost` 0.394231
describe "Probabilistic-Soft-F1" $ do describe "Probabilistic-Soft-F1" $ do
it "simple test" $ do it "simple test" $ do
runGEvalTest "probabilistic-soft-f1-simple" `shouldReturnAlmost` 0.33333333333333 runGEvalTest "probabilistic-soft-f1-simple" `shouldReturnAlmost` 0.33333333333333

View File

@ -0,0 +1 @@
--metric FLC-F1

View File

@ -0,0 +1,2 @@
foo:658-700,701-710
foo:1870-1893
1 foo:658-700,701-710
2 foo:1870-1893

View File

@ -0,0 +1,2 @@
foo:0-75
foo:658-699
1 foo:0-75
2 foo:658-699