![]() |
KSquare Utilities
|
Similar to SVMparam except it is specialized for two classes. More...
#include <BinaryClassParms.h>
Public Types | |
| typedef BinaryClassParms * | BinaryClassParmsPtr |
| typedef SVM233::svm_parameter | svm_parameter |
Public Member Functions | |
| BinaryClassParms (MLClassPtr _class1, MLClassPtr _class2, const svm_parameter &_param, FeatureNumListConstPtr _selectedFeatures, float _weight) | |
| Constructor for 'BinaryClassParms' where caller supplies the two classes and parameters for that specific class pair. More... | |
| BinaryClassParms (const BinaryClassParms &binaryClassParms) | |
| ~BinaryClassParms () | |
| double | AParam () const |
| void | AParam (float _A) |
| double | C () const |
| void | C (double _c) |
| MLClassPtr | Class1 () const |
| KKStr | Class1Name () const |
| MLClassPtr | Class2 () const |
| KKStr | Class2Name () const |
| void | Gamma (double _gamma) |
| kkint32 | MemoryConsumedEstimated () const |
| kkuint16 | NumOfFeatures (FileDescPtr fileDesc) const |
| const svm_parameter & | Param () const |
| void | Param (const svm_parameter &_param) |
| FeatureNumListConstPtr | SelectedFeatures () const |
| void | SelectedFeatures (const FeatureNumListConst &_selectedFeatures) |
| void | SelectedFeatures (FeatureNumListConstPtr _selectedFeatures) |
| FeatureNumListConstPtr | SelectedFeaturesFD (FileDescPtr fileDesc) const |
| KKStr | ToTabDelString () const |
| float | Weight () const |
| void | Weight (float _weight) |
Static Public Member Functions | |
| static BinaryClassParmsPtr | CreateFromTabDelStr (const KKStr &_str, RunLog &_log) |
Similar to SVMparam except it is specialized for two classes.
Machine Learning parameters to be used by a pair of classes.
Definition at line 46 of file BinaryClassParms.h.
Definition at line 49 of file BinaryClassParms.h.
Definition at line 51 of file BinaryClassParms.h.
| BinaryClassParms::BinaryClassParms | ( | MLClassPtr | _class1, |
| MLClassPtr | _class2, | ||
| const svm_parameter & | _param, | ||
| FeatureNumListConstPtr | _selectedFeatures, | ||
| float | _weight | ||
| ) |
Constructor for 'BinaryClassParms' where caller supplies the two classes and parameters for that specific class pair.
| [in] | _class1 | |
| [in] | _class2 | |
| [in] | _param | |
| [in] | _selectedFeatures | Will create a duplicate instance; caller will still have same ownership status. |
| [in] | _weight |
Definition at line 25 of file BinaryClassParms.cpp.
References KKMLL::FeatureNumList::FeatureNumList(), and SVM233::svm_parameter::svm_parameter().
Referenced by KKMLL::SVMparam::AddBinaryClassParms(), CreateFromTabDelStr(), and KKMLL::SVMparam::GetParamtersToUseFor2ClassCombo().
| BinaryClassParms::BinaryClassParms | ( | const BinaryClassParms & | binaryClassParms | ) |
Definition at line 44 of file BinaryClassParms.cpp.
References KKMLL::FeatureNumList::FeatureNumList(), and SVM233::svm_parameter::svm_parameter().
Referenced by KKMLL::BinaryClassParmsList::DuplicateListAndContents().
| BinaryClassParms::~BinaryClassParms | ( | ) |
Definition at line 57 of file BinaryClassParms.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 82 of file BinaryClassParms.h.
References SVM233::svm_parameter::C.
Referenced by KKMLL::ModelParamOldSVM::C_Param(), and KKMLL::SVMparam::C_Param().
|
inline |
Definition at line 93 of file BinaryClassParms.h.
References SVM233::svm_parameter::C.
Referenced by KKMLL::ModelParamOldSVM::C_Param(), and KKMLL::SVMparam::C_Param().
|
inline |
Definition at line 80 of file BinaryClassParms.h.
Referenced by KKMLL::SVMModel::FindWorstSupportVectors(), KKMLL::SVMModel::FindWorstSupportVectors2(), KKMLL::BinaryClassParmsList::PushOnBack(), KKMLL::BinaryClassParmsList::PushOnFront(), and KKMLL::SVMModel::SupportVectorNames().
| KKStr BinaryClassParms::Class1Name | ( | ) | const |
Definition at line 87 of file BinaryClassParms.cpp.
References KKMLL::MLClass::Name().
Referenced by ToTabDelString(), and KKMLL::SVMModel::WriteXML().
|
inline |
Definition at line 81 of file BinaryClassParms.h.
Referenced by KKMLL::SVMModel::FindWorstSupportVectors(), KKMLL::SVMModel::FindWorstSupportVectors2(), KKMLL::BinaryClassParmsList::PushOnBack(), KKMLL::BinaryClassParmsList::PushOnFront(), and KKMLL::SVMModel::SupportVectorNames().
| KKStr BinaryClassParms::Class2Name | ( | ) | const |
Definition at line 97 of file BinaryClassParms.cpp.
References KKMLL::MLClass::Name().
Referenced by ToTabDelString(), and KKMLL::SVMModel::WriteXML().
|
static |
Definition at line 132 of file BinaryClassParms.cpp.
References BinaryClassParms(), KKB::KKStr::Concat(), KKMLL::MLClass::CreateNewMLClass(), KKB::KKStr::Empty(), KKB::KKStr::ExtractQuotedStr(), KKMLL::FeatureNumList::FeatureNumList(), KKB::KKStr::KKStr(), KKB::KKStr::operator==(), SVM233::svm_parameter::svm_parameter(), and KKB::KKStr::Upper().
Referenced by KKMLL::BinaryClassParmsList::ReadXML().
|
inline |
| kkint32 BinaryClassParms::MemoryConsumedEstimated | ( | ) | const |
Definition at line 185 of file BinaryClassParms.cpp.
References SVM233::svm_parameter::MemoryConsumedEstimated(), and KKMLL::FeatureNumList::MemoryConsumedEstimated().
| kkuint16 BinaryClassParms::NumOfFeatures | ( | FileDescPtr | fileDesc | ) | const |
Definition at line 64 of file BinaryClassParms.cpp.
References KKMLL::FeatureNumList::NumOfFeatures(), and SelectedFeaturesFD().
Referenced by KKMLL::BinaryClassParmsList::FeatureCountNet().
|
inline |
Definition at line 83 of file BinaryClassParms.h.
Referenced by KKMLL::SVMModel::FindWorstSupportVectors(), and KKMLL::SVMModel::FindWorstSupportVectors2().
|
inline |
Definition at line 95 of file BinaryClassParms.h.
References SVM233::svm_parameter::operator=().
Referenced by KKMLL::SVMparam::SetBinaryClassFields().
|
inline |
Definition at line 84 of file BinaryClassParms.h.
| void KKMLL::BinaryClassParms::SelectedFeatures | ( | const FeatureNumListConst & | _selectedFeatures | ) |
| void BinaryClassParms::SelectedFeatures | ( | FeatureNumListConstPtr | _selectedFeatures | ) |
Will make copy of instance; caller will retain ownership status.
Definition at line 77 of file BinaryClassParms.cpp.
References KKMLL::FeatureNumList::FeatureNumList().
Referenced by KKMLL::SVMparam::SetBinaryClassFields(), and KKMLL::SVMparam::SetFeatureNums().
| FeatureNumListConstPtr BinaryClassParms::SelectedFeaturesFD | ( | FileDescPtr | fileDesc | ) | const |
Definition at line 106 of file BinaryClassParms.cpp.
References KKMLL::FeatureNumList::FeatureNumList().
Referenced by KKMLL::SVMparam::GetFeatureNums(), and NumOfFeatures().
| KKStr BinaryClassParms::ToTabDelString | ( | ) | const |
Definition at line 115 of file BinaryClassParms.cpp.
References Class1Name(), Class2Name(), KKB::KKStr::Concat(), SVM233::svm_parameter::ToCmdLineStr(), and KKMLL::FeatureNumList::ToString().
|
inline |
Definition at line 85 of file BinaryClassParms.h.
Referenced by KKMLL::SVMparam::SetFeatureNums().
|
inline |
Definition at line 98 of file BinaryClassParms.h.
Referenced by KKMLL::SVMparam::SetBinaryClassFields().