public
Created

  • Download Gist
fannerl_tests.erl
Erlang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
-module(fannerl_tests).
 
-include_lib("eunit/include/eunit.hrl").
 
create_test() ->
Fann = fannerl:create_standard({2,2,1}),
fannerl:get_training_algorithm(Fann),
?debugMsg("exiting create_test").
get_mse_test() ->
Fann = fannerl:create_standard({2,2,1}),
0.0 = fannerl:get_mse(Fann),
?debugMsg("exiting get_mse_test").
 
activation_function_test() ->
Fann = fannerl:create_standard({2,2,1}),
fann_sigmoid_stepwise = fannerl:get_activation_function(Fann, 1, 1),
ok = fannerl:set_activation_function(Fann, fann_sigmoid, 1, 1),
?debugMsg("before last get"),
fann_sigmoid = fannerl:get_activation_function(Fann, 1, 1),
?debugMsg("after last get"),
0.7=fannerl:get_learning_rate(Fann),
?debugMsg("exiting last test").

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.