public class RegOptimizer extends java.lang.Object implements OptionHandler, java.io.Serializable, RevisionHandler
-L <double> The epsilon parameter in epsilon-insensitive loss function. (default 1.0e-3)
-W <double> The random number seed. (default 1)
Modifier and Type | Field and Description |
---|---|
double[] |
m_alpha
alpha and alpha* arrays containing weights for solving dual problem
|
double[] |
m_alphaStar |
Constructor and Description |
---|
RegOptimizer()
the default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(Instances data)
learn SVM parameters from data.
|
java.lang.String |
epsilonParameterTipText()
Returns the tip text for this property
|
int |
getCacheHits()
return the number of kernel cache hits
|
double |
getEpsilonParameter()
Get the value of epsilon parameter of the epsilon insensitive loss function.
|
long |
getKernelEvaluations()
returns the number of kernel evaluations
|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getSeed()
Gets the current seed value for the random number generator
|
java.util.Enumeration |
listOptions()
Gets an enumeration describing the available options.
|
boolean |
modelBuilt()
flag to indicate whether the model was built yet
|
java.lang.String |
seedTipText()
Returns the tip text for this property
|
void |
setEpsilonParameter(double v)
Set the value of epsilon parameter of the epsilon insensitive loss function.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSeed(int value)
Sets the seed value for the random number generator
|
void |
setSMOReg(SMOreg value)
sets the parent SVM
|
double |
SVMOutput(Instance inst) |
java.lang.String |
toString()
Prints out the classifier.
|
public double[] m_alpha
public double[] m_alphaStar
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-L <double> The epsilon parameter in epsilon-insensitive loss function. (default 1.0e-3)
-W <double> The random number seed. (default 1)
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public boolean modelBuilt()
public void setSMOReg(SMOreg value)
value
- the parent SVMpublic long getKernelEvaluations()
public int getCacheHits()
public void buildClassifier(Instances data) throws java.lang.Exception
data
- the data to work withjava.lang.Exception
- always an Exceoption since subclasses must override itpublic double SVMOutput(Instance inst) throws java.lang.Exception
inst
- java.lang.Exception
public java.lang.String seedTipText()
public int getSeed()
public void setSeed(int value)
value
- the seed valuepublic java.lang.String epsilonParameterTipText()
public double getEpsilonParameter()
public void setEpsilonParameter(double v)
v
- Value to assign to epsilon parameter.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler