public abstract class AbstractConfidenceWeightedBinaryCategorizer extends LinearBinaryCategorizer implements ConfidenceWeightedBinaryCategorizer
bias, DEFAULT_BIAS, weights
BINARY_CATEGORIES
Constructor and Description |
---|
AbstractConfidenceWeightedBinaryCategorizer()
Creates a new, uninitialized
AbstractConfidenceWeightedBinaryCategorizer . |
AbstractConfidenceWeightedBinaryCategorizer(Vector mean)
Creates a new
AbstractConfidenceWeightedBinaryCategorizer with
the given mean vector. |
Modifier and Type | Method and Description |
---|---|
MultivariateGaussian |
createWeightDistribution()
Creates a multivariate Gaussian distribution that represents the
distribution of weight vectors that the algorithm has learned.
|
BernoulliDistribution |
evaluateAsBernoulli(Vectorizable input)
Returns a Bernoulli distribution over the output of
the distribution of weight vectors times the input, with the
confidence that the categorizer was trained using.
|
Vector |
getMean()
Gets the mean of the categorizer, which is the weight vector.
|
boolean |
isInitialized()
Determines if this category has been initialized with a mean and
covariance.
|
void |
setMean(Vector mean)
Sets the mean of the categorizer, which is the weight vector.
|
clone, evaluateAsDouble, evaluateAsDouble, getBias, getInputDimensionality, getThreshold, getWeights, setBias, setThreshold, setWeights, toString
evaluate, evaluateWithDiscriminant
getCategories
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluateAsGaussian, getCovariance
getInputDimensionality
getThreshold, setThreshold
evaluateAsDouble
evaluateWithDiscriminant
getCategories
clone
public AbstractConfidenceWeightedBinaryCategorizer()
AbstractConfidenceWeightedBinaryCategorizer
.public AbstractConfidenceWeightedBinaryCategorizer(Vector mean)
AbstractConfidenceWeightedBinaryCategorizer
with
the given mean vector.mean
- The mean vector.public BernoulliDistribution evaluateAsBernoulli(Vectorizable input)
ConfidenceWeightedBinaryCategorizer
evaluateAsBernoulli
in interface ConfidenceWeightedBinaryCategorizer
input
- The input to evaluate.public boolean isInitialized()
ConfidenceWeightedBinaryCategorizer
isInitialized
in interface ConfidenceWeightedBinaryCategorizer
public MultivariateGaussian createWeightDistribution()
ConfidenceWeightedBinaryCategorizer
createWeightDistribution
in interface ConfidenceWeightedBinaryCategorizer
public Vector getMean()
getMean
in interface ConfidenceWeightedBinaryCategorizer
public void setMean(Vector mean)
mean
- The mean of the categorizer.