public abstract class AbstractConfidenceWeightedBinaryCategorizer extends LinearBinaryCategorizer implements ConfidenceWeightedBinaryCategorizer
bias, DEFAULT_BIAS, weightsBINARY_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, toStringevaluate, evaluateWithDiscriminantgetCategoriesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluateAsGaussian, getCovariancegetInputDimensionalitygetThreshold, setThresholdevaluateAsDoubleevaluateWithDiscriminantgetCategoriesclonepublic AbstractConfidenceWeightedBinaryCategorizer()
AbstractConfidenceWeightedBinaryCategorizer.public AbstractConfidenceWeightedBinaryCategorizer(Vector mean)
AbstractConfidenceWeightedBinaryCategorizer with
the given mean vector.mean - The mean vector.public BernoulliDistribution evaluateAsBernoulli(Vectorizable input)
ConfidenceWeightedBinaryCategorizerevaluateAsBernoulli in interface ConfidenceWeightedBinaryCategorizerinput - The input to evaluate.public boolean isInitialized()
ConfidenceWeightedBinaryCategorizerisInitialized in interface ConfidenceWeightedBinaryCategorizerpublic MultivariateGaussian createWeightDistribution()
ConfidenceWeightedBinaryCategorizercreateWeightDistribution in interface ConfidenceWeightedBinaryCategorizerpublic Vector getMean()
getMean in interface ConfidenceWeightedBinaryCategorizerpublic void setMean(Vector mean)
mean - The mean of the categorizer.