fann_read_train_from_file

(PECL fann >= 1.0.0)

fann_read_train_from_fileReads a file that stores training data

Description

resource fann_read_train_from_file ( string $filename )

Reads a file that stores training data.

Liste de paramètres

filename

The input file in the following format:

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

Contents of xor.data

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

Voir aussi

LoadingChargement en cours