cc.mallet.types
Class InfoGain
- java.lang.Object
-
- cc.mallet.types.SparseVector
-
- cc.mallet.types.FeatureVector
-
- cc.mallet.types.RankedFeatureVector
-
- cc.mallet.types.InfoGain
-
- All Implemented Interfaces:
- AlphabetCarrying, ConstantMatrix, Vector, java.io.Serializable
public class InfoGain extends RankedFeatureVector
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classInfoGain.Factory-
Nested classes/interfaces inherited from class cc.mallet.types.RankedFeatureVector
RankedFeatureVector.PerLabelFactory
-
-
Constructor Summary
Constructors Constructor and Description InfoGain(Alphabet vocab, double[] infogains)InfoGain(InstanceList ilist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetBaseEntropy()LabelVectorgetBaseLabelDistribution()-
Methods inherited from class cc.mallet.types.RankedFeatureVector
getIndexAtRank, getMaxValue, getMaxValuedIndex, getMaxValuedIndexIn, getMaxValuedObject, getMaxValuedObjectIn, getMaxValueIn, getObjectAtRank, getRank, getRank, getValueAtRank, printByRank, printByRank, printLowerK, printTopK, set
-
Methods inherited from class cc.mallet.types.FeatureVector
alphabetsMatch, cloneMatrix, cloneMatrixZeroed, contains, getAlphabet, getAlphabets, getObjectIndices, location, newFeatureVector, toSimpFile, toString, toString, value
-
Methods inherited from class cc.mallet.types.SparseVector
absNorm, addTo, addTo, arrayCopyFrom, arrayCopyFrom, arrayCopyInto, dotProduct, dotProduct, dotProduct, dotProduct, extendedDotProduct, extendedDotProduct, getDimensions, getIndices, getNumDimensions, getValues, incrementValue, indexAtLocation, infinityNorm, isBinary, isInfinite, isNaN, isNaNOrInfinite, location, makeBinary, makeNonBinary, map, numLocations, oneNorm, plusEqualsSparse, plusEqualsSparse, print, setAll, setValue, setValueAtLocation, singleIndex, singleSize, singleToIndices, singleValue, timesEquals, timesEqualsSparse, timesEqualsSparse, timesEqualsSparseZero, twoNorm, value, value, valueAtLocation, vectorAdd
-
-
-
-
Constructor Detail
-
InfoGain
public InfoGain(InstanceList ilist)
-
InfoGain
public InfoGain(Alphabet vocab, double[] infogains)
-
-
Method Detail
-
getBaseEntropy
public double getBaseEntropy()
-
getBaseLabelDistribution
public LabelVector getBaseLabelDistribution()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG