Created
February 7, 2011 23:47
-
-
Save axling/815543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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