4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: newlinuxuser1
26 Replies
2. UNIX for Dummies Questions & Answers
I am new to UNIX and somewhat familiar with Solaris. Can you suggest any good (simple English) books that can help me with understanding and learning UNIX? (1 Reply)
Discussion started by: iamnew2solaris
1 Replies
3. Solaris
Hi,
i'm about to hold a training (Solaris 10) for my colleagues. I've to plan for two days. There is a day for basics and a day (some weeks later) for advanced topics. All of them are regular solaris users (but mostly only installing + patching).
What do you guys think are interesting topics... (22 Replies)
Discussion started by: DukeNuke2
22 Replies
4. Solaris
Hey everybody I just wanted to throw something into the gears here.
The first UNIX system I used was an IBM RS/6000 POWER Server 370h I believe, running AIX 3.2, I think (its been some time). On this System V machine was a learning facility called "learn" which taught basic shell operation and... (0 Replies)
Discussion started by: ultra0384
0 Replies
LEARN ABOUT PHP
fann_create_train_from_callback
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 function
SYNOPSIS
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)