[problem]
At the start of the function:
//K can not be zero
if( K > totalNumSamples ){
errorLog << "spiltDataIntoKFolds(const UINT K,const bool useStratifiedSampling) - K can not be zero!" << std::endl;
return false;
}
is to compare K and zero, but here is totalNumSamples.
[Suggestion]
change the totalNumSamples to 0 to fix the problem.
[problem] At the start of the function: //K can not be zero if( K > totalNumSamples ){ errorLog << "spiltDataIntoKFolds(const UINT K,const bool useStratifiedSampling) - K can not be zero!" << std::endl; return false; } is to compare K and zero, but here is totalNumSamples.
[Suggestion] change the totalNumSamples to 0 to fix the problem.