Commit ceba0645 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] candidate size

parent 3a1050bc
......@@ -116,7 +116,10 @@ distributional m' = run result
result = termDivNan z_1 z_2
logDistributional :: Matrix Int -> Matrix Double
logDistributional m = run $ diagNull n $ matMiniMax $ logDistributional' n m
logDistributional m = run
$ diagNull n
$ matMiniMax
$ logDistributional' n m
where
n = dim m
......
......@@ -247,8 +247,8 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do
-- filter with max score
partitionWithMaxScore = HashMap.partition (\g -> (view scored_genInc $ view gts'_score g)
> (view scored_speExc $ view gts'_score g)
)
> (view scored_speExc $ view gts'_score g)
)
(monoScoredIncl, monoScoredExcl) = partitionWithMaxScore monoScored
(multScoredIncl, multScoredExcl) = partitionWithMaxScore multScored
......@@ -257,7 +257,7 @@ buildNgramsTermsList user uCid mCid groupParams (nt, _mapListSize)= do
let
-- use % of list if to big, or Int if to small
mapSize = 1000 :: Double
canSize = mapSize * 10 :: Double
canSize = mapSize * 5 :: Double
inclSize = 0.4 :: Double
exclSize = 1 - inclSize
......
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