mixed fann_create(mixed data, float connection_rate, float learning_rate);
fann_create will create an artificial neural network using the data given.
If the first parameter is an array, fann_create will use the data and structure of the
array, as well as connection_rate and learning_rate.
If fann_create is called with a sole string argument, it will attempt to load an ANN
created with fann_save from the file at filename.
fann_create will return the artificial neural network on success, or FALSE if it fails.
Example 6-1. fann_create from scratch
<?php
$ann = fann_create(
/* Layers. In this case, three layers-
* two input neurons, 4 neurons on a
* hidden layer, and one output neuron. */
array(2, 4, 1),
1.0,
0.7);
?>
Example 6-2. fann_create loading from a file
<?php
$ann = fann_create("http://www.example.com/ann.net");
?>
See also fann_save.
This function appears in FANN-PHP >= 0.1.0.