public class ComplementaryThetaTrainer extends Object
Constructor and Description |
---|
ComplementaryThetaTrainer(Vector weightsPerFeature,
Vector weightsPerLabel,
double alphaI) |
Modifier and Type | Method and Description |
---|---|
protected double |
alphaI() |
protected double |
featureWeight(int feature) |
protected double |
labelWeight(int label) |
protected double |
numFeatures() |
Vector |
retrievePerLabelThetaNormalizer() |
protected double |
totalWeightSum() |
void |
train(int label,
Vector perLabelWeight) |
protected void |
updatePerLabelThetaNormalizer(int label,
double weight) |
public void train(int label, Vector perLabelWeight)
protected double alphaI()
protected double numFeatures()
protected double labelWeight(int label)
protected double totalWeightSum()
protected double featureWeight(int feature)
protected void updatePerLabelThetaNormalizer(int label, double weight)
public Vector retrievePerLabelThetaNormalizer()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.