Class QuasiNewtonTrainer.GradObjective

java.lang.Object
com.imsl.datamining.neural.QuasiNewtonTrainer.Objective
com.imsl.datamining.neural.QuasiNewtonTrainer.GradObjective
All Implemented Interfaces:
MinUnconMultiVar.Function, MinUnconMultiVar.Gradient
Direct Known Subclasses:
QuasiNewtonTrainer.BlockGradObjective
Enclosing class:
QuasiNewtonTrainer

protected class QuasiNewtonTrainer.GradObjective extends QuasiNewtonTrainer.Objective implements MinUnconMultiVar.Gradient
The Objective class is passed to the optimizer.
  • Field Details

    • nObs

      protected int nObs
    • nY

      protected int nY
    • nFunctionEvaluations

      protected int nFunctionEvaluations
  • Method Details

    • gradient

      public void gradient(double[] weights, double[] gradient)
      Description copied from interface: MinUnconMultiVar.Gradient
      Public interface for the gradient of the multivariate function to be minimized.
      Specified by:
      gradient in interface MinUnconMultiVar.Gradient
      Parameters:
      weights - a double array, the point at which the gradient of the function is to be evaluated
      gradient - a double array, the value of the gradient of the function at x