fann_run

Name

fann_run -- Run an artificial neural network.

Description

mixed fann_run(resource ann, array input);

fann_run will run input through ann, returning an an output array on success or FALSE on failure.

Example 6-1. fann_runExample


<?php
if ( ($ann = fann_create("http://www.example.com/ann.net")) == FALSE )
  exit("Could not create ANN.");
if ( fann_train($ann, "http://www.example.com/train.data", 100000, 0.00001) == FALSE )
  exit("Could not train ANN.");

if ( ($output = fann_run($ann, array(0, 1))) == FALSE )
  exit("Could not run ANN.");
else
  print_r($output);
?>

            

This function appears in FANN-PHP >= 0.1.0.


SourceForge.net Logo