| 1 |
#ifndef _FFNet_PatternList_ActivationList_h_ |
| 2 |
#define _FFNet_PatternList_ActivationList_h_ |
| 3 |
/* FFNet_PatternList_ActivationList.h |
| 4 |
* |
| 5 |
* Copyright (C) 1994-2017 David Weenink, 2015 Paul Boersma |
| 6 |
* |
| 7 |
* This code is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 10 |
* your option) any later version. |
| 11 |
* |
| 12 |
* This code is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
/* |
| 22 |
djmw 1994. |
| 23 |
djmw 20020712 GPL header. |
| 24 |
djmw 20030701 Removed non-GPL minimizations. |
| 25 |
djmw 20110714 Latest modification. |
| 26 |
*/ |
| 27 |
|
| 28 |
|
| 29 |
#include "FFNet.h" |
| 30 |
#include "PatternList.h" |
| 31 |
#include "ActivationList.h" |
| 32 |
#include "Minimizers.h" |
| 33 |
|
| 34 |
void FFNet_PatternList_ActivationList_learnSD (FFNet me, PatternList p, ActivationList a, integer maxNumOfEpochs, |
| 35 |
double tolerance, double learningRate, double momentum, int costFunctionType); |
| 36 |
/* Steepest Descent minimization */ |
| 37 |
|
| 38 |
void FFNet_PatternList_ActivationList_learnSM (FFNet me, PatternList p, ActivationList a, integer maxNumOfEpochs, |
| 39 |
double tolerance, int costFunctionType); |
| 40 |
|
| 41 |
double FFNet_PatternList_ActivationList_getCosts_total (FFNet me, PatternList p, ActivationList a, int costFunctionType); |
| 42 |
double FFNet_PatternList_ActivationList_getCosts_average (FFNet me, PatternList p, ActivationList a, int costFunctionType); |
| 43 |
|
| 44 |
autoActivationList FFNet_PatternList_to_ActivationList (FFNet me, PatternList p, integer layer); |
| 45 |
/* Calculate the activations at a layer */ |
| 46 |
/* if (layer<1 || layer > my numberOfLayers) layer = my numberOfLayers; */ |
| 47 |
|
| 48 |
#endif /* _FFNet_PatternList_ActivationList_h_ */ |