fann_scale_train_data

(PECL fann >= 1.0.0)

fann_scale_train_dataScales the inputs and outputs in the training data to the specified range

Description

bool fann_scale_train_data ( resource $train_data , float $new_min , float $new_max )

Scales the inputs and outputs in the training data to the specified range.

Parameters

train_data

Neural network training data resource.

new_min

New minimum after scaling inputs and outputs in training data.

new_max

New maximum after scaling inputs and outputs in training data.

Return Values

Returns TRUE on success, or FALSE otherwise.

See Also

Коментарии

<?php

// How to scale an existing unscaled training file and save it

$path 'TrainingData' DIRECTORY_SEPARATOR;

// Read raw (un-scaled) training data from file
$train_data fann_read_train_from_file($path "Training.data");

// Scale to a range of -1 to 1
fann_scale_train_data($train_data, -11);

// Save the new scaled traning data as a file
fann_save_train($train_data$path 'ScaledTraining.data');
2021-07-09 22:09:33
http://php5.kiev.ua/manual/ru/function.fann-scale-train-data.html

    Поддержать сайт на родительском проекте КГБ