Commit 36bf764a authored by Davis King's avatar Davis King

renamed function

parent a2ae46cd
...@@ -559,7 +559,7 @@ namespace dlib ...@@ -559,7 +559,7 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
inline double platt_score ( inline double platt_scale (
const std::pair<double,double>& params, const std::pair<double,double>& params,
const double score const double score
) )
......
...@@ -132,7 +132,7 @@ namespace dlib ...@@ -132,7 +132,7 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
inline double platt_score ( inline double platt_scale (
const std::pair<double,double>& params, const std::pair<double,double>& params,
const double score const double score
); );
...@@ -156,7 +156,7 @@ namespace dlib ...@@ -156,7 +156,7 @@ namespace dlib
- This function learns to map scalar values into well calibrated probabilities - This function learns to map scalar values into well calibrated probabilities
using Platt scaling. In particular, it returns a params object such that: using Platt scaling. In particular, it returns a params object such that:
- for all valid i: - for all valid i:
- platt_score(params,scores[i]) == the scaled version of the scalar value - platt_scale(params,scores[i]) == the scaled version of the scalar value
scores[i]. That is, the output is a number between 0 and 1. scores[i]. That is, the output is a number between 0 and 1.
- This function is an implementation of the algorithm described in the following - This function is an implementation of the algorithm described in the following
papers: papers:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment