Commit bbe478a5 authored by qlobbe's avatar qlobbe

change beta to 1 / beta

parent db30ba9e
Pipeline #851 failed with stage
...@@ -145,7 +145,7 @@ defaultConfig = ...@@ -145,7 +145,7 @@ defaultConfig =
, phyloProximity = WeightedLogJaccard 10 , phyloProximity = WeightedLogJaccard 10
, seaElevation = Constante 0 0.1 , seaElevation = Constante 0 0.1
, phyloSynchrony = ByProximityThreshold 0.5 10 SiblingBranches MergeAllGroups , phyloSynchrony = ByProximityThreshold 0.5 10 SiblingBranches MergeAllGroups
, phyloQuality = Quality 1 1 , phyloQuality = Quality 0.1 1
, timeUnit = Year 3 1 5 , timeUnit = Year 3 1 5
, clique = Fis 1 5 , clique = Fis 1 5
, exportLabel = [BranchLabel MostInclusive 2, GroupLabel MostEmergentInclusive 2] , exportLabel = [BranchLabel MostInclusive 2, GroupLabel MostEmergentInclusive 2]
......
...@@ -252,8 +252,8 @@ fScore beta x bk bx = ...@@ -252,8 +252,8 @@ fScore beta x bk bx =
/ (fromIntegral $ length $ filter (\g -> elem x $ g ^. phylo_groupNgrams) $ concat bx)) / (fromIntegral $ length $ filter (\g -> elem x $ g ^. phylo_groupNgrams) $ concat bx))
accuracy = ( (fromIntegral $ length $ filter (\g -> elem x $ g ^. phylo_groupNgrams) bk) accuracy = ( (fromIntegral $ length $ filter (\g -> elem x $ g ^. phylo_groupNgrams) bk)
/ (fromIntegral $ length bk)) / (fromIntegral $ length bk))
in ((1 + beta ** 2) * accuracy * recall) in ((1 + (1 / beta) ** 2) * accuracy * recall)
/ (((beta ** 2) * accuracy + recall)) / ((((1 / beta) ** 2) * accuracy + recall))
wk :: [PhyloGroup] -> Double wk :: [PhyloGroup] -> Double
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment