Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
d4aec3d0
Commit
d4aec3d0
authored
Nov 09, 2020
by
qlobbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1d02438b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TemporalMatching.hs
src/Gargantext/Core/Viz/Phylo/TemporalMatching.hs
+3
-3
No files found.
src/Gargantext/Core/Viz/Phylo/TemporalMatching.hs
View file @
d4aec3d0
...
...
@@ -287,7 +287,7 @@ toPhyloQuality' beta freq branches =
else
sum
$
map
(
\
i
->
let
bks
=
relevantBranches
i
branches
periods
=
nub
$
map
_phylo_groupPeriod
$
concat
bks
periods
=
nub
$
map
_phylo_groupPeriod
$
filter
(
\
g
->
elem
i
$
g
^.
phylo_groupNgrams
)
$
concat
bks
in
(
freq
!
i
)
*
(
sum
$
map
(
\
bk
->
((
wk
bk
)
/
(
sum
$
map
wk
bks
))
*
(
fScore
beta
i
periods
bk
bks
))
bks
))
$
keys
freq
...
...
@@ -316,7 +316,7 @@ toAccuracy freq branches =
let
px
=
freq
!
x
bx
=
relevantBranches
x
branches
-- | periods containing x
periods
=
nub
$
map
_phylo_groupPeriod
$
concat
bx
periods
=
nub
$
map
_phylo_groupPeriod
$
filter
(
\
g
->
elem
x
$
g
^.
phylo_groupNgrams
)
$
concat
bx
wks
=
sum
$
map
wk
bx
in
(
px
/
pys
)
*
(
sum
$
map
(
\
bk
->
((
wk
bk
)
/
wks
)
*
(
accuracy
x
periods
bk
))
bx
))
$
keys
freq
...
...
@@ -335,7 +335,7 @@ toPhyloQuality beta freq branches =
let
px
=
freq
!
x
bx
=
relevantBranches
x
branches
-- | periods containing x
periods
=
nub
$
map
_phylo_groupPeriod
$
concat
bx
periods
=
nub
$
map
_phylo_groupPeriod
$
filter
(
\
g
->
elem
x
$
g
^.
phylo_groupNgrams
)
$
concat
bx
wks
=
sum
$
map
wk
bx
in
(
px
/
pys
)
*
(
sum
$
map
(
\
bk
->
((
wk
bk
)
/
wks
)
*
(
fScore
beta
x
periods
bk
bx
))
bx
))
$
keys
freq
...
...
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