Skip to content
Snippets Groups Projects
Commit c973cb27 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch 'load' into 'master'

Consider non 1 values negatives

See merge request !80
parents 751d030e b1c67590
No related branches found
No related tags found
1 merge request!80Consider non 1 values negatives
Pipeline #
...@@ -43,8 +43,8 @@ def split(filename): ...@@ -43,8 +43,8 @@ def split(filename):
positive) and the second the scores positive) and the second the scores
(float).'''.format(filename)) (float).'''.format(filename))
raise raise
return (scores[numpy.where(neg_pos == -1)], positives = neg_pos == 1
scores[numpy.where(neg_pos == 1)]) return (scores[~positives], scores[positives])
def split_files(filenames): def split_files(filenames):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment