Documentation of 'cc.mallet.classify.RankMaxEntTrainer' Java class
RankMaxEntTrainer
cc.mallet.classify

Class RankMaxEntTrainer

  • All Implemented Interfaces:
    Boostable, ClassifierTrainer.ByOptimization<MaxEnt>, java.io.Serializable


    public class RankMaxEntTrainer
    extends MaxEntTrainer
    The trainer for a RankMaxEnt classifier. Expects Instance data to be a FeatureVectorSequence, and the target to be a String representation of the index of the true best FeatureVectorSequence. Note that the Instance target may be a Labels to indicate a tie for the best Instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • RankMaxEntTrainer

        public RankMaxEntTrainer()
      • RankMaxEntTrainer

        public RankMaxEntTrainer(double gaussianPriorVariance)
        Constructs a trainer with a parameter to avoid overtraining. 1.0 is usually a reasonable default value.
    • Method Detail

      • toString

        public java.lang.String toString()

        Like the other version of trainWithFeatureInduction, but allows some default options to be changed.

        Overrides:
        toString in class MaxEntTrainer
        Parameters:
        maxent - An initial partially-trained classifier (default null). This classifier may be modified during training.
        gainName - The estimate of gain (log-likelihood increase) we want our chosen features to maximize. Should be one of MaxEntTrainer.EXP_GAIN, MaxEntTrainer.GRADIENT_GAIN, or MaxEntTrainer.INFORMATION_GAIN (default EXP_GAIN).
        Returns:
        The trained MaxEnt classifier

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.