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:
@@ -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);
|
||||
}
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário