Fix error simple train example

Esse commit está contido em:
Jakub Zelenka
2016-08-28 13:32:39 +01:00
commit ff88ddbb2d
+1 -1
Ver Arquivo
@@ -15,7 +15,7 @@ if ($ann) {
fann_set_activation_function_output($ann, FANN_SIGMOID_SYMMETRIC); fann_set_activation_function_output($ann, FANN_SIGMOID_SYMMETRIC);
$filename = dirname(__FILE__) . "/xor.data"; $filename = dirname(__FILE__) . "/xor.data";
if (fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error)) { if (fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error))
print('xor trained.<br>' . PHP_EOL); print('xor trained.<br>' . PHP_EOL);
if (fann_save($ann, dirname(__FILE__) . "/xor_float.net")) if (fann_save($ann, dirname(__FILE__) . "/xor_float.net"))