Merge pull request #9054 from zhmu:upstream

This commit is contained in:
Alexander Alekhin 2017-07-03 16:04:11 +00:00
commit 7621cc19dc

View File

@ -403,7 +403,7 @@ public:
Mat(tempCatMap).copyTo(catMap);
}
if( varType.at<uchar>(ninputvars) == VAR_CATEGORICAL )
if( noutputvars > 0 && varType.at<uchar>(ninputvars) == VAR_CATEGORICAL )
{
preprocessCategorical(responses, &normCatResponses, labels, &counters, sortbuf);
Mat(labels).copyTo(classLabels);