![]() |
KSquare Utilities
|
#include <svm.h>
Public Member Functions | |
| svm_parameter () | |
| svm_parameter (const svm_parameter ¶meters) | |
| svm_parameter (KKStr ¶mStr) | |
| void | Gamma (double _gamma) |
| double | Gamma () const |
| void | KernalType (kkint32 _kernalType) |
| kkint32 | KernalType () const |
| kkint32 | MemoryConsumedEstimated () const |
| svm_parameter & | operator= (const svm_parameter &right) |
| void | ParseTabDelStr (const KKStr &_str) |
| void | ProcessSvmParameter (KKStr cmd, KKStr value, double valueNum, bool &parmUsed) |
| KKStr | ToCmdLineStr () const |
| KKStr | ToTabDelStr () const |
Public Attributes | |
| float | A |
| kkint32 | boosting |
| double | C |
| double | cache_size |
| float | cBoost |
| double | coef0 |
| double | confidence |
| double | degree |
| kkint32 | dim |
| kkint32 | dimSelect |
| double | eps |
| double * | featureWeight |
| double | gamma |
| kkint32 | hist |
| kkint32 | kernel_type |
| kkint32 | nr_class |
| kkint32 | nr_weight |
| double | nu |
| kkint32 | numSVM |
| double | p |
| kkint32 | probability |
| float | sample |
| kkint32 | sampleSV |
| kkint32 | shrinking |
| kkint32 | svm_type |
| float | threshold |
| double * | weight |
| kkint32 * | weight_label |
| svm_parameter::svm_parameter | ( | ) |
Definition at line 730 of file svm.cpp.
References A, boosting, C, SVM233::C_SVC, cache_size, cBoost, coef0, confidence, degree, dim, dimSelect, eps, featureWeight, gamma, hist, kernel_type, nr_class, nr_weight, nu, numSVM, p, probability, SVM233::RBF, sample, sampleSV, shrinking, svm_type, threshold, weight, and weight_label.
Referenced by KKMLL::SVMparam::SVMparam().
| svm_parameter::svm_parameter | ( | const svm_parameter & | parameters | ) |
Definition at line 768 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, confidence, degree, dim, dimSelect, eps, featureWeight, gamma, hist, kernel_type, nr_class, nr_weight, nu, numSVM, p, probability, sample, sampleSV, shrinking, svm_type, threshold, weight, and weight_label.
Referenced by KKMLL::BinaryClassParms::BinaryClassParms(), and KKMLL::SVMparam::SVMparam().
| svm_parameter::svm_parameter | ( | KKStr & | paramStr | ) |
Definition at line 983 of file svm.cpp.
References A, boosting, C, SVM233::C_SVC, cache_size, cBoost, coef0, KKB::KKStr::Concat(), confidence, degree, dim, dimSelect, KKB::KKStr::Empty(), eps, KKB::KKStr::ExtractToken(), featureWeight, gamma, hist, kernel_type, KKB::KKStr::Len(), nr_class, nr_weight, nu, numSVM, KKB::KKStr::operator=(), KKB::KKStr::operator==(), KKB::KKStr::operator[](), p, probability, ProcessSvmParameter(), sample, sampleSV, shrinking, svm_type, threshold, KKB::KKStr::TrimLeft(), weight, and weight_label.
Referenced by KKMLL::BinaryClassParms::CreateFromTabDelStr().
|
inline |
|
inline |
|
inline |
Definition at line 115 of file svm.h.
References kernel_type.
Referenced by KKMLL::SVMparam::KernalType().
|
inline |
Definition at line 118 of file svm.h.
References kernel_type.
Referenced by KKMLL::SVMparam::KernalType().
| kkint32 svm_parameter::MemoryConsumedEstimated | ( | ) | const |
Definition at line 886 of file svm.cpp.
References dim, featureWeight, nr_weight, and weight.
Referenced by KKMLL::BinaryClassParms::MemoryConsumedEstimated().
| svm_parameter & svm_parameter::operator= | ( | const svm_parameter & | right | ) |
Definition at line 828 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, confidence, degree, dim, dimSelect, eps, featureWeight, gamma, hist, kernel_type, nr_class, nr_weight, nu, numSVM, p, probability, sample, sampleSV, shrinking, svm_type, threshold, weight, and weight_label.
Referenced by KKMLL::BinaryClassParms::Param(), and KKMLL::SVMparam::SVMparam().
| void svm_parameter::ParseTabDelStr | ( | const KKStr & | _str | ) |
Definition at line 1176 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, KKB::KKStr::Concat(), confidence, degree, dim, dimSelect, KKB::KKStr::Empty(), eps, KKB::KKStr::ExtractToken2(), KKB::KKStr::ExtractTokenDouble(), KKB::KKStr::ExtractTokenInt(), featureWeight, gamma, hist, kernel_type, nr_class, nr_weight, nu, numSVM, KKB::KKStr::operator==(), p, probability, sample, sampleSV, shrinking, svm_type, threshold, KKB::KKStr::ToDouble(), KKB::KKStr::ToFloat(), KKB::KKStr::ToInt(), weight, and weight_label.
| void svm_parameter::ProcessSvmParameter | ( | KKStr | cmd, |
| KKStr | value, | ||
| double | valueNum, | ||
| bool & | parmUsed | ||
| ) |
Definition at line 900 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, confidence, degree, dimSelect, eps, gamma, hist, kernel_type, nr_weight, nu, numSVM, KKB::KKStr::operator==(), p, shrinking, KKB::KKStr::SubStrPart(), svm_type, threshold, KKB::KKStr::ToInt32(), KKB::KKStr::Upper(), weight, and weight_label.
Referenced by KKMLL::SVMparam::ParseCmdLineParameter(), and svm_parameter().
| KKStr svm_parameter::ToCmdLineStr | ( | ) | const |
Definition at line 1069 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, KKB::KKStr::Concat(), confidence, degree, dimSelect, eps, gamma, hist, kernel_type, KKB::KKStr::KKStr(), nu, numSVM, p, shrinking, svm_type, and threshold.
Referenced by KKMLL::ModelParamOldSVM::SvmParamToString(), KKMLL::SVMparam::SvmParamToString(), and KKMLL::BinaryClassParms::ToTabDelString().
| KKStr svm_parameter::ToTabDelStr | ( | ) | const |
Definition at line 1104 of file svm.cpp.
References A, boosting, C, cache_size, cBoost, coef0, KKB::KKStr::Concat(), confidence, degree, dim, dimSelect, eps, featureWeight, gamma, hist, kernel_type, KKB::KKStr::KKStr(), nr_class, nr_weight, nu, numSVM, p, probability, sample, sampleSV, shrinking, svm_type, threshold, weight, and weight_label.
Referenced by SVM233::SvmModel233::WriteXML(), and KKMLL::SVMparam::WriteXML().
| float SVM233::svm_parameter::A |
Definition at line 97 of file svm.h.
Referenced by KKMLL::SVMparam::A_Param(), KKMLL::BinaryClassParms::AParam(), KKMLL::SVMModel::FindWorstSupportVectors(), KKMLL::SVMModel::FindWorstSupportVectors2(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::boosting |
Definition at line 98 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), KKMLL::SvmTrainModel(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::C |
Definition at line 84 of file svm.h.
Referenced by KKMLL::BinaryClassParms::C(), KKMLL::ModelParamOldSVM::C_Param(), KKMLL::SVMparam::C_Param(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::solve_c_svc(), SVM233::solve_epsilon_svr(), SVM233::solve_nu_svr(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::cache_size |
Definition at line 85 of file svm.h.
Referenced by SVM233::ONE_CLASS_Q::ONE_CLASS_Q(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::SVC_Q::SVC_Q(), svm_parameter(), SVM233::SVR_Q::SVR_Q(), ToCmdLineStr(), and ToTabDelStr().
| float SVM233::svm_parameter::cBoost |
Definition at line 99 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::coef0 |
Definition at line 77 of file svm.h.
Referenced by SVM233::Kernel::k_function(), SVM233::Kernel::k_function_subspace(), SVM233::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::confidence |
Definition at line 100 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::degree |
Definition at line 78 of file svm.h.
Referenced by SVM233::Kernel::k_function(), SVM233::Kernel::k_function_subspace(), SVM233::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::dim |
Definition at line 101 of file svm.h.
Referenced by SVM233::Kernel::Kernel(), MemoryConsumedEstimated(), operator=(), ParseTabDelStr(), svm_parameter(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::dimSelect |
Definition at line 102 of file svm.h.
Referenced by SVM233::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), SVM233::svm_predictTwoClasses(), SVM233::svm_train_one(), KKMLL::SvmTrainModel(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::eps |
Definition at line 86 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::solve_c_svc(), SVM233::solve_epsilon_svr(), SVM233::solve_nu_svc(), SVM233::solve_nu_svr(), SVM233::solve_one_class(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double* SVM233::svm_parameter::featureWeight |
Definition at line 103 of file svm.h.
Referenced by MemoryConsumedEstimated(), operator=(), ParseTabDelStr(), svm_parameter(), SVM233::svm_train_one(), and ToTabDelStr().
| double SVM233::svm_parameter::gamma |
Definition at line 79 of file svm.h.
Referenced by KKMLL::BinaryClassParms::Gamma(), Gamma(), SVM233::Kernel::k_function(), SVM233::Kernel::k_function_subspace(), SVM233::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::hist |
Definition at line 104 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::kernel_type |
Definition at line 80 of file svm.h.
Referenced by SVM233::Kernel::k_function(), SVM233::Kernel::k_function_subspace(), KernalType(), SVM233::Kernel::Kernel(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::nr_class |
Definition at line 105 of file svm.h.
Referenced by KKMLL::SVMModel::FindWorstSupportVectors2(), operator=(), ParseTabDelStr(), svm_parameter(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::nr_weight |
Definition at line 87 of file svm.h.
Referenced by MemoryConsumedEstimated(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), and ToTabDelStr().
| double SVM233::svm_parameter::nu |
Definition at line 88 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::solve_nu_svc(), SVM233::solve_nu_svr(), SVM233::solve_one_class(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::numSVM |
Definition at line 106 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), KKMLL::SvmTrainModel(), ToCmdLineStr(), and ToTabDelStr().
| double SVM233::svm_parameter::p |
Definition at line 89 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::solve_epsilon_svr(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::probability |
Definition at line 90 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), svm_parameter(), and ToTabDelStr().
| float SVM233::svm_parameter::sample |
Definition at line 107 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), svm_parameter(), KKMLL::SvmTrainModel(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::sampleSV |
Definition at line 108 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), svm_parameter(), KKMLL::SvmTrainModel(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::shrinking |
Definition at line 91 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::solve_c_svc(), SVM233::solve_epsilon_svr(), SVM233::solve_nu_svc(), SVM233::solve_nu_svr(), SVM233::solve_one_class(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| kkint32 SVM233::svm_parameter::svm_type |
Definition at line 81 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), SVM233::svm_BuildProbFromTwoClassModel(), SVM233::svm_GetSupportVectorStatistics(), SVM233::svm_margin(), svm_parameter(), SVM233::svm_predictTwoClasses(), SVM233::svm_train_one(), ToCmdLineStr(), and ToTabDelStr().
| float SVM233::svm_parameter::threshold |
Definition at line 109 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), ToCmdLineStr(), and ToTabDelStr().
| double* SVM233::svm_parameter::weight |
Definition at line 92 of file svm.h.
Referenced by MemoryConsumedEstimated(), operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), and ToTabDelStr().
| kkint32* SVM233::svm_parameter::weight_label |
Definition at line 93 of file svm.h.
Referenced by operator=(), ParseTabDelStr(), ProcessSvmParameter(), svm_parameter(), and ToTabDelStr().