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
cfcc2f8d
Commit
cfcc2f8d
authored
Mar 24, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Order 2 : ok
parent
4556ffa8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
Utils.hs
src/Gargantext/Core/Methods/Matrix/Accelerate/Utils.hs
+3
-3
Distributional.hs
...xt/Core/Methods/Similarities/Accelerate/Distributional.hs
+3
-3
Tools.hs
src/Gargantext/Core/Viz/Graph/Tools.hs
+4
-3
No files found.
src/Gargantext/Core/Methods/Matrix/Accelerate/Utils.hs
View file @
cfcc2f8d
...
@@ -423,9 +423,9 @@ theMatrixInt n = matrix n (dataMatrix n)
...
@@ -423,9 +423,9 @@ theMatrixInt n = matrix n (dataMatrix n)
,
0
,
3
,
4
,
0
,
3
,
4
]
]
|
(
P
.==
)
x
4
=
[
4
,
1
,
2
,
1
|
(
P
.==
)
x
4
=
[
4
,
1
,
2
,
1
,
1
,
4
,
0
,
0
,
1
,
1
,
0
,
0
,
2
,
0
,
3
,
3
,
2
,
0
,
5
,
3
,
1
,
0
,
3
,
3
,
1
,
0
,
3
,
4
]
]
...
...
src/Gargantext/Core/Methods/Similarities/Accelerate/Distributional.hs
View file @
cfcc2f8d
...
@@ -169,8 +169,8 @@ distributional m' = run $ result
...
@@ -169,8 +169,8 @@ distributional m' = run $ result
result
=
termDivNan
z_1
z_2
result
=
termDivNan
z_1
z_2
logDistributional2
::
Matrix
Int
->
Matrix
Double
logDistributional2
::
Matrix
Int
->
Matrix
Double
logDistributional2
m
=
trace
(
"logDistributional, dim="
`
mappend
`
show
n
)
.
run
logDistributional2
m
=
trace
(
"logDistributional
2
, dim="
`
mappend
`
show
n
)
.
run
--
$ diagNull n
$
diagNull
n
$
matMaxMini
$
matMaxMini
$
logDistributional'
n
m
$
logDistributional'
n
m
where
where
...
@@ -263,7 +263,7 @@ logDistributional' n m' = trace ("logDistributional'") result
...
@@ -263,7 +263,7 @@ logDistributional' n m' = trace ("logDistributional'") result
--
--
logDistributional
::
Matrix
Int
->
Matrix
Double
logDistributional
::
Matrix
Int
->
Matrix
Double
logDistributional
m'
=
run
result
logDistributional
m'
=
run
$
diagNull
n
$
result
where
where
m
=
map
fromIntegral
$
use
m'
m
=
map
fromIntegral
$
use
m'
n
=
dim
m'
n
=
dim
m'
...
...
src/Gargantext/Core/Viz/Graph/Tools.hs
View file @
cfcc2f8d
...
@@ -25,7 +25,7 @@ import Gargantext.API.Ngrams.Types (NgramsTerm(..))
...
@@ -25,7 +25,7 @@ import Gargantext.API.Ngrams.Types (NgramsTerm(..))
import
Gargantext.Core.Methods.Similarities
(
Similarity
(
..
),
measure
)
import
Gargantext.Core.Methods.Similarities
(
Similarity
(
..
),
measure
)
-- import Gargantext.Core.Methods.Similarities.Conditional (conditional)
-- import Gargantext.Core.Methods.Similarities.Conditional (conditional)
import
Gargantext.Core.Statistics
import
Gargantext.Core.Statistics
import
Gargantext.Core.Viz.Graph.Bridgeness
(
bridgeness
,
Bridgeness
(
..
),
Partitions
,
nodeId2comId
,
recursiveClustering
,
recursiveClustering'
,
setNodes2clusterNodes
)
import
Gargantext.Core.Viz.Graph.Bridgeness
(
bridgeness
,
Bridgeness
(
..
),
Partitions
,
nodeId2comId
,
{-recursiveClustering,-}
recursiveClustering'
,
setNodes2clusterNodes
)
import
Gargantext.Core.Viz.Graph.Index
(
createIndices
,
toIndex
,
map2mat
,
mat2map
,
Index
,
MatrixShape
(
..
))
import
Gargantext.Core.Viz.Graph.Index
(
createIndices
,
toIndex
,
map2mat
,
mat2map
,
Index
,
MatrixShape
(
..
))
import
Gargantext.Core.Viz.Graph.Tools.IGraph
(
mkGraphUfromEdges
,
spinglass
,
spinglass'
)
import
Gargantext.Core.Viz.Graph.Tools.IGraph
(
mkGraphUfromEdges
,
spinglass
,
spinglass'
)
import
Gargantext.Core.Viz.Graph.Tools.Infomap
(
infomap
)
import
Gargantext.Core.Viz.Graph.Tools.Infomap
(
infomap
)
...
@@ -117,7 +117,7 @@ cooc2graphWith' :: Partitions
...
@@ -117,7 +117,7 @@ cooc2graphWith' :: Partitions
->
Strength
->
Strength
->
HashMap
(
NgramsTerm
,
NgramsTerm
)
Int
->
HashMap
(
NgramsTerm
,
NgramsTerm
)
Int
->
IO
Graph
->
IO
Graph
cooc2graphWith'
_doPartitions
_bridgenessMethod
multi
similarity
@
Conditional
threshold
strength
myCooc
=
do
cooc2graphWith'
_doPartitions
_bridgenessMethod
multi
similarity
threshold
strength
myCooc
=
do
let
(
distanceMap
,
diag
,
ti
)
=
doSimilarityMap
similarity
threshold
strength
myCooc
let
(
distanceMap
,
diag
,
ti
)
=
doSimilarityMap
similarity
threshold
strength
myCooc
distanceMap
`
seq
`
diag
`
seq
`
ti
`
seq
`
return
()
distanceMap
`
seq
`
diag
`
seq
`
ti
`
seq
`
return
()
...
@@ -135,6 +135,7 @@ cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Conditional thr
...
@@ -135,6 +135,7 @@ cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Conditional thr
pure
$
data2graph
multi
ti
diag
bridgeness'
confluence'
(
setNodes2clusterNodes
$
List
.
concat
partitions
)
pure
$
data2graph
multi
ti
diag
bridgeness'
confluence'
(
setNodes2clusterNodes
$
List
.
concat
partitions
)
{-
cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Distributional threshold strength myCooc = do
cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Distributional threshold strength myCooc = do
let (distanceMap, diag, ti) = doSimilarityMap similarity threshold strength myCooc
let (distanceMap, diag, ti) = doSimilarityMap similarity threshold strength myCooc
distanceMap `seq` diag `seq` ti `seq` return ()
distanceMap `seq` diag `seq` ti `seq` return ()
...
@@ -152,7 +153,7 @@ cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Distributional
...
@@ -152,7 +153,7 @@ cooc2graphWith' _doPartitions _bridgenessMethod multi similarity@Distributional
!bridgeness' = bridgeness (Bridgeness_Basic partitions 1.0) distanceMap
!bridgeness' = bridgeness (Bridgeness_Basic partitions 1.0) distanceMap
pure $ data2graph multi ti diag bridgeness' confluence' partitions
pure $ data2graph multi ti diag bridgeness' confluence' partitions
-}
...
...
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