Home
last modified time | relevance | path

Searched refs:new_responses (Results 1 – 5 of 5) sorted by relevance

/external/opencv3/samples/python2/
Dletter_recog.py54 new_responses = np.zeros(sample_n*self.class_n, np.int32)
56 new_responses[resp_idx] = 1
57 return new_responses
93 new_responses = self.unroll_responses(responses)
97 …self.model.train(new_samples, cv2.CV_ROW_SAMPLE, new_responses, varType = var_types, params=params)
126 new_responses = self.unroll_responses(responses).reshape(-1, self.class_n)
136 self.model.train(samples, np.float32(new_responses), None, params = params)
/external/opencv3/modules/ml/test/
Dtest_mltests2.cpp120 Mat new_responses = Mat::zeros( nresponses, cls_count, CV_32F ); in ann_get_new_responses() local
126 new_responses.at<float>(sidx, cidx) = 1.f; in ann_get_new_responses()
128 return new_responses; in ann_get_new_responses()
352 Mat new_responses = ann_get_new_responses( data, cls_map ); in train() local
354 data = TrainData::create(data->getSamples(), data->getLayout(), new_responses, in train()
/external/opencv3/modules/ml/src/
Dknearest.cpp77 Mat new_responses; in train() local
78 data->getTrainResponses().convertTo(new_responses, CV_32F); in train()
90 new_responses.cols == responses.cols ); in train()
94 responses.push_back(new_responses); in train()
Dgbt.cpp194 CvMat* new_responses = cvCreateMat( n, 1, CV_32F);
195 cvZero(new_responses);
197 data = new CvDTreeTrainData( _train_data, _tflag, new_responses, _var_idx,
407 cvReleaseMat(&new_responses);
/external/opencv3/samples/cpp/
Dletter_recog.cpp260 Mat new_responses( ntrain_samples*class_count, 1, CV_32S ); in build_boost_classifier() local
272 new_responses.at<int>(i*class_count + j) = responses.at<int>(i) == j+'A'; in build_boost_classifier()
280 Ptr<TrainData> tdata = TrainData::create(new_data, ROW_SAMPLE, new_responses, in build_boost_classifier()