Added output to simple_train.php

Added output to simple_train.php so that the page acknowledges that the training was completed and that the network was saved. Additionally a link to the test script was added.
Esse commit está contido em:
Joy Harvel
2016-07-25 22:51:44 -07:00
commit de GitHub
commit 64b4a588fa
+5 -2
Ver Arquivo
@@ -15,8 +15,11 @@ if ($ann) {
fann_set_activation_function_output($ann, FANN_SIGMOID_SYMMETRIC);
$filename = dirname(__FILE__) . "/xor.data";
if (fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error))
fann_save($ann, dirname(__FILE__) . "/xor_float.net");
if (fann_train_on_file($ann, $filename, $max_epochs, $epochs_between_reports, $desired_error)) {
print('xor trained.<br>' . PHP_EOL);
if (fann_save($ann, dirname(__FILE__) . "/xor_float.net"))
print('xor_float.net saved.<br><a href="simple_test.php">Test</a>' . PHP_EOL);
fann_destroy($ann);
}