public static class AdaBoost.Parameters extends Learner.Parameters
AdaBoost
's configurable parameters. Using instances of this
class should make code more readable and constructors less complicated.Modifier and Type | Field and Description |
---|---|
protected int |
rounds
The number of times the weak learner will be called.
|
protected Learner |
weakLearner
The weak learning algorithm to be boosted.
|
Constructor and Description |
---|
Parameters()
Sets all the default values.
|
Parameters(AdaBoost.Parameters p)
Copy constructor.
|
Parameters(Learner.Parameters p)
Sets the parameters from the parent's parameters object, giving defaults to all
parameters declared in this object.
|
Modifier and Type | Method and Description |
---|---|
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. |
protected Learner weakLearner
protected int rounds
public Parameters()
public Parameters(Learner.Parameters p)
public Parameters(AdaBoost.Parameters p)
public void setParameters(Learner l)
Learner.setParameters(Parameters)
method for this
Parameters
object.setParameters
in class Learner.Parameters
l
- The learner whose parameters will be set.public String nonDefaultString()
nonDefaultString
in class Learner.Parameters
Copyright © 2016. All rights reserved.