Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
ceba0645
Commit
ceba0645
authored
Jun 02, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] candidate size
parent
3a1050bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Distributional.hs
...ntext/Core/Methods/Distances/Accelerate/Distributional.hs
+4
-1
List.hs
src/Gargantext/Core/Text/List.hs
+3
-3
No files found.
src/Gargantext/Core/Methods/Distances/Accelerate/Distributional.hs
View file @
ceba0645
...
...
@@ -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
...
...
src/Gargantext/Core/Text/List.hs
View file @
ceba0645
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment