public class SVMLightClassifier<L,F> extends LinearClassifier<L,F>
| Modifier and Type | Field and Description |
|---|---|
LinearClassifier<L,L> |
platt |
intern, TEXT_SERIALIZATION_DELIMITER| Constructor and Description |
|---|
SVMLightClassifier(ClassicCounter<Pair<F,L>> weightCounter,
ClassicCounter<L> thresholds) |
SVMLightClassifier(ClassicCounter<Pair<F,L>> weightCounter,
ClassicCounter<L> thresholds,
LinearClassifier<L,L> platt) |
| Modifier and Type | Method and Description |
|---|---|
Counter<L> |
logProbabilityOf(Datum<L,F> example)
Returns a counter for the log probability of each of the classes
looking at the the sum of e^v for each count v, should be 1
Note: Uses SloppyMath.logSum which isn't exact but isn't as
offensively slow as doing a series of exponentials
|
Counter<L> |
logProbabilityOf(RVFDatum<L,F> example)
Returns a counter for the log probability of each of the classes
looking at the the sum of e^v for each count v, should be 1
Note: Uses SloppyMath.logSum which isn't exact but isn't as
offensively slow as doing a series of exponentials
|
void |
setPlatt(LinearClassifier<L,L> platt) |
adaptWeights, classOf, classOf, dump, dump, dumpSorted, featureIndex, features, getFeatureCount, getFeatureCount, getFeatureCountLabelIndices, getLabelIndices, getTopFeatures, getTopFeatures, getTopFeaturesLabelIndices, justificationOf, justificationOf, justificationOf, justificationOf, justificationOf, justificationOf, justificationOf, labelIndex, labels, logProbabilityOf, probabilityOf, probabilityOf, probabilityOf, readClassifier, saveToFilename, scoreOf, scoreOf, scoresOf, scoresOf, scoresOf, scoresOf, setWeights, toAllWeightsString, toBiggestWeightFeaturesString, toDistributionString, toHistogramString, topFeaturesToString, toString, toString, totalSize, weight, weights, weightsAsMapOfCounters, writeClassifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluateAccuracy, evaluatePrecisionAndRecallpublic LinearClassifier<L,L> platt
public SVMLightClassifier(ClassicCounter<Pair<F,L>> weightCounter, ClassicCounter<L> thresholds)
public SVMLightClassifier(ClassicCounter<Pair<F,L>> weightCounter, ClassicCounter<L> thresholds, LinearClassifier<L,L> platt)
public void setPlatt(LinearClassifier<L,L> platt)
public Counter<L> logProbabilityOf(Datum<L,F> example)
logProbabilityOf in interface ProbabilisticClassifier<L,F>logProbabilityOf in class LinearClassifier<L,F>public Counter<L> logProbabilityOf(RVFDatum<L,F> example)
logProbabilityOf in class LinearClassifier<L,F>