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<Option> |
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<Option> listOptions()
listOptions in interface OptionHandlerpublic 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 OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic 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.Exceptionpublic 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.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler