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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
4e9ab73a
Commit
4e9ab73a
authored
Jun 23, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Label issue (for tests)
parent
f91cf59b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
gargantext.cabal
gargantext.cabal
+1
-1
Utils.hs
src/Gargantext/Core/Methods/Matrix/Accelerate/Utils.hs
+2
-2
API.hs
src/Gargantext/Core/Viz/Graph/API.hs
+3
-4
No files found.
gargantext.cabal
View file @
4e9ab73a
...
...
@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: gargantext
version: 0.0.5.8.9.8
version:
0.0.5.8.9.8
synopsis: Search, map, share
description: Please see README.md
category: Data
...
...
src/Gargantext/Core/Methods/Matrix/Accelerate/Utils.hs
View file @
4e9ab73a
...
...
@@ -31,7 +31,7 @@ module Gargantext.Core.Methods.Matrix.Accelerate.Utils
where
import
qualified
Data.Foldable
as
P
(
foldl1
)
import
Debug.Trace
(
trace
)
--
import Debug.Trace (trace)
import
Data.Array.Accelerate
import
Data.Array.Accelerate.Interpreter
(
run
)
import
qualified
Gargantext.Prelude
as
P
...
...
@@ -306,7 +306,7 @@ sumRowMin n m = {-trace (P.show $ run m') $-} m'
$
P
.
map
(
\
z
->
sumRowMin1
n
(
constant
z
)
m
)
[
0
..
n
-
1
]
sumRowMin1
::
(
Num
a
,
Ord
a
)
=>
Dim
->
Exp
Int
->
Acc
(
Matrix
a
)
->
Acc
(
Vector
a
)
sumRowMin1
n
x
m
=
trace
(
P
.
show
(
run
m
,
run
$
transpose
m
))
$
m''
sumRowMin1
n
x
m
=
{-trace (P.show (run m,run $ transpose m)) $-}
m''
where
m''
=
sum
$
zipWith
min
(
transpose
m
)
m
_m'
=
zipWith
(
*
)
(
zipWith
(
*
)
(
nullOf
n
(
MatCol
x
))
$
nullOfWithDiag
n
(
MatRow
x
))
m
...
...
src/Gargantext/Core/Viz/Graph/API.hs
View file @
4e9ab73a
...
...
@@ -182,14 +182,13 @@ computeGraph cId method d nt repo = do
<$>
groupNodesByNgrams
ngs
<$>
getContextsByNgramsOnlyUser
cId
(
lIds
<>
[
lId
])
nt
(
HashMap
.
keys
ngs
)
listNgrams
<-
getListNgrams
[
lId
]
nt
graph
<-
liftBase
$
cooc2graphWith
method
d
0
myCooc
let
graph'
=
mergeGraphNgrams
graph
(
Just
listNgrams
)
-- listNgrams <- getListNgrams [lId] nt
--let graph' = mergeGraphNgrams graph (Just listNgrams)
-- saveAsFileDebug "/tmp/graphWithNodes" graph'
pure
graph
'
pure
graph
defaultGraphMetadata
::
HasNodeError
err
...
...
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