Class ConstraintsOptimizableByPR

    • Field Detail

      • cacheStale

        protected boolean cacheStale
      • numParameters

        protected int numParameters
      • numThreads

        protected int numThreads
      • cachedValue

        protected double cachedValue
      • cachedGradient

        protected double[] cachedGradient
      • crf

        protected CRF crf
      • executor

        protected java.util.concurrent.ThreadPoolExecutor executor
      • cachedDots

        protected double[][][][] cachedDots
    • Method Detail

      • cacheDotProducts

        public void cacheDotProducts()
      • setParameter

        public void setParameter​(int index,
                                 double value)
        Specified by:
        setParameter in interface Optimizable
      • getExpectationValue

        protected double getExpectationValue()
      • getValue

        public double getValue()
        Returns the log probability of the training sequence labels and the prior over parameters.
        Specified by:
        getValue in interface Optimizable.ByGradientValue
      • getCompleteValueContribution

        public double getCompleteValueContribution()
      • shutdown

        public void shutdown()
      • getCachedDots

        public double[][][][] getCachedDots()