Skip to content

Instantly share code, notes, and snippets.

@axling
Created February 7, 2011 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axling/815543 to your computer and use it in GitHub Desktop.
Save axling/815543 to your computer and use it in GitHub Desktop.
-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").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment