Commit 7621cc19 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #9054 from zhmu:upstream

parents 4f01ad85 3ce1bca6
...@@ -403,7 +403,7 @@ public: ...@@ -403,7 +403,7 @@ public:
Mat(tempCatMap).copyTo(catMap); 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); preprocessCategorical(responses, &normCatResponses, labels, &counters, sortbuf);
Mat(labels).copyTo(classLabels); Mat(labels).copyTo(classLabels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment