Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_bfgs.c File Reference

#include <math.h>
#include <gsl/gsl_blas.h>
#include "gnn_utilities.h"
#include "gnn_bfgs.h"

Include dependency graph for gnn_bfgs.c:

Include dependency graph

Go to the source code of this file.

Functions

int gnn_bfgs_reset (gnn_trainer *trainer)
 The trainer's "reset" implementation.

int gnn_bfgs_iteration (gnn_bfgs *bf)
 Computes the step-wise approximation of the Hessian matrix.

int gnn_bfgs_train (gnn_trainer *trainer)
 The trainer's "train" implementation.

void gnn_bfgs_destroy (gnn_trainer *trainer)
 The trainers "destroy" implementation.

gnn_trainergnn_bfgs_new (gnn_node *node, gnn_criterion *crit, gnn_dataset *data)
 Creates a new BFGS trainer.

int gnn_bfgs_set_tol (gnn_trainer *trainer, double tol)
 Sets the precision tolerance for the line search procedure.

double gnn_bfgs_get_tol (gnn_trainer *trainer)
 Gets the tolerance for the line search procedure.

int gnn_bfgs_set_step (gnn_trainer *trainer, double step)
 Sets the initial step for the interval bracketing procedure.

double gnn_bfgs_get_step (gnn_trainer *trainer)
 Gets the initial step for the interval bracketing procedure.

int gnn_bfgs_set_restart (gnn_trainer *trainer, size_t restart)
 Sets the number of iterations before restarting.

size_t gnn_bfgs_get_restart (gnn_trainer *trainer)
 Gets the number of iterations before reinitializing the direction.

int gnn_bfgs_set_line_search (gnn_trainer *trainer, gnn_line_search_type lsearch)
 Sets the line search procedure.

gnn_line_search_type gnn_bfgs_get_alpha (gnn_trainer *trainer)
 Gets the installed line search procedure.


Function Documentation

int gnn_bfgs_train gnn_trainer   trainer [static]
 

Parameters:
trainer  A pointer to a gnn_bfgs : Broyden-Fletcher-Goldfarb-Shanno Algorithm..
Returns:
Returns 0 if succeeded.

Definition at line 189 of file gnn_bfgs.c.


Generated on Sun Jun 13 20:50:16 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18