Query: fann_create_train_from_callback
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FANN_CREATE_TRAIN_FROM_CALLBACK(3) 1 FANN_CREATE_TRAIN_FROM_CALLBACK(3) fann_create_train_from_callback - Creates the training data struct from a user supplied functionSYNOPSISresource fann_create_train_from_callback (int $num_data, int $num_input, int $num_output, collable $user_function)DESCRIPTIONCreates the training data struct from a user supplied function. As the training data are numerable (data 1, data 2...), the user must write a function that receives the number of the training data set (input, output) and returns the set.PARAMETERSo $num_data - The number of training data o $num_input - The number of inputs per training data o $num_output - The number of ouputs per training data o $user_function - The user supplied function with following parameters: o num - The number of the training data set o num_input - The number of inputs per training data o num - The number of ouputs per training dataThe number of inputs per training data The function should return an associative array with keys input and output and two array values of input and output.RETURN VALUESReturns a train data resource on success, or FALSE on error.EXAMPLESExample #1 fann_create_train_from_callback example <?php function create_train_callback($num_data, $num_input, $num_output) { return array( "input" => array_fill(0, $num_input, 1), "output" => array_fill(0, $num_output, 1), ); } $num_data = 3; $num_input = 2; $num_output = 1; $train_data = fann_create_train_from_callback($num_data, $num_input, $num_output, "create_train_callback"); if ($train_data) { // Do something with $train_data } ?>SEE ALSOfann_read_train_from_file(3), fann_train_on_data(3), fann_destroy_train(3), fann_save_train(3). PHP Documentation Group FANN_CREATE_TRAIN_FROM_CALLBACK(3)
Related Man Pages |
---|
mpscnnbatchnormalizationnode(3) - mojave |
opencv_createsamples(1) - debian |
sylseg-sk(1) - debian |
tigr-build-icm(1) - debian |
ai::fann(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
training |
RH033 & RH133 RHCT Exam Studying |
My Solaris training/TOI |
Help training for Unix Sys Admin |
Function name as a number? |