![]() |
KSquare Utilities
|
#include <svm2.h>
Public Member Functions | |
| svm_parameter () | |
| svm_parameter (const svm_parameter &_param) | |
| svm_parameter (KKStr ¶mStr) | |
| ~svm_parameter () | |
| void | Cost (double _cost) |
| double | Cost () const |
| void | Gamma (double _gamma) |
| double | Gamma () const |
| void | KernalType (Kernel_Type _kernalType) |
| Kernel_Type | KernalType () const |
| svm_parameter & | operator= (const svm_parameter &right) |
| void | ParseTabDelStr (const KKStr &_str) |
| void | ProcessSvmParameter (const KKStr &cmd, const KKStr &value, bool &parmUsed) |
| void | SvmType (SVM_Type _svm_type) |
| SVM_Type | SvmType () const |
| KKStr | ToCmdLineStr () const |
| KKStr | ToTabDelStr () const |
Public Attributes | |
| double | C |
| double | cache_size |
| double | coef0 |
| kkint32 | degree |
| double | eps |
| double | gamma |
| Kernel_Type | kernel_type |
| kkint32 | nr_weight |
| double | nu |
| double | p |
| kkint32 | probability |
| double | probParam |
| kkint32 | shrinking |
| SVM_Type | svm_type |
| double * | weight |
| kkint32 * | weight_label |
Static Public Attributes | |
| static const char * | kernel_type_table [] |
| static const char * | svm_type_table [] |
| SVM289_MFS::svm_parameter::svm_parameter | ( | ) |
Definition at line 177 of file svm2.cpp.
References C, SVM289_MFS::C_SVC, cache_size, coef0, degree, eps, gamma, kernel_type, nr_weight, nu, p, probability, probParam, SVM289_MFS::RBF, shrinking, svm_type, weight, and weight_label.
Referenced by KKMLL::ModelParamSvmBase::ModelParamSvmBase(), and SVM289_MFS::Svm_Model::Svm_Model().
| SVM289_MFS::svm_parameter::svm_parameter | ( | const svm_parameter & | _param | ) |
Definition at line 198 of file svm2.cpp.
References C, cache_size, coef0, degree, eps, gamma, kernel_type, nr_weight, nu, p, probability, probParam, shrinking, svm_type, weight, and weight_label.
Referenced by KKMLL::ModelParamSvmBase::ModelParamSvmBase(), and SVM289_MFS::Svm_Model::Svm_Model().
| SVM289_MFS::svm_parameter::svm_parameter | ( | KKStr & | paramStr | ) |
Definition at line 233 of file svm2.cpp.
References C, SVM289_MFS::C_SVC, cache_size, coef0, degree, eps, gamma, kernel_type, nr_weight, nu, p, probability, probParam, SVM289_MFS::RBF, shrinking, svm_type, weight, and weight_label.
| SVM289_MFS::svm_parameter::~svm_parameter | ( | ) |
|
inline |
Definition at line 109 of file svm2.h.
References C.
Referenced by KKMLL::ModelParamSvmBase::Cost(), and KKMLL::ModelParamSvmBase::ModelParamSvmBase().
|
inline |
Definition at line 114 of file svm2.h.
References C.
Referenced by KKMLL::ModelParamSvmBase::Cost().
|
inline |
Definition at line 110 of file svm2.h.
References gamma.
Referenced by KKMLL::ModelParamSvmBase::Gamma(), and KKMLL::ModelParamSvmBase::ModelParamSvmBase().
|
inline |
Definition at line 115 of file svm2.h.
References gamma.
Referenced by KKMLL::ModelParamSvmBase::Gamma().
|
inline |
Definition at line 111 of file svm2.h.
References kernel_type.
Referenced by KKMLL::ModelParamSvmBase::KernalType(), and KKMLL::ModelParamSvmBase::ModelParamSvmBase().
|
inline |
Definition at line 116 of file svm2.h.
References kernel_type.
Referenced by KKMLL::ModelParamSvmBase::KernalType().
| svm_parameter & SVM289_MFS::svm_parameter::operator= | ( | const svm_parameter & | right | ) |
Definition at line 264 of file svm2.cpp.
References C, cache_size, coef0, degree, eps, gamma, kernel_type, nr_weight, nu, p, probability, probParam, shrinking, svm_type, weight, and weight_label.
| void SVM289_MFS::svm_parameter::ParseTabDelStr | ( | const KKStr & | _str | ) |
Definition at line 452 of file svm2.cpp.
References C, cache_size, coef0, KKB::KKStr::Concat(), degree, KKB::KKStr::Empty(), eps, KKB::KKStr::EqualIgnoreCase(), KKB::KKStr::ExtractToken2(), KKB::KKStr::ExtractTokenDouble(), KKB::KKStr::ExtractTokenInt(), gamma, kernel_type, SVM289_MFS::Kernel_Type_FromStr(), nr_weight, nu, KKB::KKStr::operator==(), p, probability, probParam, shrinking, svm_type, SVM289_MFS::SVM_Type_FromStr(), KKB::KKStr::ToDouble(), KKB::KKStr::ToFloat(), KKB::KKStr::ToInt(), weight, and weight_label.
| void SVM289_MFS::svm_parameter::ProcessSvmParameter | ( | const KKStr & | cmd, |
| const KKStr & | value, | ||
| bool & | parmUsed | ||
| ) |
Definition at line 330 of file svm2.cpp.
References C, cache_size, coef0, degree, eps, KKB::KKStr::EqualIgnoreCase(), gamma, kernel_type, SVM289_MFS::Kernel_Type_FromStr(), nr_weight, nu, p, probability, probParam, shrinking, svm_type, SVM289_MFS::SVM_Type_FromStr(), KKB::KKStr::ToBool(), KKB::KKStr::ToDouble(), and weight.
|
inline |
Definition at line 112 of file svm2.h.
References svm_type.
Referenced by KKMLL::ModelParamSvmBase::ModelParamSvmBase(), and KKMLL::ModelParamSvmBase::SvmType().
|
inline |
Definition at line 117 of file svm2.h.
References svm_type.
Referenced by KKMLL::ModelParamSvmBase::SvmType().
| KKStr SVM289_MFS::svm_parameter::ToCmdLineStr | ( | ) | const |
Definition at line 302 of file svm2.cpp.
References C, cache_size, coef0, KKB::KKStr::Concat(), degree, eps, gamma, kernel_type, KKB::KKStr::KKStr(), nu, p, probability, probParam, shrinking, and svm_type.
Referenced by KKMLL::ModelParamSvmBase::ToCmdLineStr().
| KKStr SVM289_MFS::svm_parameter::ToTabDelStr | ( | ) | const |
Definition at line 406 of file svm2.cpp.
References C, cache_size, coef0, KKB::KKStr::Concat(), degree, eps, gamma, kernel_type, SVM289_MFS::Kernel_Type_ToStr(), KKB::KKStr::KKStr(), nr_weight, nu, p, probability, probParam, shrinking, svm_type, SVM289_MFS::SVM_Type_ToStr(), weight, and weight_label.
Referenced by KKMLL::ModelParamSvmBase::WriteXML().
| double SVM289_MFS::svm_parameter::C |
Definition at line 140 of file svm2.h.
Referenced by Cost(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::solve_epsilon_svr(), solve_nu_svr(), svm_binary_svc_probability(), svm_check_parameter(), svm_parameter(), SVM289_MFS::svm_train(), ToCmdLineStr(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::cache_size |
Definition at line 138 of file svm2.h.
Referenced by SVM289_MFS::ONE_CLASS_Q::ONE_CLASS_Q(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::SVC_Q::SVC_Q(), svm_check_parameter(), svm_parameter(), SVM289_MFS::SVR_Q::SVR_Q(), ToCmdLineStr(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::coef0 |
Definition at line 135 of file svm2.h.
Referenced by SVM289_MFS::Kernel::k_function(), SVM289_MFS::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::Svm_Model::ReadXML(), svm_parameter(), ToCmdLineStr(), ToTabDelStr(), and SVM289_MFS::Svm_Model::WriteXML().
| kkint32 SVM289_MFS::svm_parameter::degree |
Definition at line 133 of file svm2.h.
Referenced by SVM289_MFS::Kernel::k_function(), SVM289_MFS::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::Svm_Model::ReadXML(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), ToTabDelStr(), and SVM289_MFS::Svm_Model::WriteXML().
| double SVM289_MFS::svm_parameter::eps |
Definition at line 139 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::solve_c_svc(), SVM289_MFS::solve_epsilon_svr(), SVM289_MFS::solve_nu_svc(), solve_nu_svr(), SVM289_MFS::solve_one_class(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::gamma |
Definition at line 134 of file svm2.h.
Referenced by Gamma(), SVM289_MFS::Kernel::k_function(), SVM289_MFS::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::Svm_Model::ReadXML(), svm_parameter(), ToCmdLineStr(), ToTabDelStr(), and SVM289_MFS::Svm_Model::WriteXML().
| Kernel_Type SVM289_MFS::svm_parameter::kernel_type |
Definition at line 132 of file svm2.h.
Referenced by SVM289_MFS::Kernel::k_function(), KernalType(), SVM289_MFS::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::Svm_Model::ReadXML(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), ToTabDelStr(), and SVM289_MFS::Svm_Model::WriteXML().
|
static |
| kkint32 SVM289_MFS::svm_parameter::nr_weight |
Definition at line 141 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_binary_svc_probability(), svm_parameter(), SVM289_MFS::svm_train(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::nu |
Definition at line 144 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::solve_nu_svc(), solve_nu_svr(), SVM289_MFS::solve_one_class(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::p |
Definition at line 145 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::solve_epsilon_svr(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM289_MFS::svm_parameter::probability |
Definition at line 147 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_binary_svc_probability(), svm_check_parameter(), SVM289_MFS::svm_cross_validation(), svm_parameter(), svm_svr_probability(), SVM289_MFS::svm_train(), ToCmdLineStr(), and ToTabDelStr().
| double SVM289_MFS::svm_parameter::probParam |
Definition at line 149 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), SVM289_MFS::svm_predict_probability(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM289_MFS::svm_parameter::shrinking |
Definition at line 146 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::solve_c_svc(), SVM289_MFS::solve_epsilon_svr(), SVM289_MFS::solve_nu_svc(), solve_nu_svr(), SVM289_MFS::solve_one_class(), svm_check_parameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| SVM_Type SVM289_MFS::svm_parameter::svm_type |
Definition at line 131 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM289_MFS::Svm_Model::ReadXML(), svm_check_parameter(), svm_check_probability_model(), SVM289_MFS::svm_cross_validation(), svm_get_svm_type(), svm_get_svr_probability(), svm_parameter(), SVM289_MFS::svm_predict_probability(), SVM289_MFS::svm_predict_values(), SVM289_MFS::svm_train(), SVM289_MFS::svm_train_one(), SvmType(), ToCmdLineStr(), ToTabDelStr(), and SVM289_MFS::Svm_Model::WriteXML().
|
static |
| double* SVM289_MFS::svm_parameter::weight |
Definition at line 143 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_binary_svc_probability(), svm_parameter(), SVM289_MFS::svm_train(), ToTabDelStr(), and ~svm_parameter().
| kkint32* SVM289_MFS::svm_parameter::weight_label |
Definition at line 142 of file svm2.h.
Referenced by operator=(), ParseTabDelStr(), svm_binary_svc_probability(), svm_parameter(), SVM289_MFS::svm_train(), ToTabDelStr(), and ~svm_parameter().