|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmaxent.Train
public class Train
The Class Train.
| Field Summary | |
|---|---|
Model |
model
The model. |
int |
numFeatures
The num features. |
int |
numLabels
The num labels. |
| Constructor Summary | |
|---|---|
Train()
Instantiates a new train. |
|
| Method Summary | |
|---|---|
double |
computeLogLiGradient(double[] lambda,
double[] gradLogLi,
int numIter,
java.io.PrintWriter fout)
Compute log li gradient. |
void |
doTrain(java.io.PrintWriter fout)
Do train. |
void |
init()
Inits the. |
static double |
norm(double[] vect)
Norm. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Model model
public int numLabels
public int numFeatures
| Constructor Detail |
|---|
public Train()
| Method Detail |
|---|
public void init()
public static double norm(double[] vect)
vect - the vect
public void doTrain(java.io.PrintWriter fout)
fout - the fout
public double computeLogLiGradient(double[] lambda,
double[] gradLogLi,
int numIter,
java.io.PrintWriter fout)
lambda - the lambdagradLogLi - the grad log linumIter - the num iterfout - the fout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||