Debian Codegraph @

FFNet/FFNet_PatternList_Categories.h

raw
1 #ifndef _FFNet_PatternList_Categories_h_
2 #define _FFNet_PatternList_Categories_h_
3 /* FFNet_PatternList_Categories.h
4 *
5 * Copyright (C) 1994-2017 David Weenink
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 19960821
23 djmw 20020712 GPL header
24 djmw 20110307 Latest mofification.
25 */
26
27 #include "FFNet.h"
28 #include "PatternList.h"
29 #include "Categories.h"
30 #include "Minimizers.h"
31
32 void FFNet_PatternList_Categories_learnSD (FFNet me, PatternList p, Categories c, integer maxNumOfEpochs,
33 double tolerance, double learningRate, double momentum, int costFunctionType);
34 /* Steepest descent */
35
36 void FFNet_PatternList_Categories_learnSM (FFNet me, PatternList p, Categories c, integer maxNumOfEpochs,
37 double tolerance, int costFunctionType);
38 /* Conj. Gradient vdSmagt */
39
40 double FFNet_PatternList_Categories_getCosts_total (FFNet me, PatternList p, Categories c, int costFunctionType);
41 double FFNet_PatternList_Categories_getCosts_average (FFNet me, PatternList p, Categories c, int costFunctionType);
42
43 autoCategories FFNet_PatternList_to_Categories (FFNet me, PatternList p, int labeling);
44 /* classify the PatternList */
45 /* labeling = 1 : winner-takes-all */
46 /* labeling = 2 : stochastic */
47 /* Preconditions: I have labels */
48
49 #endif /* _FFNet_PatternList_Categories_h_ */