public class BaggingLearning extends java.lang.Object implements IRegression
| Constructor and Description |
|---|
BaggingLearning(IRegression regression)
Initializes a new instance of the BaggingLearning class.
|
BaggingLearning(IRegression regression,
int times)
Initializes a new instance of the BaggingLearning class.
|
BaggingLearning(IRegression regression,
int times,
boolean includeAttributes)
Initializes a new instance of the BaggingLearning class.
|
| Modifier and Type | Method and Description |
|---|---|
IRegression |
clone()
Clone of the object.
|
boolean |
isIncludeAttributes()
Check if features are drawn with replacement.
|
void |
Learn(DatasetRegression dataset)
Learn.
|
void |
Learn(double[][] input,
double[] output)
Learn.
|
double |
Predict(double[] sample)
Predict.
|
void |
setIncludeAttributes(boolean includeAttributes)
Set attributes in the bagging model.
|
public BaggingLearning(IRegression regression)
regression - Regression.public BaggingLearning(IRegression regression, int times)
regression - Regression.times - Times to train.public BaggingLearning(IRegression regression, int times, boolean includeAttributes)
regression - regression.times - Times to train.includeAttributes - Include attributes in the bagging process.public boolean isIncludeAttributes()
public void setIncludeAttributes(boolean includeAttributes)
includeAttributes - True, if the feature are included, otherwise false.public void Learn(DatasetRegression dataset)
IRegressionLearn in interface IRegressiondataset - Dataset regression.public void Learn(double[][] input,
double[] output)
IRegressionLearn in interface IRegressioninput - Input.output - Output.public double Predict(double[] sample)
IRegressionPredict in interface IRegressionsample - Feature.public IRegression clone()
IRegressionclone in interface IRegressionclone in class java.lang.Object