algo
Class ConjugateGradient
java.lang.Object
algo.ConjugateGradient
public class ConjugateGradient
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConjugateGradient
public ConjugateGradient(int numParams)
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.