jsat.classifiers.boosting
Class WaggingNormal
- java.lang.Object
-
- jsat.classifiers.boosting.Wagging
-
- jsat.classifiers.boosting.WaggingNormal
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Classifier, Parameterized, Regressor
public class WaggingNormal extends Wagging
Wagging using theNormaldistribution.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description WaggingNormal(Classifier weakLearner, int interations)Creates a new Wagging classifierWaggingNormal(Regressor weakLearner, int interations)Creates a new Wagging regressor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description WaggingNormalclone()ContinuousDistributiongetDistribution()Returns the distribution used for weight samplingdoublegetMean()Returns the mean value used for the normal distributiondoublegetStandardDeviations()Returns the standard deviation used for the normal distributionvoidsetDistribution(ContinuousDistribution dist)Sets the distribution to select the random weights fromvoidsetMean(double mean)Sets the mean value used for the normal distributionvoidsetStandardDeviations(double devs)Sets the standard deviations used for the normal distribution-
Methods inherited from class jsat.classifiers.boosting.Wagging
classify, getIterations, getWeakClassifier, getWeakRegressor, regress, setIterations, setWeakLearner, setWeakLearner, supportsWeightedData, train, train
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.classifiers.Classifier
train
-
Methods inherited from interface jsat.parameters.Parameterized
getParameter, getParameters
-
-
-
-
Constructor Detail
-
WaggingNormal
public WaggingNormal(Classifier weakLearner, int interations)
Creates a new Wagging classifier- Parameters:
weakLearner- the weak learner to useinterations- the number of iterations to perform
-
WaggingNormal
public WaggingNormal(Regressor weakLearner, int interations)
Creates a new Wagging regressor- Parameters:
weakLearner- the weak learner to useinterations- the number of iterations to perform
-
-
Method Detail
-
getDistribution
public ContinuousDistribution getDistribution()
Description copied from class:WaggingReturns the distribution used for weight sampling- Overrides:
getDistributionin classWagging- Returns:
- the distribution used
-
setDistribution
public void setDistribution(ContinuousDistribution dist)
Description copied from class:WaggingSets the distribution to select the random weights from- Overrides:
setDistributionin classWagging- Parameters:
dist- the distribution to use
-
setMean
public void setMean(double mean)
Sets the mean value used for the normal distribution- Parameters:
mean- the new mean value
-
getMean
public double getMean()
Returns the mean value used for the normal distribution- Returns:
- the mean value used
-
setStandardDeviations
public void setStandardDeviations(double devs)
Sets the standard deviations used for the normal distribution- Parameters:
devs- the standard deviations to set
-
getStandardDeviations
public double getStandardDeviations()
Returns the standard deviation used for the normal distribution- Returns:
- the standard deviation used
-
clone
public WaggingNormal clone()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG