All Packages Class Hierarchy This Package Previous Next Index
Class sim.gradDesc.ConjGrad
java.lang.Object
|
+----sim.Experiment
|
+----sim.gradDesc.GradDesc
|
+----sim.gradDesc.ConjGrad
- public class ConjGrad
- extends GradDesc
Conjugate Gradient.
This code is (c) 1996 Mance Harmon
<harmonme@aa.wpafb.af.mil>,
http://www.aa.wpafb.af.mil/~harmonme
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.03, 29 May 97
- Author:
- Mance E. Harmon
-
abscissa_step
- step size for the initial abscissas used in the mnbrack method
-
beta
- the factor used to create a new search direction
-
errFun
- the error function to minimize
-
error
- the error being gradient descended on
-
logError
- the log base 10 of error
-
mode
- the method used to calculate conjugate direction: Polak-Ribiere (0) or Fletcher-Reeves (1)
-
time
- current time (increments once per weight change
-
tolerance
- stop learning when smoothed error < tolerance
-
ConjGrad()
-
-
BNF(int)
- Return the BNF description of how to parse the parameters of this object.
-
initialize(int)
- Initialize, either partially or completely.
-
parse(Parser, int)
- Parse the input file to get the parameters for this object.
-
run()
- repeatedly change x until f(x) reaches a local minimum
-
setWatchManager(WatchManager, String)
- Register all variables with this WatchManager.
-
unparse(Unparser, int)
- Output a description of this object that can be parsed with parse().
errFun
protected ErrFun errFun
- the error function to minimize
beta
protected double beta
- the factor used to create a new search direction
error
protected PDouble error
- the error being gradient descended on
logError
protected PDouble logError
- the log base 10 of error
tolerance
protected NumExp tolerance
- stop learning when smoothed error < tolerance
time
protected PInt time
- current time (increments once per weight change
abscissa_step
protected NumExp abscissa_step
- step size for the initial abscissas used in the mnbrack method
mode
protected NumExp mode
- the method used to calculate conjugate direction: Polak-Ribiere (0) or Fletcher-Reeves (1)
ConjGrad
public ConjGrad()
setWatchManager
public void setWatchManager(WatchManager wm,
String name)
- Register all variables with this WatchManager.
This will be called after all parsing is done.
- Overrides:
- setWatchManager in class GradDesc
run
public void run()
- repeatedly change x until f(x) reaches a local minimum
- Overrides:
- run in class GradDesc
BNF
public String BNF(int lang)
- Return the BNF description of how to parse the parameters of this object.
- Overrides:
- BNF in class GradDesc
unparse
public void unparse(Unparser u,
int lang)
- Output a description of this object that can be parsed with parse().
- Overrides:
- unparse in class GradDesc
- See Also:
- Parsable
parse
public Object parse(Parser p,
int lang) throws ParserException
- Parse the input file to get the parameters for this object.
- Throws: ParserException
- parser didn't find the required token
- Overrides:
- parse in class GradDesc
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- Overrides:
- initialize in class Experiment
- See Also:
- initialize
All Packages Class Hierarchy This Package Previous Next Index