Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
b1c67590
Commit
b1c67590
authored
Jun 27, 2018
by
Amir MOHAMMADI
Browse files
Consider non 1 values negatives
parent
751d030e
Pipeline
#21390
passed with stage
in 36 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/load.py
View file @
b1c67590
...
...
@@ -43,8 +43,8 @@ def split(filename):
positive) and the second the scores
(float).'''
.
format
(
filename
))
raise
return
(
scores
[
numpy
.
where
(
neg_pos
==
-
1
)],
scores
[
numpy
.
where
(
neg_pos
==
1
)
])
positives
=
neg_pos
==
1
return
(
scores
[
~
positives
],
scores
[
positives
])
def
split_files
(
filenames
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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