-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnnutils.h
65 lines (46 loc) · 1.48 KB
/
nnutils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* M. Nielsen. April 2002. [email protected] */
/*=
Network Input Utilities
=*/
#define MAXLAY 10
typedef struct synaps {
struct synaps *next;
LINE nin, nout;
FILENAME wgtfile;
int nlay, *nnlay; /* number of layers, number of neurons in layer */
float ***wgt;
int maxnper;
} SYNAPS;
extern SYNAPS *synaps_alloc();
extern SYNAPS *synaps_read_file(char *filename);
extern SYNAPS *synaps_read(char *filename);
extern SYNAPS *synaps_read_pfix(char *filename, char *prefix);
extern SYNAPS *synaps_read_nfile(char *filename, int *n);
extern SYNAPS *synaps_read_fp( FILE *fp );
/* How synaps definitions */
typedef struct synaps_how {
struct synaps_how *next;
LINE nin, nout;
FILENAME wgtfile;
int nlay, *nnlay; /* number of layers, number of neurons in layer */
float ***wgt;
int maxnper;
WORD alphain, alphaout; /* input and output translation alphabet */
int wsize;
int lenpos;
int lsize;
int lcomp;
float pfac;
int iact;
int iprof;
float weight; /* weight on predictor in average */
int nialph;
int input;
} SYNAPS_HOW;
extern SYNAPS_HOW *synaps_how_alloc();
extern SYNAPS_HOW *synaps_how_read_file(char *filename);
extern SYNAPS_HOW *synaps_how_read(char *filename);
extern SYNAPS_HOW *synaps_how_read_file_new(char *filename);
extern SYNAPS_HOW *synaps_how_read_file_new2(char *filename);
extern SYNAPS_HOW *synaps_how_read_new(char *filename);
/* end nnutils.h */