Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ludovic PLATON
/
IRSOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ludovic PLATON
2018-05-09 16:05:37 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c514cfabe5d4149c843bc599b79ddee70f23ab2
6c514cfa
1 parent
646b068c
Fix reject
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
scripts/predict.py
scripts/predict.py
View file @
6c514cf
...
...
@@ -68,7 +68,7 @@ def main():
y
,
proba
=
ssom
.
predict
(
data
)
y
=
np
.
array
(
y
)
if
not
arguments
[
"--reject"
]:
y
[
proba
<
float
(
arguments
[
"--reject"
])]
=
-
1
y
[
np
.
absolute
(
proba
[:,
0
]
-
proba
[:,
1
])
<
float
(
arguments
[
"--reject"
])]
=
-
1
bmu
=
np
.
array
(
som
.
get_BMUS
(
data
))
save_pred
(
som
,
data
,
data_names
,
y
,
proba
,
bmu
,
output_path
)
...
...
Please
register
or
login
to post a comment