Class MaxEntKLFLGEConstraints

  • All Implemented Interfaces:
    MaxEntGEConstraint

    public class MaxEntKLFLGEConstraints
    extends MaxEntFLGEConstraints
    Expectation constraint for use with GE. Penalizes KL divergence from target distribution. Multiple constraints are grouped together here to make things more efficient.
    Author:
    Gregory Druck
    • Constructor Detail

      • MaxEntKLFLGEConstraints

        public MaxEntKLFLGEConstraints​(int numFeatures,
                                       int numLabels,
                                       boolean useValues)
    • Method Detail

      • getValue

        public double getValue()
        Description copied from interface: MaxEntGEConstraint
        Returns the total constraint value.
        Returns:
        Constraint value