jml.classification
Class MaxEntModel

java.lang.Object
  extended by jml.classification.MaxEntModel
All Implemented Interfaces:
java.io.Serializable

 class MaxEntModel
extends java.lang.Object
implements java.io.Serializable

Maximum entropy model parameters.

Version:
1.0, Feb. 18th, 2013
Author:
Mingjie Qian

Field Summary
(package private)  int[] IDLabelMap
          An ID to integer label mapping array.
 int nClass
          Number of classes.
 int nFeature
          Number of features, without bias dummy features, i.e., for SVM.
private static long serialVersionUID
           
(package private)  org.apache.commons.math.linear.RealMatrix W
          An nFeature x 1 RealMatrix.
 
Constructor Summary
MaxEntModel(int nClass, org.apache.commons.math.linear.RealMatrix W, int[] IDLabelMap)
          Constructor for a MaxEnt model.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

nClass

public int nClass
Number of classes.


nFeature

public int nFeature
Number of features, without bias dummy features, i.e., for SVM.


W

org.apache.commons.math.linear.RealMatrix W
An nFeature x 1 RealMatrix.


IDLabelMap

int[] IDLabelMap
An ID to integer label mapping array. IDs start from 0.

Constructor Detail

MaxEntModel

public MaxEntModel(int nClass,
                   org.apache.commons.math.linear.RealMatrix W,
                   int[] IDLabelMap)
Constructor for a MaxEnt model.

Parameters:
nClass - number of classes
W - an nFeature x 1 RealMatrix
IDLabelMap - an ID to integer label mapping array where IDs start from 0