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

gnn_conjugate_gradient.c File Reference

#include <math.h>
#include "gnn_conjugate_gradient.h"

Include dependency graph for gnn_conjugate_gradient.c:

Include dependency graph

Go to the source code of this file.

Functions

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

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

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

gnn_trainergnn_conjugate_gradient_new (gnn_node *node, gnn_criterion *crit, gnn_dataset *data)
 Creates a new conjugate gradient descent trainer.

double gnn_conjugate_gradient_polak_ribiere (gnn_trainer *trainer)
 The Polak-Ribière form for the coefficient.

double gnn_conjugate_gradient_hestenes_stiefel (gnn_trainer *trainer)
 The Hestenes-Stiefel form for the coefficient.

double gnn_conjugate_gradient_fletcher_reeves (gnn_trainer *trainer)
 The Fletcher-Reeves form for the coefficient.

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

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

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

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

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

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

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

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

int gnn_conjugate_gradient_set_beta (gnn_trainer *trainer, gnn_conjugate_gradient_beta beta)
 Sets the form of the coefficient.

gnn_conjugate_gradient_beta gnn_conjugate_gradient_get_beta (gnn_trainer *trainer)
 Gets the evaluation function.


Function Documentation

int gnn_conjugate_gradient_train gnn_trainer   trainer [static]
 

Parameters:
trainer  A pointer to a gnn_conjugate_gradient : Conjugate Gradient Descent Algorithm..
Returns:
Returns 0 if succeeded.

Definition at line 130 of file gnn_conjugate_gradient.c.


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