|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.fst.semi_supervised.GECriterion
public abstract class GECriterion
| Field Summary | |
|---|---|
protected double |
count
|
protected double[] |
expectation
|
protected java.lang.String |
name
|
protected double[] |
target
|
protected double |
weight
|
| Constructor Summary | |
|---|---|
GECriterion(java.lang.String name,
double[] target,
double weight)
|
|
| Method Summary | |
|---|---|
double |
getCount()
Returns the count of the feature. |
double[] |
getExpectation()
Returns the model expectation of the feature. |
double |
getExpectation(int li)
Returns the model expectation for the feature and label li. |
protected abstract double |
getGradientConstant(int labelIndex)
Returns the constant value from the gradient, which will be different for different criteria. |
java.lang.String |
getName()
Returns the constraint name. |
double[] |
getTarget()
Returns the target expectation for the feature. |
double |
getTarget(int li)
Returns the target expectation for the feature and label li. |
double |
getWeight()
Returns the weight (gamma) for the constraint. |
protected void |
setCount(double count)
|
protected void |
setExpectation(double[] expectation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected double weight
protected double[] target
protected double[] expectation
protected double count
| Constructor Detail |
|---|
public GECriterion(java.lang.String name,
double[] target,
double weight)
| Method Detail |
|---|
public java.lang.String getName()
public double getWeight()
public double[] getTarget()
public double getTarget(int li)
li - label indexpublic double[] getExpectation()
public double getExpectation(int li)
li - label indexprotected void setExpectation(double[] expectation)
public double getCount()
protected void setCount(double count)
protected abstract double getGradientConstant(int labelIndex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||