public class AveragedRegressor extends Object implements Regressor
Modifier and Type | Field and Description |
---|---|
protected Regressor[] |
voters
The array of voting regressors
|
Constructor and Description |
---|
AveragedRegressor(List<Regressor> voters)
Constructs a new averaged regressor using the given list of voters.
|
AveragedRegressor(Regressor... voters)
Constructs a new averaged regressor using the given array of voters
|
Modifier and Type | Method and Description |
---|---|
AveragedRegressor |
clone() |
double |
regress(DataPoint data) |
boolean |
supportsWeightedData() |
void |
train(RegressionDataSet dataSet) |
void |
train(RegressionDataSet dataSet,
ExecutorService threadPool) |
protected Regressor[] voters
public AveragedRegressor(Regressor... voters)
voters
- the array of voters to usepublic void train(RegressionDataSet dataSet, ExecutorService threadPool)
public void train(RegressionDataSet dataSet)
public boolean supportsWeightedData()
supportsWeightedData
in interface Regressor
public AveragedRegressor clone()
Copyright © 2017. All rights reserved.