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 — 在以前计算参数的基础上,在训练之前放大输入向量中的数据
$ann
, array $input_vector
) : bool在以前计算参数的基础上,在训练之前放大输入向量中的数据。
ann
Neural network resource.
input_vector
将要被缩放的输入向量。
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
Please note -> ALLfann scaling related functions are not functional.
They are implemented wrong so the scaling is calculated within the library but it's not referenced back to the input variables.