1 #ifndef _MODELPARAMSVMBASE_ 2 #define _MODELPARAMSVMBASE_ 8 using namespace SVM289_MFS;
43 virtual void Cost (
double _cost);
44 virtual void Gamma (
double _gamma);
48 virtual double Cost ()
const;
49 virtual double Gamma ()
const;
73 virtual void ParseCmdLinePost ();
75 virtual void ParseCmdLineParameter (
const KKStr& parameter,
ModelParam derived classes will implement their "XmlElement" helper class via this template...
virtual void ReadXML(XmlStream &s, XmlTagConstPtr tag, VolConstBool &cancelFlag, RunLog &log)
virtual void SvmType(SVM_Type _svm_type)
virtual KKStr ToCmdLineStr() const
Creates a Command Line String that represents these parameters.
virtual double Gamma() const
const SVM289_MFS::svm_parameter & SvmParam()
virtual Kernel_Type KernalType() const
XmlElementModelParamTemplate< ModelParamSvmBase > XmlElementModelParamSvmBase
virtual ModelParamTypes ModelParamType() const
virtual double Cost() const
ModelParamSvmBase * ModelParamSvmBasePtr
ModelParamSvmBase(const ModelParamSvmBase &_param)
Kernel_Type KernalType() const
XmlTag const * XmlTagConstPtr
Manages the reading and writing of objects in a simple XML format. For a class to be supported by Xml...
XmlElementModelParamSvmBase * XmlElementModelParamSvmBasePtr
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
virtual ~ModelParamSvmBase()
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 void KernalType(Kernel_Type _kernalType)
virtual void WriteXML(const KKStr &varName, ostream &o) const
virtual SVM_Type SvmType() const
void KernalType(Kernel_Type _kernalType)
Abstract Base class for Machine Learning parameters.
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