diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-12 18:24:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-12 18:24:28 +0100 |
commit | d886209d50ba5263645006249738d44f163efe8d (patch) | |
tree | 888044748a32512540db3d9a00994eab42d17753 /src/lua/lua_fann.c | |
parent | 1408e7fd024715a1e4dbf2370410354c666bd2f6 (diff) | |
download | rspamd-d886209d50ba5263645006249738d44f163efe8d.tar.gz rspamd-d886209d50ba5263645006249738d44f163efe8d.zip |
[Minor] Do not use shortcut ANNs
Diffstat (limited to 'src/lua/lua_fann.c')
-rw-r--r-- | src/lua/lua_fann.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_fann.c b/src/lua/lua_fann.c index dd100256e..6df5d9470 100644 --- a/src/lua/lua_fann.c +++ b/src/lua/lua_fann.c @@ -113,10 +113,9 @@ lua_fann_create (lua_State *L) layers[i] = luaL_checknumber (L, i + 2); } - f = fann_create_shortcut_array (nlayers, layers); + f = fann_create_standard_array (nlayers, layers); fann_set_activation_function_hidden (f, FANN_SIGMOID_SYMMETRIC); fann_set_activation_function_output (f, FANN_SIGMOID_SYMMETRIC); - fann_randomize_weights (f, -0.1, 0.1); if (f != NULL) { pfann = lua_newuserdata (L, sizeof (gpointer)); |