Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.boosting
Commits
6bb60b38
Commit
6bb60b38
authored
Sep 10, 2013
by
Rakesh MEHTA
Browse files
return score along with label
parent
445d6a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/boosting/core/boosting.py
View file @
6bb60b38
...
...
@@ -270,6 +270,8 @@ class BoostMachine():
Return:
prediction_scores: The real valued number which are thresholded to determine the prediction classes.
prediction_labels: The predicted classes for the test samples. It is a binary numpy array where
1 indicates the predicted class.
Type: numpy array
...
...
@@ -305,7 +307,7 @@ class BoostMachine():
else
:
score_max
=
numpy
.
argmax
(
pred_scores
,
axis
=
1
)
pred_labels
[
range
(
num_samp
),
score_max
]
=
1
return
pred_labels
return
pred_scores
,
pred_labels
Write
Preview
Supports
Markdown
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