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
神经网络 资源。
input_vector
将要被缩放的输入向量。
成功时返回 true
,其它情况下返回 false
。
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