spelling, wording, and doc fixes in c++ code

I was reading through the code and fixing some things in the comments.
Only a few trivial actual code changes were made to make things more
readable.
This commit is contained in:
Vadim Khotilovich
2015-12-12 21:40:12 -06:00
parent c56c1b9482
commit c70022e6c4
27 changed files with 113 additions and 108 deletions

View File

@@ -84,7 +84,7 @@ struct LossType {
* \return second order gradient
*/
inline float SecondOrderGradient(float predt, float label) const {
// cap second order gradient to postive value
// cap second order gradient to positive value
const float eps = 1e-16f;
switch (loss_type) {
case kLinearSquare: return 1.0f;