LoveBrains  1.0.0
ann_const.h
1 /*
2 ** ann_const.h for neural network in /home/robin_f/Programming/Git/CPP/GANNEngine
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Wed Aug 19 13:51:31 2015 Guillaume ROBIN
8 ** Last update Thu Aug 20 12:42:17 2015 Guillaume ROBIN
9 */
10 
11 #ifndef ANN_CONST_H_
12 # define ANN_CONST_H_
13 
14 # define DEF_CROSS_RATE (double)0.7
15 
16 # define DEF_ANN_ROWS (const char *)"rows"
17 # define DEF_ANN_COLS (const char *)"cols"
18 # define DEF_ANN_VALUES (const char *)"values"
19 # define DEF_ANN_WEIGHT (const char *)"weights"
20 # define DEF_ANN_BIAS (const char *)"bias"
21 # define DEF_ANN_INFOS (const char *)"infos"
22 # define DEF_ANN_RMIN (const char *)"min"
23 # define DEF_ANN_RMAX (const char *)"max"
24 # define DEF_ANN_RAND (const char *)"random"
25 # define DEF_ANN_CROSS (const char *)"crossing_rate"
26 # define DEF_ANN_OACT (const char *)"output_activation"
27 # define DEF_ANN_LACT (const char *)"layer_activation"
28 # define DEF_ANN_SIGM (const char *)"sigmoid"
29 # define DEF_ANN_THRES (const char *)"threshold"
30 # define DEF_ANN_LAYERS (const char *)"layers"
31 
32 # define ERR_ANN_NLAYER (char *)"Error: allocation of an ANNLayer failed."
33 # define ERR_ANN_INVLAYERS (char *)"Error: invalid size of layers."
34 # define ERR_ANN_INVCROSSRATE (char *)"Error: invalid crossing rate."
35 # define ERR_ANN_NULLACTIVATION (char *)"Error: activation function is null."
36 # define ERR_ANN_ERRACTIVATE (char *)"Error: impossible to activate a null layer."
37 
38 # define ERR_ANN_LOADL (const char *)"Error: ANN::LoadLayers(): allocation failed."
39 # define ERR_ANN_PARSE (const char *)"Error: ANN::Load(): Jsoncpp cannot parse the input file."
40 # define ERR_ANN_GETOUT (const char *)"Error: ANN::getOutputs(): cannot get neural net's outputs."
41 # define ERR_ANN_ACTF (const char *)"Error: ANN::setActivationFunction(): function is null."
42 # define ERR_ANN_OUTF (const char *)"Error: ANN::setOutputsActivation(): function is null."
43 # define ERR_ANN_SAVE (const char *)"Error: ANN::Save(): cannot open the output file."
44 # define ERR_ANN_LAYER (const char *)"Error: ANN::SaveLayers() | ANN::LoadLayers(): layer is null."
45 
46 #endif /* !ANN_CONST_H_ */