errorfxn: name of the error function that will be run
errorPath: the path to the file containing the error function. It has be be sources
params: the input parameters for the error function
grad_type: the type of gradient that will be calculated (forwards, backwards, or central)
errorfxn: name of the error function that will be run
errorPath: the path to the file containing the error function. It has be be sources
params: the input parameters for the error function
o_file: the path to the output file where the results from the error function will be stored
print_str: the string that will be combined be combined with the error fucntion results and printed to the output file
__updateLearningRates
file: TclLib/Analysis/Fit/optimize.tcl
updates the learning rate based on how much the previous parameters changed divided by the gradient difference between the two points
__updateParams
file: TclLib/Analysis/Fit/optimize.tcl
for each parameter, if the partial derivative of the error function with respect to that parameter is positive, decrease the value of the parameter, if it is negative, increase the value of the parameter
the magnitude of the parameter change is dependent on the learning rate and if it is too grate, it is reduced to the damp value
errorfxn: name of the error function that will be run
errorPath: the path to the file containing the error function. It has be be sources
params: the input parameters for the error function
job_ID: the ID number of the current job
grad_type: the type of gradient that will be calculated (forwards, backwards, or central)
declares the error function, the initial input parameters, the number of iteration to be used, and the damping level
{ errorFxn params {options {}} }
optimize
file: TclLib/Analysis/Fit/optimize.tcl
declares the error function, the initial input parameters, the number of iteration to be used, and the damping level
{ errorFxn params {options {}} }
SLURM dispatch via __grad_slurm is preserved; that proc lives in legacy/
optimize_slurm.tcl and must be sourced manually when running under SLURM.
errorfxn: name of the error function that will be run
errorPath: the path to the file containing the error function. It has be be sources
params: the input parameters for the error function
o_file: the path to the output file where the results from the error function will be stored
print_str: the string that will be combined be combined with the error fucntion results and printed to the output file
for each parameter, if the partial derivative of the error function with respect to that parameter is positive, decrease the value of the parameter, if it is negative, increase the value of the parameter
the magnitude of the parameter change is dependent on the learning rate and if it is too grate, it is reduced to the damp value