Home | History | Annotate | Download | only in src

Lines Matching defs:_params

208 CvSVMKernel::CvSVMKernel( const CvSVMParams* _params, Calc _calc_func )
211 create( _params, _calc_func );
215 bool CvSVMKernel::create( const CvSVMParams* _params, Calc _calc_func )
218 params = _params;
1174 const CvMat* _var_idx, const CvMat* _sample_idx, CvSVMParams _params )
1185 train( _train_data, _responses, _var_idx, _sample_idx, _params );
1201 bool CvSVM::set_params( const CvSVMParams& _params )
1211 params = _params;
1526 const CvMat* _var_idx, const CvMat* _sample_idx, CvSVMParams _params )
1542 CV_CALL( set_params( _params ));
1544 svm_type = _params.svm_type;
1591 const CvMat* _var_idx, const CvMat* _sample_idx, CvSVMParams _params, int k_fold,
1617 if( _params.svm_type == CvSVM::ONE_CLASS )
1619 if(!train( _train_data, _responses, _var_idx, _sample_idx, _params ))
1629 CV_CALL(set_params( _params ));
1630 svm_type = _params.svm_type;
2122 CvSVMParams _params;
2168 _params.svm_type = svm_type;
2169 _params.kernel_type = kernel_type;
2170 _params.degree = cvReadRealByName( fs, kernel_node, "degree", 0 );
2171 _params.gamma = cvReadRealByName( fs, kernel_node, "gamma", 0 );
2172 _params.coef0 = cvReadRealByName( fs, kernel_node, "coef0", 0 );
2174 _params.C = cvReadRealByName( fs, svm_node, "C", 0 );
2175 _params.nu = cvReadRealByName( fs, svm_node, "nu", 0 );
2176 _params.p = cvReadRealByName( fs, svm_node, "p", 0 );
2177 _params.class_weights = 0;
2182 _params.term_crit.epsilon = cvReadRealByName( fs, tmp_node, "epsilon", -1. );
2183 _params.term_crit.max_iter = cvReadIntByName( fs, tmp_node, "iterations", -1 );
2184 _params.term_crit.type = (_params
2185 (_params.term_crit.max_iter >= 0 ? CV_TERMCRIT_ITER : 0);
2188 _params.term_crit = cvTermCriteria( CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 1000, FLT_EPSILON );
2190 set_params( _params );