Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fize Jacques
GMatch4py
Commits
7cff6b01
Commit
7cff6b01
authored
Sep 09, 2018
by
Fize Jacques
Browse files
debug matrix saving
parent
70bfd2a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
gmatch4py/base.pyx
View file @
7cff6b01
...
...
@@ -174,11 +174,11 @@ cdef class Base:
"""
if
self
.
type_alg
==
1
:
if
not
self
.
normalized
:
matrix
=
minmax_scale
(
matrix
)
matrix
=
np
.
ma
.
getdata
(
minmax_scale
(
matrix
)
)
return
matrix
else
:
if
not
self
.
normalized
:
matrix
=
minmax_scale
(
matrix
)
matrix
=
np
.
ma
.
getdata
(
minmax_scale
(
matrix
)
)
return
1
-
matrix
cpdef
np
.
ndarray
similarity
(
self
,
np
.
ndarray
matrix
):
...
...
@@ -198,7 +198,7 @@ cdef class Base:
return
matrix
else
:
if
not
self
.
normalized
:
matrix
=
minmax_scale
(
matrix
)
matrix
=
np
.
ma
.
getdata
(
minmax_scale
(
matrix
)
)
return
1
-
matrix
def
mcs
(
self
,
G
,
H
):
...
...
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