jmaxent
Class Option

java.lang.Object
  extended by jmaxent.Option

public class Option
extends java.lang.Object

The Class Option.


Field Summary
 int cpRareThreshold
          The cp rare threshold.
 int debugLevel
          The debug level.
 double epsForConvergence
          The eps for convergence.
 boolean evaluateDuringTraining
          The evaluate during training.
 int fRareThreshold
          The rare threshold.
 double initLambdaVal
          The init lambda val.
 boolean isLogging
          The is logging.
static java.lang.String labelSeparator
          The label separator.
 int mForHessian
          The m for hessian.
 java.lang.String modelDir
          The model dir.
 java.lang.String modelFile
          The model file.
static java.lang.String modelSeparator
          The model separator.
 int numCps
          The num cps.
 int numFeatures
          The num features.
 int numIterations
          The num iterations.
 int numLabels
          The num labels.
 int numTestExps
          The num test exps.
 int numTrainExps
          The num train exps.
 java.lang.String optionFile
          The option file.
 boolean saveBestModel
          The save best model.
 double sigmaSquare
          The sigma square.
 java.lang.String testDataFile
          The test data file.
 java.lang.String trainDataFile
          The train data file.
 java.lang.String trainLogFile
          The train log file.
 
Constructor Summary
Option()
          Instantiates a new option.
Option(java.lang.String modelDir)
          Instantiates a new option.
 
Method Summary
 java.io.PrintWriter createModelFile()
          Creates the model file.
 java.io.BufferedReader openModelFile()
          Open model file.
 java.io.PrintWriter openTrainLogFile()
          Open train log file.
 boolean readOptions()
          Read options.
 void writeOptions(java.io.PrintWriter fout)
          Write options.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelDir

public java.lang.String modelDir
The model dir.


modelFile

public java.lang.String modelFile
The model file.


modelSeparator

public static java.lang.String modelSeparator
The model separator.


optionFile

public java.lang.String optionFile
The option file.


trainDataFile

public java.lang.String trainDataFile
The train data file.


testDataFile

public java.lang.String testDataFile
The test data file.


labelSeparator

public static java.lang.String labelSeparator
The label separator.


trainLogFile

public java.lang.String trainLogFile
The train log file.


isLogging

public boolean isLogging
The is logging.


numTrainExps

public int numTrainExps
The num train exps.


numTestExps

public int numTestExps
The num test exps.


numLabels

public int numLabels
The num labels.


numCps

public int numCps
The num cps.


numFeatures

public int numFeatures
The num features.


cpRareThreshold

public int cpRareThreshold
The cp rare threshold.


fRareThreshold

public int fRareThreshold
The rare threshold.


numIterations

public int numIterations
The num iterations.


initLambdaVal

public double initLambdaVal
The init lambda val.


sigmaSquare

public double sigmaSquare
The sigma square.


epsForConvergence

public double epsForConvergence
The eps for convergence.


mForHessian

public int mForHessian
The m for hessian.


debugLevel

public int debugLevel
The debug level.


evaluateDuringTraining

public boolean evaluateDuringTraining
The evaluate during training.


saveBestModel

public boolean saveBestModel
The save best model.

Constructor Detail

Option

public Option()
Instantiates a new option.


Option

public Option(java.lang.String modelDir)
Instantiates a new option.

Parameters:
modelDir - the model dir
Method Detail

readOptions

public boolean readOptions()
Read options.

Returns:
true, if successful

openTrainLogFile

public java.io.PrintWriter openTrainLogFile()
Open train log file.

Returns:
the prints the writer

openModelFile

public java.io.BufferedReader openModelFile()
Open model file.

Returns:
the buffered reader

createModelFile

public java.io.PrintWriter createModelFile()
Creates the model file.

Returns:
the prints the writer

writeOptions

public void writeOptions(java.io.PrintWriter fout)
Write options.

Parameters:
fout - the fout