Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Aug 14, 2012
1 parent d75793a commit 854ec32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/shogun/labels/BinaryLabels.cpp
Expand Up @@ -218,14 +218,16 @@ void CBinaryLabels::scores_to_probabilities()

if (stepsize<minstep)
{
SG_DEBUG("line search fails, A=%f, B=%f, g1=%f, g2=%f, dA=%f, "
"dB=%f, gd=%f\n", a, b, g1, g2, dA, dB, gd);
SG_WARNING("%s::scores_to_probabilities(): line search fails, A=%f, "
"B=%f, g1=%f, g2=%f, dA=%f, dB=%f, gd=%f\n",
a, b, g1, g2, dA, dB, gd);
}
}

if (it>=maxiter-1)
{
SG_DEBUG("reaching maximal iterations, g1=%f, g2=%f\n", g1, g2);
SG_WARNING("%s::scores_to_probabilities(): reaching maximal iterations,"
" g1=%f, g2=%f\n", g1, g2);
}

SG_DEBUG("fitted sigmoid: a=%f, b=%f\n", a, b);
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/labels/BinaryLabels.h
Expand Up @@ -31,6 +31,7 @@ namespace shogun
* scores_to_probabilities(), which implements the method described in
* Lin, H., Lin, C., and Weng, R. (2007).
* A note on Platt's probabilistic outputs for support vector machines.
* Should only be used in conjunction with SVM.
*/
class CBinaryLabels : public CDenseLabels
{
Expand Down Expand Up @@ -84,6 +85,7 @@ class CBinaryLabels : public CDenseLabels
* Lin, H., Lin, C., and Weng, R. (2007).
* A note on Platt's probabilistic outputs for support vector machines.
*
* Should only be used in conjunction with SVM.
* The fitted sigmoid is used to replace all confidence values.
*/
void scores_to_probabilities();
Expand Down

0 comments on commit 854ec32

Please sign in to comment.