diff --git a/src/Native/FastTreeNative/ExpandFloatType.cpp b/src/Native/FastTreeNative/ExpandFloatType.cpp index b476de02d5..a1b817c3ec 100644 --- a/src/Native/FastTreeNative/ExpandFloatType.cpp +++ b/src/Native/FastTreeNative/ExpandFloatType.cpp @@ -16,7 +16,8 @@ #include "SumupOneBit.h" // Ideally we should expand this using C++ templates. -// However, In order to exporting functions from DLL float and double versions need to have different names (cannot be overloaded on type parameters)// Expanding here with ugly pre-processor macros to get double and float versions (with fucntion mes suffixes _float and _double) +// However, in order to export functions from DLL, float and double versions need to have different names (cannot be overloaded on type parameters) +// Expanding here with ugly pre-processor macros to get double and float versions (with function name suffixes _float and _double) // --andrzejp, 2010-03-05 #define FloatType float diff --git a/src/Native/FastTreeNative/getderivatives.cpp b/src/Native/FastTreeNative/getderivatives.cpp index fe6f64b545..b726a0d19f 100644 --- a/src/Native/FastTreeNative/getderivatives.cpp +++ b/src/Native/FastTreeNative/getderivatives.cpp @@ -106,7 +106,7 @@ EXPORT_API(void) C_GetDerivatives( bool sameLabel = labelHigh == pLabels[low]; - // calculate the lambdaP for this pair by looking it up in the lambdaTable (computed in LambdaMart.FillLambdaTable) + // calculate the lambdaP for this pair by looking it up in the sigmoidTable (e.g. computed in FastTreeRanking.FillSigmoidTable) double lambdaP; if (scoreHighMinusLow <= minScore) lambdaP = sigmoidTable[0]; else if (scoreHighMinusLow >= maxScore) lambdaP = sigmoidTable[sigmoidTableLength - 1];