diff --git a/modules/ml/src/data.cpp b/modules/ml/src/data.cpp index b78b0d055..61aae4694 100644 --- a/modules/ml/src/data.cpp +++ b/modules/ml/src/data.cpp @@ -637,7 +637,7 @@ public: } //If there are responses in the csv file, save them. If not, responses matrix will contain just zeros - if (noutputvars != 0){ + if (noutputvars != 0){ Mat(nsamples, noutputvars, CV_32F, &allresponses[0]).copyTo(tempResponses); setData(tempSamples, ROW_SAMPLE, tempResponses, noArray(), noArray(), noArray(), Mat(vtypes).clone(), tempMissing);