Lines Matching refs:CvSVM

123 CvParamGrid CvSVM::get_default_grid( int param_id )  in get_default_grid()
126 if( param_id == CvSVM::C ) in get_default_grid()
132 else if( param_id == CvSVM::GAMMA ) in get_default_grid()
138 else if( param_id == CvSVM::P ) in get_default_grid()
144 else if( param_id == CvSVM::NU ) in get_default_grid()
150 else if( param_id == CvSVM::COEF ) in get_default_grid()
156 else if( param_id == CvSVM::DEGREE ) in get_default_grid()
170 svm_type(CvSVM::C_SVC), kernel_type(CvSVM::RBF), degree(0), in CvSVMParams()
222 calc_func = params->kernel_type == CvSVM::RBF ? &CvSVMKernel::calc_rbf : in create()
223 params->kernel_type == CvSVM::POLY ? &CvSVMKernel::calc_poly : in create()
224 params->kernel_type == CvSVM::SIGMOID ? &CvSVMKernel::calc_sigmoid : in create()
436 select_working_set_func = svm_type == CvSVM::NU_SVC || svm_type == CvSVM::NU_SVR ? in create()
441 calc_rho_func = svm_type == CvSVM::NU_SVC || svm_type == CvSVM::NU_SVR ? in create()
446 get_row_func = params->svm_type == CvSVM::EPS_SVR || in create()
447 params->svm_type == CvSVM::NU_SVR ? &CvSVMSolver::get_row_svr : in create()
448 params->svm_type == CvSVM::C_SVC || in create()
449 params->svm_type == CvSVM::NU_SVC ? &CvSVMSolver::get_row_svc : in create()
1135 CvSVM::CvSVM() in CvSVM() function in CvSVM
1150 CvSVM::~CvSVM() in ~CvSVM()
1156 void CvSVM::clear() in clear()
1173 CvSVM::CvSVM( const CvMat* _train_data, const CvMat* _responses, in CvSVM() function in CvSVM
1189 int CvSVM::get_support_vector_count() const in get_support_vector_count()
1195 const float* CvSVM::get_support_vector(int i) const in get_support_vector()
1201 bool CvSVM::set_params( const CvSVMParams& _params ) in set_params()
1269 void CvSVM::create_kernel() in create_kernel()
1275 void CvSVM::create_solver( ) in create_solver()
1282 bool CvSVM::train1( int sample_count, int var_count, const float** samples, in train1()
1316 bool CvSVM::do_train( int svm_type, int sample_count, int var_count, const float** samples, in do_train()
1365 assert( svm_type == CvSVM::C_SVC || svm_type == CvSVM::NU_SVC ); in do_train()
1367 if( svm_type == CvSVM::C_SVC && params.class_weights ) in do_train()
1525 bool CvSVM::train( const CvMat* _train_data, const CvMat* _responses, in train()
1548 svm_type != CvSVM::ONE_CLASS ? _responses : 0, in train()
1549 svm_type == CvSVM::C_SVC || in train()
1550 svm_type == CvSVM::NU_SVC ? CV_VAR_CATEGORICAL : in train()
1590 bool CvSVM::train_auto( const CvMat* _train_data, const CvMat* _responses, in train_auto()
1617 if( _params.svm_type == CvSVM::ONE_CLASS ) in train_auto()
1683 if( params.kernel_type != CvSVM::POLY ) in train_auto()
1685 if( params.kernel_type == CvSVM::LINEAR ) in train_auto()
1687 if( params.kernel_type != CvSVM::POLY && params.kernel_type != CvSVM::SIGMOID ) in train_auto()
1689 if( svm_type == CvSVM::NU_SVC || svm_type == CvSVM::ONE_CLASS ) in train_auto()
1691 if( svm_type == CvSVM::C_SVC || svm_type == CvSVM::EPS_SVR ) in train_auto()
1693 if( svm_type != CvSVM::EPS_SVR ) in train_auto()
1701 svm_type != CvSVM::ONE_CLASS ? _responses : 0, in train_auto()
1702 svm_type == CvSVM::C_SVC || in train_auto()
1703 svm_type == CvSVM::NU_SVC ? CV_VAR_CATEGORICAL : in train_auto()
1877 float CvSVM::predict( const CvMat* sample ) const in predict()
1972 void CvSVM::write_params( CvFileStorage* fs ) in write_params()
1982 svm_type == CvSVM::C_SVC ? "C_SVC" : in write_params()
1983 svm_type == CvSVM::NU_SVC ? "NU_SVC" : in write_params()
1984 svm_type == CvSVM::ONE_CLASS ? "ONE_CLASS" : in write_params()
1985 svm_type == CvSVM::EPS_SVR ? "EPS_SVR" : in write_params()
1986 svm_type == CvSVM::NU_SVR ? "NU_SVR" : 0; in write_params()
1988 kernel_type == CvSVM::LINEAR ? "LINEAR" : in write_params()
1989 kernel_type == CvSVM::POLY ? "POLY" : in write_params()
1990 kernel_type == CvSVM::RBF ? "RBF" : in write_params()
1991 kernel_type == CvSVM::SIGMOID ? "SIGMOID" : 0; in write_params()
2006 if( kernel_type == CvSVM::POLY || !kernel_type_str ) in write_params()
2009 if( kernel_type != CvSVM::LINEAR || !kernel_type_str ) in write_params()
2012 if( kernel_type == CvSVM::POLY || kernel_type == CvSVM::SIGMOID || !kernel_type_str ) in write_params()
2017 if( svm_type == CvSVM::C_SVC || svm_type == CvSVM::EPS_SVR || in write_params()
2018 svm_type == CvSVM::NU_SVR || !svm_type_str ) in write_params()
2021 if( svm_type == CvSVM::NU_SVC || svm_type == CvSVM::ONE_CLASS || in write_params()
2022 svm_type == CvSVM::NU_SVR || !svm_type_str ) in write_params()
2025 if( svm_type == CvSVM::EPS_SVR || !svm_type_str ) in write_params()
2039 void CvSVM::write( CvFileStorage* fs, const char* name ) in write()
2056 params.svm_type == CvSVM::ONE_CLASS ? 1 : 0; in write()
2115 void CvSVM::read_params( CvFileStorage* fs, CvFileNode* svm_node ) in read_params()
2135 strcmp( svm_type_str, "C_SVC" ) == 0 ? CvSVM::C_SVC : in read_params()
2136 strcmp( svm_type_str, "NU_SVC" ) == 0 ? CvSVM::NU_SVC : in read_params()
2137 strcmp( svm_type_str, "ONE_CLASS" ) == 0 ? CvSVM::ONE_CLASS : in read_params()
2138 strcmp( svm_type_str, "EPS_SVR" ) == 0 ? CvSVM::EPS_SVR : in read_params()
2139 strcmp( svm_type_str, "NU_SVR" ) == 0 ? CvSVM::NU_SVR : -1; in read_params()
2159 strcmp( kernel_type_str, "LINEAR" ) == 0 ? CvSVM::LINEAR : in read_params()
2160 strcmp( kernel_type_str, "POLY" ) == 0 ? CvSVM::POLY : in read_params()
2161 strcmp( kernel_type_str, "RBF" ) == 0 ? CvSVM::RBF : in read_params()
2162 strcmp( kernel_type_str, "SIGMOID" ) == 0 ? CvSVM::SIGMOID : -1; in read_params()
2196 void CvSVM::read( CvFileStorage* fs, CvFileNode* svm_node ) in read()
2355 src->params.svm_type == CvSVM::ONE_CLASS ? 1 : 0;
2598 if( kernel != CvSVM::POLY )
2601 if( kernel == CvSVM::LINEAR )
2604 if( kernel != CvSVM::POLY && kernel != CvSVM::SIGMOID )
2607 if( svm_type == CvSVM::NU_SVC || svm_type == CvSVM::ONE_CLASS )
2610 if( svm_type == CvSVM::C_SVC || svm_type == CvSVM::EPS_SVR )
2613 if( svm_type != CvSVM::EPS_SVR )