Uses of Class
cc.mallet.types.SparseVector
-
Packages that use SparseVector Package Description cc.mallet.cluster Unsupervised clustering ofInstance
objects within anInstanceList
.cc.mallet.fst Transducers, including Conditional Random Fields (CRFs).cc.mallet.types Fundamental MALLET types, including FeatureVector, Instance, Label etc.cc.mallet.util Miscellaneous utilities including command line processing, math functions, lexing, logging. -
-
Uses of SparseVector in cc.mallet.cluster
Methods in cc.mallet.cluster that return types with arguments of type SparseVector Modifier and Type Method Description java.util.ArrayList<SparseVector>
KMeans. getClusterMeans()
Return the ArrayList of cluster means after a run of the algorithm. -
Uses of SparseVector in cc.mallet.fst
Fields in cc.mallet.fst declared as SparseVector Modifier and Type Field Description SparseVector[]
CRF.Factors. weights
Methods in cc.mallet.fst that return SparseVector Modifier and Type Method Description SparseVector[]
CRF. getWeights()
SparseVector
CRF. getWeights(int weightIndex)
SparseVector
CRF. getWeights(java.lang.String weightName)
Methods in cc.mallet.fst with parameters of type SparseVector Modifier and Type Method Description void
CRF. setWeights(int weightsIndex, SparseVector transitionWeights)
void
CRF. setWeights(SparseVector[] m)
void
CRF. setWeights(java.lang.String weightName, SparseVector transitionWeights)
-
Uses of SparseVector in cc.mallet.types
Subclasses of SparseVector in cc.mallet.types Modifier and Type Class Description class
AugmentableFeatureVector
class
BiNormalSeparation
Bi-Normal Separation is a feature weighting algorithm introduced in: An Extensive Empirical Study of Feature Selection Metrics for Text Classification, George Forman, Journal of Machine Learning Research, 3:1289--1305, 2003.class
ExpGain
class
FeatureCounts
class
FeatureVector
A subset of anAlphabet
in which each element of the subset has an associated value.class
GainRatio
List of features along with their thresholds sorted in descending order of the ratio of (1) information gained by splitting instances on the feature at its associated threshold value, to (2) the split information.class
GradientGain
class
HashedSparseVector
class
IndexedSparseVector
class
InfoGain
class
KLGain
class
LabelVector
class
Multinomial
A probability distribution over a set of features represented as aFeatureVector
.static class
Multinomial.Logged
A Multinomial in which the values associated with each feature index fi is Math.log(probability[fi]) instead of probability[fi].class
PartiallyRankedFeatureVector
class
RankedFeatureVector
Methods in cc.mallet.types that return SparseVector Modifier and Type Method Description SparseVector
AugmentableFeatureVector. toSparseVector()
SparseVector
SparseVector. vectorAdd(SparseVector v, double scale)
Methods in cc.mallet.types with parameters of type SparseVector Modifier and Type Method Description double
CachedMetric. distance(SparseVector a, int hashCodeA, SparseVector b, int hashCodeB)
double
EuclideanDistance. distance(SparseVector a, SparseVector b)
double
InfiniteDistance. distance(SparseVector a, SparseVector b)
double
ManhattenDistance. distance(SparseVector a, SparseVector b)
double
Metric. distance(SparseVector a, SparseVector b)
double
Minkowski. distance(SparseVector a, SparseVector b)
Gives the Minkowski distance between two vectors.double
NormalizedDotProductMetric. distance(SparseVector a, int hashCodeA, SparseVector b, int hashCodeB)
double
NormalizedDotProductMetric. distance(SparseVector a, SparseVector b)
double
AugmentableFeatureVector. dotProduct(SparseVector v)
double
HashedSparseVector. dotProduct(SparseVector v)
double
IndexedSparseVector. dotProduct(SparseVector v)
double
SparseVector. dotProduct(SparseVector v)
double
SparseVector. extendedDotProduct(SparseVector v)
void
AugmentableFeatureVector. plusEquals(SparseVector v)
void
AugmentableFeatureVector. plusEquals(SparseVector v, double factor)
void
HashedSparseVector. plusEqualsSparse(SparseVector v)
void
HashedSparseVector. plusEqualsSparse(SparseVector v, double factor)
void
IndexedSparseVector. plusEqualsSparse(SparseVector v)
void
IndexedSparseVector. plusEqualsSparse(SparseVector v, double factor)
void
SparseVector. plusEqualsSparse(SparseVector v)
For each index i that is present in this vector, set this[i] += v[i].void
SparseVector. plusEqualsSparse(SparseVector v, double factor)
For each index i that is present in this vector, set this[i] += factor * v[i].void
SparseVector. timesEqualsSparse(SparseVector v)
For each index i that is present in this vector, set this[i] *= v[i].void
SparseVector. timesEqualsSparse(SparseVector v, double factor)
For each index i that is present in this vector, set this[i] *= factor * v[i].void
SparseVector. timesEqualsSparseZero(SparseVector v, double factor)
For each index i that is present in this vector, set this[i] *= factor * v[i].SparseVector
SparseVector. vectorAdd(SparseVector v, double scale)
Constructors in cc.mallet.types with parameters of type SparseVector Constructor Description PartiallyRankedFeatureVector(Alphabet dict, SparseVector v)
RankedFeatureVector(Alphabet dict, SparseVector v)
-
Uses of SparseVector in cc.mallet.util
Methods in cc.mallet.util that return SparseVector Modifier and Type Method Description static SparseVector
VectorStats. mean(InstanceList instances)
Returns aSparseVector
whose entries (taken from the union of those in the instances) are the expected values of those in theInstanceList
.static SparseVector
VectorStats. mean(InstanceList instances, int numIndices)
Returns aSparseVector
whose entries (dense with the given number of indices) are the expected values of those in theInstanceList
.static SparseVector
VectorStats. mean(InstanceList instances, int[] indices)
Returns aSparseVector
whose entries (the given indices) are the expected values of those in theInstanceList
.static SparseVector
VectorStats. stddev(InstanceList instances)
Square root of unbiased variance.static SparseVector
VectorStats. stddev(InstanceList instances, boolean unbiased)
Square root of variance.static SparseVector
VectorStats. stddev(InstanceList instances, SparseVector mean)
Square root of unbiased variance of instances having the given meanstatic SparseVector
VectorStats. stddev(InstanceList instances, SparseVector mean, boolean unbiased)
Square root of variance.static SparseVector
VectorStats. variance(InstanceList instances)
Returns unbiased variancestatic SparseVector
VectorStats. variance(InstanceList instances, boolean unbiased)
Returns aSparseVector
whose entries (taken from the union of those in the instances) are the variance of those in theInstanceList
.static SparseVector
VectorStats. variance(InstanceList instances, SparseVector mean)
Returns unbiased variance of instances having the given mean.static SparseVector
VectorStats. variance(InstanceList instances, SparseVector mean, boolean unbiased)
Returns aSparseVector
whose entries (taken from the mean argument) are the variance of those in theInstanceList
.Methods in cc.mallet.util with parameters of type SparseVector Modifier and Type Method Description static SparseVector
VectorStats. stddev(InstanceList instances, SparseVector mean)
Square root of unbiased variance of instances having the given meanstatic SparseVector
VectorStats. stddev(InstanceList instances, SparseVector mean, boolean unbiased)
Square root of variance.static SparseVector
VectorStats. variance(InstanceList instances, SparseVector mean)
Returns unbiased variance of instances having the given mean.static SparseVector
VectorStats. variance(InstanceList instances, SparseVector mean, boolean unbiased)
Returns aSparseVector
whose entries (taken from the mean argument) are the variance of those in theInstanceList
.
-