Class EvalParameters
java.lang.Object
opennlp.tools.ml.model.EvalParameters
- Direct Known Subclasses:
NaiveBayesEvalParameters
This class encapsulates the variables used in producing probabilities from a model
and facilitates passing these variables to the eval method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleThe maximum number of features fired in an event.private final intThe number of outcomes being predicted.private final Context[]Mapping between outcomes and parameter values for each context. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
params
Mapping between outcomes and parameter values for each context. The integer representation of the context can be found usingpmap. -
numOutcomes
private final int numOutcomesThe number of outcomes being predicted. -
correctionConstant
private double correctionConstantThe maximum number of features fired in an event. Usually referred to as C. This is used to normalize the number of features which occur in an event.
-
-
Constructor Details
-
EvalParameters
-
-
Method Details
-
getParams
-
getNumOutcomes
public int getNumOutcomes() -
hashCode
-
equals
-