Test fann_test and fann_train

Esse commit está contido em:
Jakub Zelenka
2013-02-25 20:20:35 +00:00
commit bb511040f6
2 arquivos alterados com 28 adições e 0 exclusões
+14
Ver Arquivo
@@ -0,0 +1,14 @@
--TEST--
Test function fann_test() by calling it with its expected arguments
--FILE--
<?php
$ann = fann_create_standard( 3, 3, 2, 1 );
$input = array( 0.5, 1.5, 0.5 );
$desired_output = array( 1 );
var_dump( fann_test( $ann, $input, $desired_output ) );
?>
--EXPECTF--
array(1) {%a[0]=>%afloat(%f)%a}
+14
Ver Arquivo
@@ -0,0 +1,14 @@
--TEST--
Test function fann_train() by calling it with its expected arguments
--FILE--
<?php
$ann = fann_create_standard( 3, 3, 2, 1 );
$input = array( 0.5, 1.5, 0.5 );
$desired_output = array( 1 );
var_dump( fann_train( $ann, $input, $desired_output ) );
?>
--EXPECTF--
bool(true)