![]() |
KSquare Utilities
|
Namespace for all K^2 Machine Learning code. More...
Classes | |
| class | Attribute |
| describes a single Feature, Type and possible values. More... | |
| class | AttributeList |
| class | AttributeTypeVector |
| class | BinaryClassParms |
| Similar to SVMparam except it is specialized for two classes. More... | |
| class | BinaryClassParmsList |
| class | ClassAssignments |
| Binds MLClass objects to the appropriate number that the Learning Algorithm expects. More... | |
| class | ClassificationBiasMatrix |
| Assists in adjusting a Classifiers output for bias of a classifier. More... | |
| class | Classifier2 |
| class | Classifier2List |
| class | ClassProb |
| Used to record probability for a specified class; and a list of classes. More... | |
| class | ClassProbList |
| class | ClassStatistic |
| Used by routines that retrieve Class statistics from FeatureVectorList instances. More... | |
| class | ClassStatisticList |
| class | ConfusionMatrix2 |
| A confusion matrix object that is used to record the results from a CrossValidation. <see also cref="CrossValidation" More... | |
| class | ConfussionMatrix2List |
| class | CrossValidation |
| A class that is meant to manage a n-Fold Cross Validation. More... | |
| class | CrossValidationMxN |
| class | CrossValidationVoting |
| class | DuplicateImage |
| class | DuplicateImageList |
| class | DuplicateImages |
| Detects duplicate images in a given FeaureVectorList objects. More... | |
| class | ExtractExampleFileName |
| class | ExtractFeatureData |
| class | FactoryFVProducer |
| Responsible for creating a FeatureFectorProducer instance. More... | |
| class | FeatureEncoder |
| class | FeatureEncoder2 |
| class | FeatureFileIO |
| Base class for all FeatureFileIO classes. More... | |
| class | FeatureFileIOArff |
| Support the writing of ARFF Formatted Feature Files. More... | |
| class | FeatureFileIOC45 |
| Supports the reading and writing of feature data from C45 formated feature files. More... | |
| class | FeatureFileIOColumn |
| Supports a simple Feature File format where each column represents a example and each row a feature value. More... | |
| class | FeatureFileIODstWeb |
| class | FeatureFileIORoberts |
| Supports the writing of Feature Data to a file that can then be read by OpenDT. More... | |
| class | FeatureFileIOSparse |
| Supports the reading and writing of Sparse feature files similar to the ones libSVM use. More... | |
| class | FeatureFileIOUCI |
| Supports the reading and writing of Feature data from a file format commonly used by many dataset's in the UCI repository. More... | |
| class | FeatureNumList |
| Keeps track of selected features. More... | |
| class | FeatureVector |
| Represents a Feature Vector of a single example, labeled or unlabeled. More... | |
| class | FeatureVectorList |
| Container class for FeatureVector derived objects. More... | |
| class | FeatureVectorProducer |
| A abstract class that is meant to compute a FeatureVector from a source image. More... | |
| class | FileDesc |
| Provides a detailed description of the attributes of a dataset. More... | |
| class | FileDescList |
| Container class file 'FileDesc' instances. More... | |
| class | GrayScaleImagesFV |
| Specialized version of KKMLL::FeatureVector that will be used to represent the features of a Shrimp. More... | |
| class | GrayScaleImagesFVList |
| class | GrayScaleImagesFVProducer |
| class | GrayScaleImagesFVProducerFactory |
| class | ImageDataTreeEntry |
| class | ImageFeaturesDataIndexed |
| class | ImageFeaturesNameIndexed |
| class | ImageFeaturesNodeKey |
| class | KKMLVariables |
| class | MLClass |
| Represents a "Class" in the Machine Learning Sense. More... | |
| class | MLClassIndexList |
| Maintains a list of classes and their associated integer index. More... | |
| class | MLClassList |
| Maintains a list of MLClass instances. More... | |
| class | Model |
| Base class to all Learning Algorithms. More... | |
| class | ModelDual |
| Will implement the Dual Classifier Model. More... | |
| class | ModelKnn |
| class | ModelOldSVM |
| A specialization of 'Model'; meant to Wrap the original version of 'SvmModel' class. It will allow us to use the original implementation using version 2.39 of LibSVM. More... | |
| class | ModelParam |
| Abstract Base class for Machine Learning parameters. More... | |
| class | ModelParamDual |
| class | ModelParamKnn |
| class | ModelParamOldSVM |
| class | ModelParamSvmBase |
| class | ModelParamUsfCasCor |
| This class encapsulates are the information necessary to build a UsfCasCor class. More... | |
| class | ModelSvmBase |
| class | ModelUsfCasCor |
| class | NormalizationParms |
| Normalization Parameters; calculation and implementation. More... | |
| class | Orderings |
| Used to maintain multiple orderings of a single list of FeatureVector objects. More... | |
| class | ProbNamePair |
| class | SizeDistribution |
| Used to keep track of examples by size; typically used by 'CrossValidation'; for each example predicted it would call the ;Increment' method keeping track. More... | |
| class | SVMModel |
| class | SVMparam |
| This class encapsulates are the information necessary to build a SVMModel class. More... | |
| class | TrainingClass |
| Specify where training examples and other related data for a MLClass that is needed to train a classifier. More... | |
| class | TrainingClassList |
| class | TrainingConfiguration2 |
| class | TrainingConfiguration2List |
| class | TrainingProcess2 |
| class | TrainingProcess2List |
| class | XmlElementFileDesc |
| class | XmlElementMLClass |
| class | XmlElementMLClassNameList |
| Will only write the ClassName rather than complete MLClass instances. More... | |
| class | XmlElementModel |
| The base class to be used for the manufacturing if "Model" derived classes. More... | |
| class | XmlElementModelParam |
| Base class to be used by all ModelParam derived objects. More... | |
| class | XmlElementModelParamTemplate |
| ModelParam derived classes will implement their "XmlElement" helper class via this template. More... | |
| class | XmlElementModelTemplate |
Functions | |
| AttributeType | AttributeTypeFromStr (const KKStr &s) |
| const KKStr & | AttributeTypeToStr (AttributeType type) |
| void | EncodeProblem (const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out) |
| SVM_EncodingMethod | EncodingMethodFromStr (const KKStr &encodingMethodStr) |
| KKStr | EncodingMethodToStr (SVM_EncodingMethod encodingMethod) |
| SVM_KernalType | KernalTypeFromStr (const KKStr &kernalTypeStr) |
| KKStr | KernalTypeToStr (SVM_KernalType kernalType) |
| SVM_MachineType | MachineTypeFromStr (const KKStr &machineTypeStr) |
| KKStr | MachineTypeToStr (SVM_MachineType machineType) |
| AttributeType | operator++ (AttributeType zed) |
| std::ostream & | operator<< (std::ostream &os, const FeatureNumList &features) |
| std::ostream & | operator<< (std::ostream &os, const MLClassList &classList) |
| KKStr & | operator<< (KKStr &str, const MLClassList &classList) |
| KKStr & | operator<< (KKStr &left, TrainingConfiguration2::ModelTypes modelingMethod) |
| std::ostream & | operator<< (std::ostream &os, TrainingConfiguration2::ModelTypes modelingMethod) |
| ostream & | operator<< (ostream &os, const FeatureNumList &features) |
| bool | PairCompareOperator (ProbNamePair l, ProbNamePair r) |
| SVM_SelectionMethod | SelectionMethodFromStr (const KKStr &selectionMethodStr) |
| KKStr | SelectionMethodToStr (SVM_SelectionMethod selectionMethod) |
| void | SvmDestroyModel (struct SvmModel233 **subModel) |
| struct SvmModel233 ** | SvmLoadModel (istream &f, RunLog &log) |
| void | SvmPredictClass (SVMparam &svmParam, struct SvmModel233 **subModel, const struct svm_node *unknownClassFeatureData, kkint32 *votes, double *probabilities, kkint32 knownClass, kkint32 &predClass1, kkint32 &predClass2, kkint32 &predClass1Votes, kkint32 &predClass2Votes, double &predClass1Prob, double &predClass2Prob, double &probOfKnownClass, Ivector &winners, double **crossClassProbTable, double &breakTie) |
| void | SvmPredictRaw (SvmModel233 **submodel, const svm_node *unKnownData, double &label, double &dist) |
| kkint32 | SvmPredictTwoClass (const struct svm_parameter ¶m, SvmModel233 **submodel, const svm_node *unKnownData, kkint32 desired, double &dist, double &probability, kkint32 excludeSupportVectorIDX) |
| void | SvmSaveModel (ostream &o, struct SvmModel233 **model) |
| struct SvmModel233 ** | SvmTrainModel (const struct svm_parameter ¶m, struct svm_problem &subprob) |
Variables | |
| const char * | FeatureDecriptions [] |
| MLClassList | globalClassList |
Namespace for all K^2 Machine Learning code.
This library provides data structures that support Machine Learning functionality.
A library of routines used for Machine Learning, building Classifiers, etc.
There are several Feature Data formats supported. Each one has its own class that is derived from 'FeatureFileIO'. The description of the data is managed by 'FileDesc'. For each type of dataset there will exist on one instance of a FileDesc class.
There are several learning algorithms implemented. The Learning algorithms are all sub-classed from 'Model' and their related parameters are all sub-classed from 'ModelParam'.
There are several classes defined in this library but the central ones that should be understood are MLClass, FeatureVector, Model, FileDesc, and Attribute. there is support for reading and writing several feature Data file formats C45 probably being the most well known.
| typedef AttributeList const* KKMLL::AttributeListConstPtr |
Definition at line 214 of file Attribute.h.
| typedef AttributeList* KKMLL::AttributeListPtr |
Definition at line 212 of file Attribute.h.
| typedef Attribute* KKMLL::AttributePtr |
Definition at line 156 of file Attribute.h.
Definition at line 72 of file Attribute.h.
Definition at line 220 of file BinaryClassParms.h.
| typedef BinaryClassParms * KKMLL::BinaryClassParmsPtr |
Definition at line 120 of file BinaryClassParms.h.
| typedef ClassAssignments * KKMLL::ClassAssignmentsPtr |
Definition at line 90 of file ClassAssignments.h.
Definition at line 148 of file ClassificationBiasMatrix.h.
| typedef Classifier2List * KKMLL::Classifier2ListPtr |
Definition at line 72 of file Classifier2.h.
| typedef Classifier2 * KKMLL::Classifier2Ptr |
Definition at line 284 of file Classifier2.h.
Definition at line 30 of file Classifier2.h.
| typedef ClassProb * KKMLL::ClassProbPtr |
Definition at line 28 of file Classifier2.h.
Definition at line 67 of file ClassStatistic.h.
| typedef ClassStatistic* KKMLL::ClassStatisticPtr |
Definition at line 38 of file ClassStatistic.h.
| typedef ConfusionMatrix2 * KKMLL::ConfusionMatrix2Ptr |
Definition at line 326 of file ConfusionMatrix2.h.
Definition at line 343 of file ConfusionMatrix2.h.
| typedef CrossValidation * KKMLL::CrossValidationPtr |
Definition at line 213 of file CrossValidation.h.
Definition at line 120 of file CrossValidationVoting.h.
Definition at line 25 of file DuplicateImages.h.
| typedef DuplicateImage * KKMLL::DuplicateImagePtr |
Definition at line 28 of file DuplicateImages.h.
| typedef DuplicateImages* KKMLL::DuplicateImagesPtr |
Definition at line 119 of file DuplicateImages.h.
| typedef std::vector<double> KKMLL::Dvector |
Definition at line 20 of file SvmWrapper.h.
| typedef FactoryFVProducer * KKMLL::FactoryFVProducerPtr |
| typedef FeatureEncoder * KKMLL::FeatureEncoderPtr |
Definition at line 37 of file SVMModel.h.
Definition at line 113 of file FeatureFileIOC45.h.
| typedef FeatureFileIO * KKMLL::FeatureFileIOPtr |
Definition at line 45 of file FileDesc.h.
| typedef FeatureNumList const KKMLL::FeatureNumListConst |
Definition at line 253 of file FeatureNumList.h.
Definition at line 254 of file FeatureNumList.h.
| typedef FeatureNumList * KKMLL::FeatureNumListPtr |
Definition at line 51 of file FeatureNumList.h.
| typedef FeatureVectorList * KKMLL::FeatureVectorListPtr |
Definition at line 24 of file FactoryFVProducer.h.
| typedef FeatureVector * KKMLL::FeatureVectorPtr |
| typedef FeWhatToDo* KKMLL::FeWhatToDoPtr |
Definition at line 41 of file FeatureEncoder.h.
| typedef FileDesc *const KKMLL::FileDescConstPtr |
Definition at line 307 of file FileDesc.h.
| typedef FileDescList * KKMLL::FileDescListPtr |
Definition at line 41 of file FileDesc.h.
| typedef FileDesc * KKMLL::FileDescPtr |
Definition at line 46 of file FeatureNumList.h.
| typedef std::vector<float> KKMLL::Fvector |
Definition at line 19 of file SvmWrapper.h.
Definition at line 459 of file GrayScaleImagesFV.h.
Definition at line 160 of file GrayScaleImagesFVProducer.h.
Definition at line 106 of file GrayScaleImagesFV.h.
Definition at line 33 of file DuplicateImages.h.
Definition at line 46 of file DuplicateImages.h.
| typedef std::vector<kkint32> KKMLL::Ivector |
Definition at line 18 of file SvmWrapper.h.
| typedef MLClassIndexList * KKMLL::MLClassIndexListPtr |
| typedef MLClassList * KKMLL::MLClassListPtr |
| typedef MLClass * KKMLL::MLClassPtr |
Definition at line 233 of file ModelDual.h.
Definition at line 120 of file ModelKnn.h.
| typedef ModelOldSVM * KKMLL::ModelOldSVMPtr |
Definition at line 266 of file ModelOldSVM.h.
Definition at line 56 of file ModelDual.h.
Definition at line 66 of file ModelParamKnn.h.
| typedef ModelParamOldSVM * KKMLL::ModelParamOldSVMPtr |
Definition at line 24 of file ModelOldSVM.h.
| typedef ModelParam * KKMLL::ModelParamPtr |
Definition at line 201 of file ModelParam.h.
Definition at line 85 of file ModelParamSvmBase.h.
Definition at line 91 of file ModelParamUsfCasCor.h.
| typedef Model::ModelPtr KKMLL::ModelPtr |
Definition at line 147 of file ModelSvmBase.h.
Definition at line 141 of file ModelUsfCasCor.h.
Definition at line 58 of file CrossValidationMxN.h.
| typedef RunLog * KKMLL::RunLogPtr |
Definition at line 44 of file SVMModel.h.
Definition at line 77 of file SizeDistribution.h.
| typedef SVMModel* KKMLL::SVMModelPtr |
Definition at line 557 of file SVMModel.h.
| typedef SVMparam* KKMLL::SVMparamPtr |
Definition at line 286 of file SVMparam.h.
Definition at line 188 of file TrainingClass.h.
| typedef TrainingClass* KKMLL::TrainingClassPtr |
Definition at line 139 of file TrainingClass.h.
Definition at line 552 of file TrainingConfiguration2.h.
| typedef TrainingConfiguration2::TrainingConfiguration2ConstPtr KKMLL::TrainingConfiguration2ConstPtr |
Definition at line 553 of file TrainingConfiguration2.h.
Definition at line 50 of file TrainingConfiguration2.h.
Definition at line 56 of file Classifier2.h.
summary>Manages the creation and loading of training models.
remarks> A trained model can either be built from scratch using specified training data or a persistent instance can be loaded from a XMLStream. There are several static methods that are best used to manage the various situations such as "CreateTrainingProcess", "CreateTrainingProcessForLevel", "CreateTrainingProcessFromTrainingExamples", "LoadExistingTrainingProcess". The result of any of these methods is a TrainigProcess2 instance that you use to create a Classifier instance.
Supporting Classes:
Model Base class for all algorithms. SupportVectorMachine(SVM), USFCasCor, BFS-SVM, etc ....
Classifier2 You construct an instance from a 'TrainingProcess2' instance; this is the class that manages predictions.
Sub-Classifiers: For each sub-classifiers specified in the "TrainingConfiguration2" another instance of "TrainingProcess2" will be created. Data member "subTrainingProcesses" will keep a list of these "TrainingProcess2" instances. /remarks>
Definition at line 68 of file Classifier2.h.
| typedef TrainingProcess2 * KKMLL::TrainingProcess2Ptr |
Definition at line 62 of file Classifier2.h.
Definition at line 226 of file Attribute.h.
Definition at line 230 of file Attribute.h.
Definition at line 231 of file Attribute.h.
Definition at line 227 of file Attribute.h.
Definition at line 222 of file Attribute.h.
Definition at line 223 of file Attribute.h.
Definition at line 222 of file BinaryClassParms.h.
Definition at line 223 of file BinaryClassParms.h.
Definition at line 146 of file ClassProb.h.
Definition at line 147 of file ClassProb.h.
Definition at line 263 of file FeatureNumList.h.
Definition at line 264 of file FeatureNumList.h.
Definition at line 337 of file FileDesc.h.
Definition at line 236 of file ModelDual.h.
Definition at line 237 of file ModelDual.h.
Definition at line 123 of file ModelKnn.h.
Definition at line 124 of file ModelKnn.h.
Definition at line 269 of file ModelOldSVM.h.
Definition at line 270 of file ModelOldSVM.h.
Definition at line 104 of file ModelParamDual.h.
Definition at line 105 of file ModelParamDual.h.
Definition at line 68 of file ModelParamKnn.h.
Definition at line 69 of file ModelParamKnn.h.
Definition at line 185 of file ModelParamOldSVM.h.
Definition at line 186 of file ModelParamOldSVM.h.
Definition at line 248 of file ModelParam.h.
Definition at line 87 of file ModelParamSvmBase.h.
Definition at line 88 of file ModelParamSvmBase.h.
Definition at line 93 of file ModelParamUsfCasCor.h.
Definition at line 94 of file ModelParamUsfCasCor.h.
| typedef XmlElementModel* KKMLL::XmlElementModelPtr |
Definition at line 150 of file ModelSvmBase.h.
Definition at line 151 of file ModelSvmBase.h.
Definition at line 146 of file ModelUsfCasCor.h.
Definition at line 147 of file ModelUsfCasCor.h.
Definition at line 155 of file NormalizationParms.h.
Definition at line 156 of file NormalizationParms.h.
Definition at line 561 of file SVMModel.h.
Definition at line 562 of file SVMModel.h.
Definition at line 302 of file SVMparam.h.
Definition at line 303 of file SVMparam.h.
Definition at line 192 of file TrainingClass.h.
Definition at line 196 of file TrainingClass.h.
Definition at line 197 of file TrainingClass.h.
Definition at line 193 of file TrainingClass.h.
Definition at line 587 of file TrainingConfiguration2.h.
Definition at line 588 of file TrainingConfiguration2.h.
Definition at line 426 of file TrainingProcess2.h.
Definition at line 427 of file TrainingProcess2.h.
| typedef struct svm_node * KKMLL::XSpacePtr |
Definition at line 58 of file SVMModel.h.
|
strong |
| Enumerator | |
|---|---|
| NULLAttribute | |
| Ignore | |
| Numeric | |
| Nominal | |
| Ordinal | |
| Symbolic |
Same as Nominal, except the names file does not list all possible values. They have to be determined from the data file. |
Definition at line 36 of file Attribute.h.
|
strong |
| Enumerator | |
|---|---|
| FeAsIs | |
| FeBinary | |
| FeScale | |
Definition at line 39 of file FeatureEncoder.h.
|
strong |
| Enumerator | |
|---|---|
| NORMAL | |
| BAGGING | |
| BOOSTING | |
| SUBSPACE | |
| SAMPLESV | |
Definition at line 9 of file SvmWrapper.h.
|
strong |
| Enumerator | |
|---|---|
| Null | |
| NoEncoding | |
| Binary | |
| Scaled | |
Definition at line 46 of file SVMparam.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| Null | |
| OneVsOne | |
| OneVsAll | |
| BinaryCombos | |
| BoostSVM | |
Definition at line 26 of file SVMparam.h.
|
strong |
| AttributeType KKMLL::AttributeTypeFromStr | ( | const KKStr & | s | ) |
Definition at line 442 of file Attribute.cpp.
References KKB::KKStr::EqualIgnoreCase(), Ignore, Nominal, NULLAttribute, Numeric, Ordinal, and Symbolic.
Referenced by KKMLL::Attribute::ReadXML().
| const KKStr & KKMLL::AttributeTypeToStr | ( | AttributeType | type | ) |
Definition at line 422 of file Attribute.cpp.
Referenced by KKMLL::FeatureVectorList::FeatureTypeStr(), and KKMLL::Attribute::TypeStr().
| void KKMLL::EncodeProblem | ( | const struct svm_paramater & | param, |
| struct svm_problem & | prob_in, | ||
| struct svm_problem & | prob_out | ||
| ) |
Referenced by KKMLL::GrayScaleImagesFVProducer::DefineFileDescStatic(), and KKMLL::Attribute::WriteXML().
| SVM_EncodingMethod KKMLL::EncodingMethodFromStr | ( | const KKStr & | encodingMethodStr | ) |
Definition at line 899 of file SVMparam.cpp.
References Binary, KKB::KKStr::Concat(), NoEncoding, Null, KKB::KKStr::operator==(), Scaled, and KKB::KKStr::ToUpper().
Referenced by KKMLL::SVMparam::ParseCmdLineParameter(), and KKMLL::FeatureEncoder::ReadXML().
| KKStr KKMLL::EncodingMethodToStr | ( | SVM_EncodingMethod | encodingMethod | ) |
Referenced by KKMLL::SVMparam::ToString(), KKMLL::FeatureEncoder::WriteXML(), and KKMLL::SVMparam::WriteXML().
| SVM_KernalType KKMLL::KernalTypeFromStr | ( | const KKStr & | kernalTypeStr | ) |
Definition at line 932 of file SVMparam.cpp.
References KKB::KKStr::Concat(), Linear, KKB::KKStr::operator==(), Polynomial, RBF, and KKB::KKStr::Upper().
| KKStr KKMLL::KernalTypeToStr | ( | SVM_KernalType | kernalType | ) |
Definition at line 917 of file SVMparam.cpp.
References Linear, Polynomial, and RBF.
| SVM_MachineType KKMLL::MachineTypeFromStr | ( | const KKStr & | machineTypeStr | ) |
Definition at line 986 of file SVMparam.cpp.
References BinaryCombos, BoostSVM, KKB::KKStr::Concat(), Null, OneVsAll, OneVsOne, KKB::KKStr::operator==(), and KKB::KKStr::ToUpper().
Referenced by KKMLL::SVMparam::ParseCmdLineParameter().
| KKStr KKMLL::MachineTypeToStr | ( | SVM_MachineType | machineType | ) |
Definition at line 965 of file SVMparam.cpp.
References BinaryCombos, BoostSVM, OneVsAll, and OneVsOne.
Referenced by KKMLL::ModelOldSVM::Description(), KKMLL::SVMparam::ToString(), and KKMLL::SVMparam::WriteXML().
| AttributeType KKMLL::operator++ | ( | AttributeType | zed | ) |
Definition at line 566 of file Attribute.cpp.
| std::ostream & KKMLL::operator<< | ( | std::ostream & | os, |
| const FeatureNumList & | features | ||
| ) |
| std::ostream& KKMLL::operator<< | ( | std::ostream & | os, |
| const MLClassList & | classList | ||
| ) |
| KKStr & KKMLL::operator<< | ( | KKStr & | str, |
| const MLClassList & | classList | ||
| ) |
| KKStr & KKMLL::operator<< | ( | KKStr & | left, |
| TrainingConfiguration2::ModelTypes | modelingMethod | ||
| ) |
Definition at line 2002 of file TrainingConfiguration2.cpp.
References KKB::KKStr::Append(), and KKMLL::TrainingConfiguration2::ModelTypeToStr().
| ostream & KKMLL::operator<< | ( | std::ostream & | os, |
| TrainingConfiguration2::ModelTypes | modelingMethod | ||
| ) |
Definition at line 2012 of file TrainingConfiguration2.cpp.
References KKMLL::TrainingConfiguration2::ModelTypeToStr(), and KKB::operator<<().
| ostream & KKMLL::operator<< | ( | ostream & | os, |
| const FeatureNumList & | features | ||
| ) |
Definition at line 761 of file FeatureNumList.cpp.
References KKB::operator<<(), and KKMLL::FeatureNumList::ToString().
| bool KKMLL::PairCompareOperator | ( | ProbNamePair | l, |
| ProbNamePair | r | ||
| ) |
| SVM_SelectionMethod KKMLL::SelectionMethodFromStr | ( | const KKStr & | selectionMethodStr | ) |
Definition at line 1022 of file SVMparam.cpp.
References KKB::KKStr::Concat(), Null, KKB::KKStr::operator==(), Probability, KKB::KKStr::ToUpper(), and Voting.
Referenced by KKMLL::SVMparam::ParseCmdLineParameter().
| KKStr KKMLL::SelectionMethodToStr | ( | SVM_SelectionMethod | selectionMethod | ) |
Definition at line 1008 of file SVMparam.cpp.
References Probability, and Voting.
Referenced by KKMLL::ModelOldSVM::Description(), KKMLL::SVMparam::ToString(), and KKMLL::SVMparam::WriteXML().
| void KKMLL::SvmDestroyModel | ( | struct SvmModel233 ** | subModel | ) |
| struct SvmModel233 ** KKMLL::SvmLoadModel | ( | istream & | f, |
| RunLog & | log | ||
| ) |
Definition at line 722 of file SvmWrapper.cpp.
References SVM233::Svm_Load_Model().
| void KKMLL::SvmPredictClass | ( | SVMparam & | svmParam, |
| struct SvmModel233 ** | subModel, | ||
| const struct svm_node * | unknownClassFeatureData, | ||
| kkint32 * | votes, | ||
| double * | probabilities, | ||
| kkint32 | knownClass, | ||
| kkint32 & | predClass1, | ||
| kkint32 & | predClass2, | ||
| kkint32 & | predClass1Votes, | ||
| kkint32 & | predClass2Votes, | ||
| double & | predClass1Prob, | ||
| double & | predClass2Prob, | ||
| double & | probOfKnownClass, | ||
| Ivector & | winners, | ||
| double ** | crossClassProbTable, | ||
| double & | breakTie | ||
| ) |
| [in] | svmParam | Structure that has all the parameters used for building the SVM. |
| [in] | subModel | This is the model(classifier) returned by SvmTrainModel. |
| [in] | probabilities | Array that must be as big as number of classes the probability of each class will be returned where there sum is 1.0 |
| [in] | unknownClassFeatureData | data structure you build that represents a sparse array of the feature data that is to be used for prediction. |
| [out] | probabilities | array that will receive the predicted probability for each class. |
| [in] | knownClass | If you happen to know hat the class really is you can specify it here so as to get the probability of it returned back to you. |
| [out] | predClass1 | The prediction will be returned back in this field. |
| [out] | predClass2 | The second most likely class based off either probability or number of votes. |
| [out] | predClass1Votes | Number votes that class 'predClass1' received. |
| [out] | predClass2Votes | Number votes that class 'predClass2' received. |
| [out] | predClass1Prob | Probability that class 'predClass1' received. |
| [out] | predClass2Prob | Probability that class 'predClass2' received. |
| [out] | probOfKnownClass | Probability that 'knownClass' class receved. |
| [out] | winners | If voting was specified in 'svmParam' and there was a tie between 2 or more classes; them the classes that ties will be in this vector. |
| [in] | crossClassProbTable | A 2 dimensional table that will have the computed probabilities between all the possible 2 class combinations. |
| [in] | breakTie | The difference in probability between the two most likely classes. |
Definition at line 585 of file SvmWrapper.cpp.
References GreaterVotes(), SVM233::SvmModel233::nr_class, KKMLL::SVMparam::Param(), Probability, and KKMLL::SVMparam::SelectionMethod().
| void KKMLL::SvmPredictRaw | ( | SvmModel233 ** | submodel, |
| const svm_node * | unKnownData, | ||
| double & | label, | ||
| double & | dist | ||
| ) |
Definition at line 684 of file SvmWrapper.cpp.
References SVM233::SvmModel233::nr_class, KKB::osWaitForEnter(), and SVM233::svm_predictTwoClasses().
Referenced by KKMLL::SVMModel::PredictRaw().
| kkint32 KKMLL::SvmPredictTwoClass | ( | const struct svm_parameter & | param, |
| SvmModel233 ** | submodel, | ||
| const svm_node * | unKnownData, | ||
| kkint32 | desired, | ||
| double & | dist, | ||
| double & | probability, | ||
| kkint32 | excludeSupportVectorIDX | ||
| ) |
| void KKMLL::SvmSaveModel | ( | ostream & | o, |
| struct SvmModel233 ** | model | ||
| ) |
Definition at line 711 of file SvmWrapper.cpp.
References SVM233::Svm_Save_Model().
| struct SvmModel233 ** KKMLL::SvmTrainModel | ( | const struct svm_parameter & | param, |
| struct svm_problem & | subprob | ||
| ) |
Definition at line 543 of file SvmWrapper.cpp.
References BAGGING, BOOSTING, SVM233::svm_parameter::boosting, SVM233::svm_parameter::dimSelect, NORMAL, SVM233::svm_parameter::numSVM, SVM233::svm_parameter::sample, SAMPLESV, SVM233::svm_parameter::sampleSV, SUBSPACE, and SVM233::svm_train().
| const char * KKMLL::FeatureDecriptions |
Definition at line 314 of file FeatureNumList_Old.h.
| MLClassList KKMLL::globalClassList |