]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not use shortcut ANNs
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Sep 2016 17:24:28 +0000 (18:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Sep 2016 17:24:28 +0000 (18:24 +0100)
src/lua/lua_fann.c

index dd100256e48c90b3660adb40ce5e96a985b768e2..6df5d9470223030d4541692763737860c6170c3f 100644 (file)
@@ -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));