Commit 5cc28172 authored by qlobbe's avatar qlobbe

change the candidate selection

parent 71bfa432
Pipeline #2901 failed with stage
in 44 minutes and 25 seconds
......@@ -247,11 +247,12 @@ getNextPeriods fil max' pId pIds =
getCandidates :: PhyloGroup -> [[(PhyloGroupId,[Int])]] -> [[(PhyloGroupId,[Int])]]
getCandidates ego targets =
map (\groups' ->
-- filter (\g' -> (not . null) $ intersect (ego ^. phylo_groupNgrams) (snd g')
filter (\g' -> (> 1) $ length $ intersect (ego ^. phylo_groupNgrams) (snd g')
) groups') targets
getCandidates ego targets =
if (length (ego ^. phylo_groupNgrams)) > 1
then
map (\groups' -> filter (\g' -> (> 1) $ length $ intersect (ego ^. phylo_groupNgrams) (snd g')) groups') targets
else
map (\groups' -> filter (\g' -> (not . null) $ intersect (ego ^. phylo_groupNgrams) (snd g')) groups') targets
matchGroupsToGroups :: Int -> [PhyloPeriodId] -> Proximity -> Double -> Map Date Double -> Map Date Cooc -> [PhyloGroup] -> [PhyloGroup]
......
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