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 functionSYNOPSIS
resource fann_create_train_from_callback (int $num_data, int $num_input, int $num_output, collable $user_function)
DESCRIPTION
Creates 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.
PARAMETERS
o $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 VALUES
Returns a train data resource on success, or FALSE on error.
EXAMPLES
Example #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 ALSO fann_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)
HI there
I have to learn how to instal and configure th HP-UX OS.
Is there any chance to get an instalation resources for HP-UX for training purposes ? Something like evaluaton version.
Is there any chance to install HP-UX on my PC ?
Cheers (1 Reply)
Out of curiosity, what training resources would people recommend for beginners to UNIX/scripting?
Do you find forums such as these are better than books in providing help as and when? Or do you think more formal training is better? (2 Replies)
At work I have to restart applications and install upgrades to applications running on Solaris 10.
Its pretty basic stuff but I have little experience of Unix so it can be a bit hairy at times.
Work have offered to send me on some training but I have to select the course/training. I'm not... (2 Replies)
I'm being asked to go and take a training course in Advanced Unix and Perl.
The main reason is the amount of information needed to get up to speed a short period of time, which is what we're limited on. Travel is fine.
Can anyone suggest a good resource for researching the where and when for... (1 Reply)
Dear Gurus,
I have encountered a C question, which I thought of sharing with you.
This question was asked by one of my technical training staff...Though my training was over I'm still thinking of a solution for this..
Write a C program to do a small task(lets say just simply printing a "Hello... (34 Replies)
Hi guys,
This is my first post. I have just started my training in AIX and would like some help with regards to training material. I have obtained IBM's CBTs (units 1 through 19) for AIX basics. I am looking at the following books
- AIX 5L administration by Randal K Michael.
- UNIX from new... (5 Replies)
Hi
Is anyone here customer of LinuxCBT and can say something about the quality of their videos? Do you recommend me purchase video training of them? I am primary interested in OpenLDAP training.
Link Linux Training, Open Source Training, Learn Linux and Open Source (6 Replies)
I need a computer to try Solaris. I'm learning with UNIX Academy training DVDs and after spending much time with Linux I want to try and learn on Solaris. I'll have to buy a computer for my training anyway. I found on ebay plenty of inexpensive Sun boxes. Would it be beneficial for learning to have... (26 Replies)
Hi Everyone,
My company is involved in performing performance testing and now they want to perform couple of training related with executing those tests on the servers based on Unix sytems.
And I have to provide them draft of the content for those trainings.
I think this kind of training... (2 Replies)
Hi all,
that's my personal "war story" and probably a beginning of a never ending love story.
It is roughly 8 weeks ago, I've got a training for a new ERP system. In front of the training my boss mentioned it based on a unix. Great, I have been always interested in but I don't know why I... (2 Replies)
Doing some training code with arrays i run into the following issue: If i ask the user how long the array is supposed to be, malloc it and then ask for the values inside the array and return the list to main and assing it to a pointer to list of integers:
#include <stdio.h>
#include... (7 Replies)
Hi Experts,
Please help with the following.
I have 3 columns in File 1 , variables with values nested within groups.
File 1
gr1 var1 a
gr1 var2 b
gr1 var3 a
gr1 var4 c
gr2 var1 a
gr2 var2 a
gr2 var4 c
gr3 var1 b
gr3 var3 b
gr3 var4 a
gr3 var5 a (3 Replies)
Hey guys,
I m planning to take the RHCSA certification. Do I have to take the training from RedHat first? Is it mandatory or I can go on my own and appear for the certification?
Let me know.
Thanks... (2 Replies)