Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Change activation function
Browse files Browse the repository at this point in the history
  • Loading branch information
daedsidog committed Apr 28, 2019
1 parent ccbd67d commit 9c0aab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fanna/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ void net::create(void) {
layers.push_back(int(round(double(double(hindsight_level) * 5) * hidden_layer_factor)));
layers.push_back(1);
ann.create_standard_array(2 + hidden_layers, layers.data());
ann.set_activation_function_hidden(FANN::SIGMOID_SYMMETRIC_STEPWISE);
ann.set_activation_function_output(FANN::SIGMOID_SYMMETRIC_STEPWISE);
ann.set_activation_function_hidden(FANN::SIGMOID_SYMMETRIC);
ann.set_activation_function_output(FANN::SIGMOID_STEPWISE);
}
else ann.create_shortcut(2, hindsight_level * 5, 1);
ann.randomize_weights(-1.0f, 1.0f);
Expand Down
Binary file modified Release/Fanna.dll
Binary file not shown.

0 comments on commit 9c0aab6

Please sign in to comment.