14 # define DEF_CROSS_RATE (double)0.7
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"
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."
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."