algo
Class ConjugateGradient

java.lang.Object
  extended by algo.ConjugateGradient

public class ConjugateGradient
extends Object


Constructor Summary
ConjugateGradient(int numParams)
           
 
Method Summary
 double lineSearch(DifferentiableObjective o, double[] parameters, double[] direction)
          finds the maximizer of o(parameters + lambda*direction)
 boolean maximize(DifferentiableObjective o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConjugateGradient

public ConjugateGradient(int numParams)
Method Detail

maximize

public boolean maximize(DifferentiableObjective o)

lineSearch

public double lineSearch(DifferentiableObjective o,
                         double[] parameters,
                         double[] direction)
finds the maximizer of o(parameters + lambda*direction)

Parameters:
o -
parameters -
direction -
Returns:
the score at the new parameters


Copyright © 2009. All Rights Reserved.