Package moa.classifiers.rules.core
Class Rule.Builder
- java.lang.Object
-
- moa.classifiers.rules.core.Rule.Builder
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Rule
public static class Rule.Builder extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
alpha
AbstractAMRules
amRules
protected boolean
changeDetection
FlagOption
constantLearningRatioDecayOption
int
id
protected double
lastTargetMean
FloatOption
learningRatioOption
protected int
predictionFunction
protected double[]
statistics
protected double
threshold
protected boolean
usePerceptron
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Builder
alpha(double alpha)
Rule.Builder
amRules(AbstractAMRules amRules)
Rule
build()
Rule.Builder
changeDetection(boolean changeDetection)
AbstractAMRules
getAMRules()
Rule
getOwner()
Rule.Builder
id(int id)
Rule.Builder
owner(Rule owner)
Rule.Builder
predictionFunction(int predictionFunction)
void
setOwner(Rule owner)
Rule.Builder
statistics(double[] statistics)
Rule.Builder
threshold(double threshold)
-
-
-
Field Detail
-
changeDetection
protected boolean changeDetection
-
usePerceptron
protected boolean usePerceptron
-
threshold
protected double threshold
-
alpha
protected double alpha
-
predictionFunction
protected int predictionFunction
-
statistics
protected double[] statistics
-
lastTargetMean
protected double lastTargetMean
-
constantLearningRatioDecayOption
public FlagOption constantLearningRatioDecayOption
-
learningRatioOption
public FloatOption learningRatioOption
-
id
public int id
-
amRules
public AbstractAMRules amRules
-
-
Method Detail
-
getAMRules
public AbstractAMRules getAMRules()
-
changeDetection
public Rule.Builder changeDetection(boolean changeDetection)
-
threshold
public Rule.Builder threshold(double threshold)
-
alpha
public Rule.Builder alpha(double alpha)
-
predictionFunction
public Rule.Builder predictionFunction(int predictionFunction)
-
statistics
public Rule.Builder statistics(double[] statistics)
-
owner
public Rule.Builder owner(Rule owner)
-
amRules
public Rule.Builder amRules(AbstractAMRules amRules)
-
id
public Rule.Builder id(int id)
-
build
public Rule build()
-
getOwner
public Rule getOwner()
-
setOwner
public void setOwner(Rule owner)
-
-