10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello!
Please, can someone make me clear the difference betveen and interactive and non-interactive test editor?
(is not each editor somehow "interactive"???)
Many thanks!!! (0 Replies)
Discussion started by: pinklemon
0 Replies
2. UNIX for Dummies Questions & Answers
I always used pico as a text editor in Terminal or SSH. But what is the advantages/disadvantages between vim and pico? (7 Replies)
Discussion started by: timgolding
7 Replies
3. UNIX for Dummies Questions & Answers
I del a lot of files,after that I can't find pico. I have to use vi. However, I like pico.
Can should I do ? (4 Replies)
Discussion started by: zhshqzyc
4 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I cannot run emacs or pico from my Sun OS command shell. My account does not have a .cshrc file also. When I tried to make a text file and copied it to my account by the name .cshrc, the source commands I place in it do not work.
Can anybody tell me how can I solve this? Any help... (8 Replies)
Discussion started by: aryajur
8 Replies
5. UNIX for Dummies Questions & Answers
Is pico editor not availible on all versions of Unix? I do have vi and emacs, but pico just give me a response of "not found". (4 Replies)
Discussion started by: dereckbc
4 Replies
6. UNIX for Dummies Questions & Answers
Hi...
I was wondering if anyone has any step by step guide on how to load the UNIX text editor PICO onto the Sun box?
Thanks :) (2 Replies)
Discussion started by: atomicsushi
2 Replies
7. UNIX for Dummies Questions & Answers
Quick question for all of you Unix gurus. What are your thoughts on Pico as an editor. I have been using this editor for the last week or so and have made a lot of headway with my script writing. However, I find a lot of the quirks associated with this editor to be quite annoying. For instance,... (1 Reply)
Discussion started by: wmosley2
1 Replies
8. UNIX for Dummies Questions & Answers
I was wondering if there is any way to get a version of pico for windows. I have done a lot of programming work on Linux/UNIX exvironments for school, and I enjoy using pico for my programming needs, but I find all of the text editors in windows horrible, they distort my code and do not adhere to... (5 Replies)
Discussion started by: popac
5 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to setup the pico editor, which comes with pine. But I am not sure how to activate pine. I'm using the newest stable version of openbsd. If someone could tell me what file to execute, or, if not 'onboard' the package, where to get it. I would be much obliged.
Req (1 Reply)
Discussion started by: Requeth
1 Replies
10. UNIX for Dummies Questions & Answers
I was just wondering how to install Pioc onto FreeBSD?
could someone help mee? (1 Reply)
Discussion started by: Swifty
1 Replies
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)