resource fann_create_train_from_callback    ( int $num_data   , int $num_input   , int $num_output   , callable $user_function   )

fann_create_train_from_callbackCreates the training data struct from a user supplied function

num_data

The number of training data

num_input

The number of inputs per training data

num_output

The number of ouputs per training data

user_function

The user supplied function with following parameters:

  • num - The number of the training data set
  • num_input - The number of inputs per training data
  • num_output - The number of ouputs per training data

The function should return an associative array with keys input and output and two array values of input and output.