PHP 8.3.4 Released!

fann_read_train_from_file

(PECL fann >= 1.0.0)

fann_read_train_from_fileReads a file that stores training data

Açıklama

fann_read_train_from_file(string $filename): resource

Reads a file that stores training data.

Bağımsız Değişkenler

filename

The input file in the following format:

num_train_data num_input num_output
inputdata separated by space
outputdata separated by space

.
.
.

inputdata separated by space
outputdata separated by space

Dönen Değerler

Başarı durumunda eğitim verisi özkaynağı, on success, hata durumunda false döner.

Örnekler

Örnek 1 fann_read_train_from_file() example

<?php
$train_data
= fann_read_train_from_file("xor.data");
if (
$train_data) {
// Do something with $train_data for XOR function
}
?>

Contents of xor.data

4 2 1
-1 -1
-1
-1 1
1
1 -1
1
1 1
-1

Ayrıca Bakınız

add a note

User Contributed Notes 1 note

up
0
Ray.Paseur sometimes uses Gmail
7 years ago
An explanation of the values used in xor.data is available here:
http://php.net/manual/en/fann.examples-1.php#117242
To Top