21 using namespace KKMLL;
24 using namespace SVM289_MFS;
59 svmParam
(_param.svmParam
) 173 while (t && (!cancelFlag))
180 svmParam.ParseTabDelStr (*(
dynamic_cast<XmlElementKKStrPtr> (t)->Value ()));
KKStr(kkint32 size)
Creates a KKStr object that pre-allocates space for 'size' characters.
XmlTag(const KKStr &_name, TagTypes _tagType)
void Gamma(double _gamma)
bool EqualIgnoreCase(const char *s2) const
virtual KKStr ToCmdLineStr() const
Creates a a Command Line String that represents these parameters.
void WriteXMLFields(std::ostream &o) const
virtual void Cost(double _cost)
virtual void ReadXML(XmlStream &s, XmlTagConstPtr tag, VolConstBool &cancelFlag, RunLog &log)
virtual KKStr ToCmdLineStr() const
Creates a Command Line String that represents these parameters.
virtual double Gamma() const
KKStr operator+(const char *right) const
KKStr & operator=(KKStr &&src)
virtual double Cost() const
virtual void Gamma(double _gamma)
svm_parameter(const svm_parameter &_param)
void AddAtribute(const KKStr &attributeName, const KKStr &attributeValue)
ModelParamSvmBase(const ModelParamSvmBase &_param)
XmlTokenPtr ReadXMLModelParamToken(XmlTokenPtr t)
Will process any tokens that belong to 'ModelParam' and return NULL ones that are not will be passed ...
KKStr ToCmdLineStr() const
XmlTag const * XmlTagConstPtr
Manages the reading and writing of objects in a simple XML format. For a class to be supported by Xml...
void ProcessSvmParameter(const KKStr &cmd, const KKStr &value, bool &parmUsed)
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
KKStr ToTabDelStr() const
void WriteXML(const KKStr &varName, std::ostream &o) const
KKStr operator+(const KKStr &right) const
virtual ~ModelParamSvmBase()
ModelParam(const ModelParam &_param)
void WriteXML(std::ostream &o)
Used for logging messages.
void EncodeProblem(const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out)
virtual void Gamma(double _gamma)
virtual void Cost(double _cost)
virtual XmlTokenPtr GetNextToken(VolConstBool &cancelFlag, RunLog &log)
virtual void WriteXML(const KKStr &varName, ostream &o) const
void KernalType(Kernel_Type _kernalType)
Abstract Base class for Machine Learning parameters.
virtual const KKStr & VarName() const
#define XmlFactoryMacro(NameOfClass)
virtual ModelParamSvmBasePtr Duplicate() const
ModelParamSvmBase(SVM_Type _svm_type, Kernel_Type _kernelType, double _cost, double _gamma)
void SvmType(SVM_Type _svm_type)
volatile const bool VolConstBool