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, weights
BINARY_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, setMean
clone, evaluateAsDouble, evaluateAsDouble, getBias, getInputDimensionality, getThreshold, getWeights, setBias, setThreshold, setWeights, toString
evaluate, evaluateWithDiscriminant
getCategories
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputDimensionality
getThreshold, setThreshold
evaluateAsDouble
evaluateWithDiscriminant
getCategories
clone
protected Vector variance
public DiagonalConfidenceWeightedBinaryCategorizer()
DiagonalConfidenceWeightedBinaryCategorizer
.public UnivariateGaussian evaluateAsGaussian(Vectorizable input)
ConfidenceWeightedBinaryCategorizer
input
- The input to evaluate.public boolean isInitialized()
ConfidenceWeightedBinaryCategorizer
isInitialized
in interface ConfidenceWeightedBinaryCategorizer
isInitialized
in class AbstractConfidenceWeightedBinaryCategorizer
public DiagonalMatrix getCovariance()
ConfidenceWeightedBinaryCategorizer
public Vector getVariance()
public void setVariance(Vector variance)
variance
- The variance vector.