Home | History | Annotate | Download | only in src

Lines Matching refs:params

198     params = 0;
218 params = _params;
222 calc_func = params->kernel_type == CvSVM::RBF ? &CvSVMKernel::calc_rbf :
223 params->kernel_type == CvSVM::POLY ? &CvSVMKernel::calc_poly :
224 params->kernel_type == CvSVM::SIGMOID ? &CvSVMKernel::calc_sigmoid :
261 calc_non_rbf_base( vcount, var_count, vecs, another, results, params->gamma, params->coef0 );
262 cvPow( &R, &R, params->degree );
271 -2*params->gamma, -2*params->coef0 );
289 double gamma = -params->gamma;
423 eps = kernel->params->term_crit.epsilon;
424 max_iter = kernel->params->term_crit.max_iter;
432 svm_type = kernel->params->svm_type;
446 get_row_func = params->svm_type == CvSVM::EPS_SVR ||
447 params->svm_type == CvSVM::NU_SVR ? &CvSVMSolver::get_row_svr :
448 params->svm_type == CvSVM::C_SVC ||
449 params->svm_type == CvSVM::NU_SVC ? &CvSVMSolver::get_row_svc :
993 sum_pos = kernel->params->nu * sample_count * 0.5;
994 sum_neg = kernel->params->nu * sample_count * 0.5;
1033 double nu = _kernel->params->nu;
1064 double p = _kernel->params->p, C = _kernel->params->C;
1100 double C = _kernel->params->C, sum;
1109 sum = C * _kernel->params->nu * sample_count * 0.5;
1211 params = _params;
1213 kernel_type = params.kernel_type;
1214 svm_type = params.svm_type;
1221 params.gamma = 1;
1222 else if( params.gamma <= 0 )
1226 params.coef0 = 0;
1227 else if( params.coef0 < 0 )
1231 params.degree = 0;
1232 else if( params.degree <= 0 )
1241 params.C = 0;
1242 else if( params.C <= 0 )
1246 params.nu = 0;
1247 else if( params.nu <= 0 || params.nu >= 1 )
1251 params.p = 0;
1252 else if( params.p <= 0 )
1256 params.class_weights = 0;
1258 params.term_crit = cvCheckTermCriteria( params.term_crit, DBL_EPSILON, INT_MAX );
1259 params.term_crit.epsilon = MAX( params.term_crit.epsilon, DBL_EPSILON );
1271 kernel = new CvSVMKernel(&params,0);
1293 int svm_type = params.svm_type;
1367 if( svm_type == CvSVM::C_SVC && params.class_weights )
1369 const CvMat* cw = params.class_weights;
1374 CV_ERROR( CV_StsBadArg, "params.class_weights must be 1d floating-point vector "
1379 CV_CALL( cvScale( class_weights, class_weights, params.C ));
1409 if( params.nu*(ci + cj)*0.5 > MIN( ci, cj ) )
1425 double Cp = params.C, Cn = Cp;
1636 C_grid.min_val = C_grid.max_val = params.C;
1644 gamma_grid.min_val = gamma_grid.max_val = params.gamma;
1652 p_grid.min_val = p_grid.max_val = params.p;
1660 nu_grid.min_val = nu_grid.max_val = params.nu;
1668 coef_grid.min_val = coef_grid.max_val = params.coef0;
1676 degree_grid.min_val = degree_grid.max_val = params.degree;
1683 if( params.kernel_type != CvSVM::POLY )
1684 degree_grid.min_val = degree_grid.max_val = params.degree;
1685 if( params.kernel_type == CvSVM::LINEAR )
1686 gamma_grid.min_val = gamma_grid.max_val = params.gamma;
1687 if( params.kernel_type != CvSVM::POLY && params.kernel_type != CvSVM::SIGMOID )
1688 coef_grid.min_val = coef_grid.max_val = params.coef0;
1690 C_grid.min_val = C_grid.max_val = params.C;
1692 nu_grid.min_val = nu_grid.max_val = params.nu;
1694 p_grid.min_val = p_grid.max_val = params.p;
1758 params.C = C;
1762 params.gamma = gamma;
1766 params.p = p;
1770 params.nu = nu;
1774 params.coef0 = coef;
1778 params.degree = degree;
1852 params.C = best_C;
1853 params.nu = best_nu;
1854 params.p = best_p;
1855 params.gamma = best_gamma;
1856 params.degree = best_degree;
1857 params.coef0 = best_coef;
1895 params.svm_type == ONE_CLASS ? 1 : 0;
1911 if( params.svm_type == EPS_SVR ||
1912 params.svm_type == NU_SVR ||
1913 params.svm_type == ONE_CLASS )
1923 result = params.svm_type == ONE_CLASS ? (float)(sum > 0) : (float)sum;
1925 else if( params.svm_type == C_SVC ||
1926 params.svm_type == NU_SVC )
1978 int svm_type = params.svm_type;
1979 int kernel_type = params.kernel_type;
2007 cvWriteReal( fs, "degree", params.degree );
2010 cvWriteReal( fs, "gamma", params.gamma );
2013 cvWriteReal( fs, "coef0", params.coef0 );
2019 cvWriteReal( fs, "C", params.C );
2023 cvWriteReal( fs, "nu", params.nu );
2026 cvWriteReal( fs, "p", params.p );
2029 if( params.term_crit.type & CV_TERMCRIT_EPS )
2030 cvWriteReal( fs, "epsilon", params.term_crit.epsilon );
2031 if( params.term_crit.type & CV_TERMCRIT_ITER )
2032 cvWriteInt( fs, "iterations", params.term_crit.max_iter );
2056 params.svm_type == CvSVM::ONE_CLASS ? 1 : 0;
2341 dst->params = src->params;
2342 dst->params.weight_labels = 0;
2343 dst->params.weights = 0;
2355 src->params.svm_type == CvSVM::ONE_CLASS ? 1 : 0;