public class DiagonalConfidenceWeightedBinaryCategorizer extends AbstractConfidenceWeightedBinaryCategorizer
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
variance
The variance values, which is the diagonal of the covariance
matrix.
|
bias, DEFAULT_BIAS, weightsBINARY_CATEGORIES| Constructor and Description |
|---|
DiagonalConfidenceWeightedBinaryCategorizer()
Creates a new
DiagonalConfidenceWeightedBinaryCategorizer. |
| Modifier and Type | Method and Description |
|---|---|
UnivariateGaussian |
evaluateAsGaussian(Vectorizable input)
Returns the univariate Gaussian distribution over the output of
the distribution of weight vectors times the input, with the
confidence that the categorizer was trained using.
|
DiagonalMatrix |
getCovariance()
Gets the covariance matrix of the categorizer.
|
Vector |
getVariance()
Gets the variance vector.
|
boolean |
isInitialized()
Determines if this category has been initialized with a mean and
covariance.
|
void |
setVariance(Vector variance)
Sets the variance vector.
|
createWeightDistribution, evaluateAsBernoulli, getMean, setMeanclone, evaluateAsDouble, evaluateAsDouble, getBias, getInputDimensionality, getThreshold, getWeights, setBias, setThreshold, setWeights, toStringevaluate, evaluateWithDiscriminantgetCategoriesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInputDimensionalitygetThreshold, setThresholdevaluateAsDoubleevaluateWithDiscriminantgetCategoriescloneprotected Vector variance
public DiagonalConfidenceWeightedBinaryCategorizer()
DiagonalConfidenceWeightedBinaryCategorizer.public UnivariateGaussian evaluateAsGaussian(Vectorizable input)
ConfidenceWeightedBinaryCategorizerinput - The input to evaluate.public boolean isInitialized()
ConfidenceWeightedBinaryCategorizerisInitialized in interface ConfidenceWeightedBinaryCategorizerisInitialized in class AbstractConfidenceWeightedBinaryCategorizerpublic DiagonalMatrix getCovariance()
ConfidenceWeightedBinaryCategorizerpublic Vector getVariance()
public void setVariance(Vector variance)
variance - The variance vector.