public static class SupportVectorMachine.Parameters extends Learner.Parameters
SupportVectorMachine's configurable parameters. Using
instances of this class should make code more readable and constructors less complicated.| Modifier and Type | Field and Description |
|---|---|
double |
bias
If
SupportVectorMachine.bias >= 0, an instance vector x becomes [x; bias];
otherwise, if SupportVectorMachine.bias < 0, no bias term is added. |
double |
C
The cost parameter C; default
SupportVectorMachine.defaultC |
boolean |
displayLL
Determines if
liblinear-related output should be displayed; default
false |
double |
epsilon
The tolerance of termination criterion; default
SupportVectorMachine.defaultEpsilon. |
String |
solverType
The type of solver; default
SupportVectorMachine.defaultSolverType. |
rounds| Constructor and Description |
|---|
Parameters()
Sets all the default values.
|
Parameters(Learner.Parameters p)
Sets the parameters from the parent's parameters object, giving defaults to all
parameters declared in this object.
|
Parameters(SupportVectorMachine.Parameters p)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static de.bwaldvogel.liblinear.SolverType |
getSolverType(String stype)
Converts the string representation of the solver type into a
liblinear.SolverType object to be used by liblinear during
training. |
String |
nonDefaultString()
Creates a string representation of these parameters in which only those parameters that
differ from their default values are mentioned.
|
void |
setParameters(Learner l)
Calls the appropriate
Learner.setParameters(Parameters) method for this
Parameters object. |
public String solverType
SupportVectorMachine.defaultSolverType.
Possible values:
public double C
SupportVectorMachine.defaultCpublic double epsilon
SupportVectorMachine.defaultEpsilon.public double bias
SupportVectorMachine.bias >= 0, an instance vector x becomes [x; bias];
otherwise, if SupportVectorMachine.bias < 0, no bias term is added.public boolean displayLL
liblinear-related output should be displayed; default
falsepublic Parameters()
public Parameters(Learner.Parameters p)
public Parameters(SupportVectorMachine.Parameters p)
public void setParameters(Learner l)
Learner.setParameters(Parameters) method for this
Parameters object.setParameters in class Learner.Parametersl - The learner whose parameters will be set.public static de.bwaldvogel.liblinear.SolverType getSolverType(String stype)
liblinear.SolverType object to be used by liblinear during
training.stype - The solver type string.liblinear.SolverType object.public String nonDefaultString()
nonDefaultString in class Learner.ParametersCopyright © 2016. All rights reserved.