PHP 8.3.4 Released!

fann_create_train

(PECL fann >= 1.0.0)

fann_create_trainCreates an empty training data struct

Beschreibung

fann_create_train(int $num_data, int $num_input, int $num_output): resource

Creates an empty training data struct.

Parameter-Liste

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

Rückgabewerte

Gibt bei Erfolg eine Ressource mit Trainingsdaten zurück oder false im Fehlerfall.

Anmerkungen

Hinweis:

Diese Funktion ist nur verfügbar, wenn die Erweiterung fann mit libfann >= 2.2 kompiliert wurde.

Siehe auch

add a note

User Contributed Notes 1 note

up
3
geekgirl dot joy at gmail dot com
5 years ago
The result of fann_create_train() is a "blank" or "empty" training data resource which can be saved to a file using fann_save_train().

<?php

$num_data
= 4;
$num_input = 2;
$num_output = 1;

// Create an empty 'template' training resource in memory
$empty_training_resource = fann_create_train ($num_data , $num_input , $num_output);

// Save template.data
fann_save_train($empty_training_resource, 'template.data');

?>

File Saved (template.data):
4 2 1
0 0
0
0 0
0
0 0
0
0 0
0
To Top