public class WaggingNormal extends Wagging
Normal
distribution.Modifier | Constructor and Description |
---|---|
|
WaggingNormal(Classifier weakLearner,
int interations)
Creates a new Wagging classifier
|
|
WaggingNormal(Regressor weakLearner,
int interations)
Creates a new Wagging regressor
|
protected |
WaggingNormal(Wagging clone)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
WaggingNormal |
clone() |
ContinuousDistribution |
getDistribution()
Returns the distribution used for weight sampling
|
double |
getMean()
Returns the mean value used for the normal distribution
|
double |
getStandardDeviations()
Returns the standard deviation used for the normal distribution
|
void |
setDistribution(ContinuousDistribution dist)
Sets the distribution to select the random weights from
|
void |
setMean(double mean)
Sets the mean value used for the normal distribution
|
void |
setStandardDeviations(double devs)
Sets the standard deviations used for the normal distribution
|
classify, getIterations, getParameter, getParameters, getWeakClassifier, getWeakRegressor, regress, setIterations, setWeakLearner, setWeakLearner, supportsWeightedData, train, train, trainC, trainC
public WaggingNormal(Classifier weakLearner, int interations)
weakLearner
- the weak learner to useinterations
- the number of iterations to performpublic WaggingNormal(Regressor weakLearner, int interations)
weakLearner
- the weak learner to useinterations
- the number of iterations to performprotected WaggingNormal(Wagging clone)
clone
- to copypublic ContinuousDistribution getDistribution()
Wagging
getDistribution
in class Wagging
public void setDistribution(ContinuousDistribution dist)
Wagging
setDistribution
in class Wagging
dist
- the distribution to usepublic void setMean(double mean)
mean
- the new mean valuepublic double getMean()
public void setStandardDeviations(double devs)
devs
- the standard deviations to setpublic double getStandardDeviations()
public WaggingNormal clone()
Copyright © 2017. All rights reserved.