mirror of
https://github.com/codeplea/genann.git
synced 2025-10-03 08:42:44 +00:00
Added linear activation function.
This commit is contained in:
5
genann.c
5
genann.c
@@ -75,6 +75,11 @@ double genann_act_threshold(double a) {
|
||||
}
|
||||
|
||||
|
||||
double genann_act_linear(double a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
genann *genann_init(int inputs, int hidden_layers, int hidden, int outputs) {
|
||||
if (hidden_layers < 0) return 0;
|
||||
if (inputs < 1) return 0;
|
||||
|
Reference in New Issue
Block a user