From f15e4e58d644f2ec5b0dd0cef6ba69e918a0177a Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 4 Jul 2019 13:54:35 -0400 Subject: [PATCH] Fixed grammar in comments --- dlib/optimization/isotonic_regression.h | 2 +- dlib/optimization/isotonic_regression_abstract.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlib/optimization/isotonic_regression.h b/dlib/optimization/isotonic_regression.h index e89e70b48..4f14299c9 100644 --- a/dlib/optimization/isotonic_regression.h +++ b/dlib/optimization/isotonic_regression.h @@ -60,7 +60,7 @@ namespace dlib // Unpack blocks to output, but here instead of producing the step function // output we linearly interpolate. Note that this actually fits the data less // than the step-function, but in many applications might be closer to what you - // really when when using isotonic_regression than the step function. + // really want when using isotonic_regression than the step function. for (size_t i = 0; i < blocks.size(); ++i) { auto& block = blocks[i]; diff --git a/dlib/optimization/isotonic_regression_abstract.h b/dlib/optimization/isotonic_regression_abstract.h index b00334bef..38cff2a44 100644 --- a/dlib/optimization/isotonic_regression_abstract.h +++ b/dlib/optimization/isotonic_regression_abstract.h @@ -34,7 +34,7 @@ namespace dlib requires - [begin,end) is an iterator range of float or doubles or a range of std::pair or std::pair where T an be anything. - - obegin points to an iterator range at least std::distance(begin,end). + - obegin points to an iterator range at least std::distance(begin,end) elements. - obegin points to an iterator range of objects of type float, double, std::pair, or std::pair. ensures - Given the range of real values stored in [begin,end), this method performs isotonic regression @@ -91,7 +91,7 @@ namespace dlib - obegin points to an iterator range of objects of type float, double, std::pair, or std::pair. ensures - This function behaves just like (*this)(begin,end,obegin) except that the - output is interpolated. To explain, not that the optimal output of + output is interpolated. To explain, note that the optimal output of isotonic regression is a step function. However, in many applications that isn't really what you want. You want something smoother. So fit_with_linear_output_interpolation() does isotonic regression and then