Class MaxEntL2FLGEConstraints

  • All Implemented Interfaces:
    MaxEntGEConstraint

    public class MaxEntL2FLGEConstraints
    extends MaxEntFLGEConstraints
    Expectation constraint for use with GE. Penalizes L_2^2 difference from target expectation. Multiple constraints are grouped together here to make things more efficient.
    Author:
    Gregory Druck
    • Constructor Detail

      • MaxEntL2FLGEConstraints

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

      • getValue

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