/external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/ |
D | non_linear_svms.cpp | 34 Mat trainData(2*NTRAINING_SAMPLES, 2, CV_32FC1); in main() local 44 Mat trainClass = trainData.rowRange(0, nLinearSamples); in main() 53 trainClass = trainData.rowRange(2*NTRAINING_SAMPLES-nLinearSamples, 2*NTRAINING_SAMPLES); in main() 65 trainClass = trainData.rowRange( nLinearSamples, 2*NTRAINING_SAMPLES-nLinearSamples); in main() 88 svm->train(trainData, ROW_SAMPLE, labels); in main() 114 px = trainData.at<float>(i,0); in main() 115 py = trainData.at<float>(i,1); in main() 121 px = trainData.at<float>(i,0); in main() 122 py = trainData.at<float>(i,1); in main()
|
/external/opencv3/apps/traincascade/ |
D | old_ml.hpp | 197 CvNormalBayesClassifier( const CvMat* trainData, const CvMat* responses, 200 virtual bool train( const CvMat* trainData, const CvMat* responses, 206 CV_WRAP CvNormalBayesClassifier( const cv::Mat& trainData, const cv::Mat& responses, 208 CV_WRAP virtual bool train( const cv::Mat& trainData, const cv::Mat& responses, 242 CvKNearest( const CvMat* trainData, const CvMat* responses, 245 virtual bool train( const CvMat* trainData, const CvMat* responses, 252 CV_WRAP CvKNearest( const cv::Mat& trainData, const cv::Mat& responses, 255 CV_WRAP virtual bool train( const cv::Mat& trainData, const cv::Mat& responses, 472 CvSVM( const CvMat* trainData, const CvMat* responses, 476 virtual bool train( const CvMat* trainData, const CvMat* responses, [all …]
|
/external/opencv3/modules/ml/test/ |
D | test_emknearestkmeans.cpp | 303 Mat trainData( pointsCount, 2, CV_32FC1 ), trainLabels; in run() local 308 generateData( trainData, trainLabels, sizes, means, covs, CV_32FC1, CV_32FC1 ); in run() 318 knearest->train(trainData, ml::ROW_SAMPLE, trainLabels); in run() 335 knearestKdt->train(trainData, ml::ROW_SAMPLE, trainLabels); in run() 383 const cv::Mat& trainData, const cv::Mat& trainLabels, 389 const cv::Mat& trainData, const cv::Mat& trainLabels, in runCase() argument 403 em->trainEM( trainData, noArray(), labels, noArray() ); in runCase() 405 em->trainE( trainData, *params.means, *params.covs, in runCase() 408 em->trainM( trainData, *params.probs, in runCase() 456 Mat trainData( pointsCount, 2, CV_64FC1 ), trainLabels; in run() local [all …]
|
/external/opencv3/modules/ml/src/ |
D | nbayes.cpp | 55 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 58 Mat responses = trainData->getNormCatResponses(); in train() 59 Mat __cls_labels = trainData->getClassLabels(); in train() 60 Mat __var_idx = trainData->getVarIdx(); in train() 61 Mat samples = trainData->getTrainSamples(); in train() 64 int nvars = trainData->getNVars(); in train() 67 int __nallvars = trainData->getNAllVars(); in train()
|
D | rtrees.cpp | 106 void startTraining( const Ptr<TrainData>& trainData, int flags ) in startTraining() argument 108 DTreesImpl::startTraining(trainData, flags); in startTraining() 126 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 128 startTraining(trainData, flags); in train() 380 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 382 return impl.train(trainData, flags); in train()
|
D | boost.cpp | 89 void startTraining( const Ptr<TrainData>& trainData, int flags ) in startTraining() argument 91 DTreesImpl::startTraining(trainData, flags); in startTraining() 185 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 187 startTraining(trainData, flags); in train() 470 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 472 return impl.train(trainData, flags); in train()
|
D | lr.cpp | 98 virtual bool train( const Ptr<TrainData>& trainData, int=0 ); 129 bool LogisticRegressionImpl::train(const Ptr<TrainData>& trainData, int) in train() argument 132 Mat _data_i = trainData->getSamples(); in train() 133 Mat _labels_i = trainData->getResponses(); in train()
|
D | precomp.hpp | 301 virtual void startTraining( const Ptr<TrainData>& trainData, int flags ); 304 virtual bool train( const Ptr<TrainData>& trainData, int flags );
|
D | gbt.cpp | 1320 CvGBTrees::CvGBTrees( const cv::Mat& trainData, int tflag, 1338 train(trainData, tflag, responses, varIdx, sampleIdx, varType, missingDataMask, _params, false); 1341 bool CvGBTrees::train( const cv::Mat& trainData, int tflag, 1348 CvMat _trainData = trainData, _responses = responses;
|
D | ann_mlp.cpp | 689 bool train( const Ptr<TrainData>& trainData, int flags ) in train() argument 695 Mat inputs = trainData->getTrainSamples(); in train() 696 Mat outputs = trainData->getTrainResponses(); in train() 697 Mat sw = trainData->getTrainSampleWeights(); in train()
|
D | tree.cpp | 224 bool DTreesImpl::train( const Ptr<TrainData>& trainData, int flags ) in train() argument 226 startTraining(trainData, flags); in train()
|
/external/opencv3/samples/cpp/ |
D | train_HOG.cpp | 15 void convert_to_ml(const std::vector< cv::Mat > & train_samples, cv::Mat& trainData ); 50 void convert_to_ml(const std::vector< cv::Mat > & train_samples, cv::Mat& trainData ) in convert_to_ml() argument 56 trainData = cv::Mat(rows, cols, CV_32FC1 ); in convert_to_ml() 66 tmp.copyTo( trainData.row( i ) ); in convert_to_ml() 70 itr->copyTo( trainData.row( i ) ); in convert_to_ml()
|
/external/opencv3/doc/py_tutorials/py_ml/py_knn/py_knn_understanding/ |
D | py_knn_understanding.markdown | 81 trainData = np.random.randint(0,100,(25,2)).astype(np.float32) 87 red = trainData[responses.ravel()==0] 91 blue = trainData[responses.ravel()==1] 99 Next initiate the kNN algorithm and pass the trainData and responses to train the kNN (It constructs 118 knn.train(trainData,responses)
|
/external/opencv3/doc/py_tutorials/py_ml/py_svm/py_svm_opencv/ |
D | py_svm_opencv.markdown | 97 # First half is trainData, remaining is testData 105 trainData = np.float32(hogdata).reshape(-1,64) 109 svm.train(trainData,responses, params=svm_params)
|
/external/opencv3/doc/py_tutorials/py_ml/py_knn/py_knn_opencv/ |
D | py_knn_opencv.markdown | 101 # split trainData and testData to features and responses 102 responses, trainData = np.hsplit(train,[1]) 107 knn.train(trainData, responses)
|
/external/opencv3/modules/ml/ |
D | precomp.hpp | 301 virtual void startTraining( const Ptr<TrainData>& trainData, int flags ); 304 virtual bool train( const Ptr<TrainData>& trainData, int flags );
|
/external/opencv/ml/src/ |
D | mlestimate.cpp | 153 const CvMat* trainData, 179 if (!CV_IS_MAT (trainData)) 197 CV_CALL (cvStatModelMultiPredict (model, trainData, sample_t_flag,
|
/external/opencv3/modules/ml/include/opencv2/ |
D | ml.hpp | 318 CV_WRAP virtual bool train( const Ptr<TrainData>& trainData, int flags=0 );
|