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
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
adf09142
Commit
adf09142
authored
Oct 18, 2019
by
qlobbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix accuracy
parent
09db0b41
Pipeline
#589
failed with stage
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
94 deletions
+104
-94
AdaptativePhylo.hs
src/Gargantext/Viz/AdaptativePhylo.hs
+1
-1
PhyloExport.hs
src/Gargantext/Viz/Phylo/PhyloExport.hs
+8
-6
TemporalMatching.hs
src/Gargantext/Viz/Phylo/TemporalMatching.hs
+95
-87
No files found.
src/Gargantext/Viz/AdaptativePhylo.hs
View file @
adf09142
...
...
@@ -125,7 +125,7 @@ defaultConfig =
,
phyloLevel
=
2
,
phyloProximity
=
WeightedLogJaccard
10
0
0.1
,
phyloSynchrony
=
ByProximityDistribution
0
,
phyloQuality
=
Quality
0.
1
1
,
phyloQuality
=
Quality
0.
5
3
,
timeUnit
=
Year
3
1
5
,
contextualUnit
=
Fis
1
5
,
exportLabel
=
[
BranchLabel
MostInclusive
2
,
GroupLabel
MostEmergentInclusive
2
]
...
...
src/Gargantext/Viz/Phylo/PhyloExport.hs
View file @
adf09142
...
...
@@ -182,13 +182,15 @@ exportToDot phylo export =
graphAttrs
[
Rank
SameRank
]
-- | 3) group the branches by hierarchy
mapM
(
\
branches
->
subgraph
(
Str
"Branches clade"
)
$
do
graphAttrs
[
Rank
SameRank
]
--
mapM (\branches ->
--
subgraph (Str "Branches clade") $ do
--
graphAttrs [Rank SameRank]
-- | 4) create a node for each branch
mapM
branchToDotNode
branches
)
$
elems
$
fromListWith
(
++
)
$
map
(
\
b
->
((
init
.
snd
)
$
b
^.
branch_id
,[
b
]))
$
export
^.
export_branches
-- -- | 4) create a node for each branch
-- mapM branchToDotNode branches
-- ) $ elems $ fromListWith (++) $ map (\b -> ((init . snd) $ b ^. branch_id,[b])) $ export ^. export_branches
mapM
branchToDotNode
$
export
^.
export_branches
-- | 5) create a layer for each period
_
<-
mapM
(
\
period
->
...
...
src/Gargantext/Viz/Phylo/TemporalMatching.hs
View file @
adf09142
This diff is collapsed.
Click to expand it.
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