fann_scale_input and fann_scale_output return not bool value. This function return scaling vector.
Example
$r = fann_scale_input($ann, $input);
$output = fann_run($ann, $input);
$s = fann_scale_output ( $ann, $output);
$r and $s is array
(PECL fann >= 1.0.0)
fann_scale_input — Scale data in input vector before feed it to ann based on previously calculated parameters
$ann
, array $input_vector
) : boolScale data in input vector before feed it to ann based on previously calculated parameters.
ann
Neural network resource.
input_vector
Input vector that will be scaled
Returns true
on success, or false
otherwise.
fann_scale_input and fann_scale_output return not bool value. This function return scaling vector.
Example
$r = fann_scale_input($ann, $input);
$output = fann_run($ann, $input);
$s = fann_scale_output ( $ann, $output);
$r and $s is array