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
59dc5aba
Commit
59dc5aba
authored
Oct 27, 2016
by
Manuel Günther
Browse files
Fixed python3 warning
parent
0ee21702
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/test_error.py
View file @
59dc5aba
...
...
@@ -216,10 +216,10 @@ def test_plots():
# EPC curve, you need to have a development and a test set. We will split,
# by the middle, the negatives and positives sample we have, just for the
# sake of testing
dev_negatives
=
negatives
[:(
negatives
.
shape
[
0
]
/
2
)]
test_negatives
=
negatives
[(
negatives
.
shape
[
0
]
/
2
):]
dev_positives
=
positives
[:(
positives
.
shape
[
0
]
/
2
)]
test_positives
=
positives
[(
positives
.
shape
[
0
]
/
2
):]
dev_negatives
=
negatives
[:(
negatives
.
shape
[
0
]
/
/
2
)]
test_negatives
=
negatives
[(
negatives
.
shape
[
0
]
/
/
2
):]
dev_positives
=
positives
[:(
positives
.
shape
[
0
]
/
/
2
)]
test_positives
=
positives
[(
positives
.
shape
[
0
]
/
/
2
):]
xy
=
epc
(
dev_negatives
,
dev_positives
,
test_negatives
,
test_positives
,
100
)
# uncomment the next line to save a reference value
...
...
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