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

gnn_momentum.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *  @file gnn_momentum.h
00003  *  @brief Gradient Descent with Momentum Trainer Header File.
00004  *
00005  *  @date   : 31-08-03 23:48
00006  *  @author : Pedro Ortega C. <peortega@dcc.uchile.cl>
00007  *  Copyright  2003  Pedro Ortega C.
00008  ****************************************************************************/
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00025 #ifndef _GNN_MOMENTUM_H_
00026 #define _GNN_MOMENTUM_H_
00027 
00028 
00029 
00030 /******************************************/
00031 /* Include Files                          */
00032 /******************************************/
00033 
00034 #include "gnn_trainer.h"
00035 
00036 
00037 
00038 /******************************************/
00039 /* Public Interface                       */
00040 /******************************************/
00041 
00042 gnn_trainer *
00043 gnn_momentum_new (gnn_node *node,
00044                   gnn_criterion *crit,
00045                   gnn_dataset *data,
00046                   double mu,
00047                   double eta);
00048 
00049 double
00050 gnn_momentum_get_mu (gnn_trainer *trainer);
00051 
00052 int
00053 gnn_momentum_set_mu (gnn_trainer *trainer, double mu);
00054 
00055 double
00056 gnn_momentum_get_eta (gnn_trainer *trainer);
00057 
00058 int
00059 gnn_momentum_set_eta (gnn_trainer *trainer, double eta);
00060 
00061 
00062 
00063 #endif /* _GNN_MOMENTUM_H_ */
00064 
00065 
00066 

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