Class CRFNonLinearLogConditionalObjectiveFunction

    • Field Detail

      • prior

        protected int prior
      • sigma

        protected double sigma
      • epsilon

        protected double epsilon
      • VERBOSE

        public static boolean VERBOSE
      • DEBUG

        public static boolean DEBUG
      • gradientsOnly

        public boolean gradientsOnly
    • Method Detail

      • getPriorType

        public static int getPriorType​(String priorTypeStr)
      • domainDimension

        public int domainDimension()
        Description copied from interface: Function
        Returns the number of dimensions in the function's domain
        Specified by:
        domainDimension in interface Function
        Returns:
        the number of domain dimensions
      • separateWeights

        public Triple<double[][],​double[][],​double[][]> separateWeights​(double[] x)
      • calculate

        public void calculate​(double[] x)
        Calculates both value and partial derivatives at the point x, and save them internally.
        Specified by:
        calculate in class AbstractCachingDiffFunction
        Parameters:
        x - The point at which to calculate the function
      • to2D

        public double[][] to2D​(double[] linearWeights)
      • empty2D

        public double[][] empty2D()
      • emptyFull2D

        public double[][] emptyFull2D()