update page now
Laravel Live Japan

fann_scale_train_data

(PECL fann >= 1.0.0)

fann_scale_train_dataEscala la entradas y salidas de los datos de entrenamiento al rango especificado

Descripción

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

Escala la entradas y salidas de los datos de entrenamiento al rango especificado.

Parámetros

train_data

Recurso de datos de entrenamiento de la red neuronal.

new_min

El nuevo mínimo después de escalar las entradas y salidas de los datos de entrenamiento.

new_max

El nuevo máximo después de escalar las entradas y salidas de los datos de entrenamiento.

Valores devueltos

Devuelve true en caso de éxito, false de lo contrario.

Ver también

add a note

User Contributed Notes 1 note

up
0
geekgirl dot joy at gmail dot com
4 years ago
<?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, -1, 1);

/ Save the new scaled traning data as a file
fann_save_train($train_data, $path . 'ScaledTraining.data');
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant