|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.functions.supportVector.RegOptimizer
public class RegOptimizer
Base class implementation for learning algorithm of SMOreg Valid options are:
-L <double> The epsilon parameter in epsilon-insensitive loss function. (default 1.0e-3)
-W <double> The random number seed. (default 1)
| Field Summary | |
|---|---|
double[] |
m_alpha
alpha and alpha* arrays containing weights for solving dual problem |
double[] |
m_alphaStar
|
| Constructor Summary | |
|---|---|
RegOptimizer()
the default constructor |
|
| Method Summary | |
|---|---|
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. |
int |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double[] m_alpha
public double[] m_alphaStar
| Constructor Detail |
|---|
public RegOptimizer()
| Method Detail |
|---|
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 OptionHandleroptions - the list of options as an array of strings
java.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 int getKernelEvaluations()
public int getCacheHits()
public void buildClassifier(Instances data)
throws java.lang.Exception
data - the data to work with
java.lang.Exception - always an Exceoption since subclasses must override it
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||