public static enum NaiveBayes.NumericalHandeling extends Enum<NaiveBayes.NumericalHandeling>
Enum Constant and Description |
---|
BEST_FIT
The best fitting
ContinuousDistribution is selected by
DistributionSearch.getBestDistribution(jsat.linear.Vec) |
BEST_FIT_KDE
The best fitting
ContinuousDistribution is selected by
DistributionSearch.getBestDistribution(jsat.linear.Vec, double) ,
and provides a cut off value to use the KernelDensityEstimator instead |
NORMAL
All numerical attributes are fit to a
Normal distribution. |
Modifier and Type | Method and Description |
---|---|
protected abstract ContinuousDistribution |
fit(Vec y) |
static NaiveBayes.NumericalHandeling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NaiveBayes.NumericalHandeling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NaiveBayes.NumericalHandeling NORMAL
Normal
distribution.public static final NaiveBayes.NumericalHandeling BEST_FIT
ContinuousDistribution
is selected by
DistributionSearch.getBestDistribution(jsat.linear.Vec)
public static final NaiveBayes.NumericalHandeling BEST_FIT_KDE
ContinuousDistribution
is selected by
DistributionSearch.getBestDistribution(jsat.linear.Vec, double)
,
and provides a cut off value to use the KernelDensityEstimator
insteadpublic static NaiveBayes.NumericalHandeling[] values()
for (NaiveBayes.NumericalHandeling c : NaiveBayes.NumericalHandeling.values()) System.out.println(c);
public static NaiveBayes.NumericalHandeling valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract ContinuousDistribution fit(Vec y)
Copyright © 2017. All rights reserved.