Lines Matching refs:responses
47 vector<int> responses; in read_num_class_data() local
64 responses.push_back((int)buf[0]); in read_num_class_data()
77 Mat(responses).copyTo(*_responses); in read_num_class_data()
98 prepare_train_data(const Mat& data, const Mat& responses, int ntrain_samples) in prepare_train_data() argument
109 return TrainData::create(data, ROW_SAMPLE, responses, in prepare_train_data()
119 const Mat& data, const Mat& responses, in test_and_save_classifier() argument
132 r = std::abs(r + rdelta - responses.at<int>(i)) <= FLT_EPSILON ? 1.f : 0.f; in test_and_save_classifier()
159 Mat responses; in build_rtrees_classifier() local
160 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_rtrees_classifier()
186 Ptr<TrainData> tdata = prepare_train_data(data, responses, ntrain_samples); in build_rtrees_classifier()
201 test_and_save_classifier(model, data, responses, ntrain_samples, 0, filename_to_save); in build_rtrees_classifier()
226 Mat responses; in build_boost_classifier() local
229 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_boost_classifier()
272 new_responses.at<int>(i*class_count + j) = responses.at<int>(i) == j+'A'; in build_boost_classifier()
322 double r = std::abs(best_class - responses.at<int>(i)) < FLT_EPSILON ? 1 : 0; in build_boost_classifier()
351 Mat responses; in build_mlp_classifier() local
353 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_mlp_classifier()
389 int cls_label = responses.at<int>(i) - 'A'; in build_mlp_classifier()
420 test_and_save_classifier(model, data, responses, ntrain_samples, 'A', filename_to_save); in build_mlp_classifier()
428 Mat responses; in build_knearest_classifier() local
429 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_knearest_classifier()
439 Ptr<TrainData> tdata = prepare_train_data(data, responses, ntrain_samples); in build_knearest_classifier()
446 test_and_save_classifier(model, data, responses, ntrain_samples, 0, string()); in build_knearest_classifier()
454 Mat responses; in build_nbayes_classifier() local
455 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_nbayes_classifier()
466 Ptr<TrainData> tdata = prepare_train_data(data, responses, ntrain_samples); in build_nbayes_classifier()
471 test_and_save_classifier(model, data, responses, ntrain_samples, 0, string()); in build_nbayes_classifier()
481 Mat responses; in build_svm_classifier() local
482 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_svm_classifier()
503 Ptr<TrainData> tdata = prepare_train_data(data, responses, ntrain_samples); in build_svm_classifier()
512 test_and_save_classifier(model, data, responses, ntrain_samples, 0, filename_to_save); in build_svm_classifier()