略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_test

2024-04-28

fann_test

(PECL fann >= 1.0.0)

fann_test使用一组输入和一组期望的输出来测试。

说明

fann_test(resource $ann, array $input, array $desired_output): bool

使用一组输入和一组期望的输出来测试。 这个操作将会更新均方误差,但是无论如何都不会改变网络。

参数

ann

神经网络 资源

input

输入数组。 这个数组必须和 fann_get_num_input() 一样长。

desired_output

期望的输出数组。 这个数组必须和 fann_get_num_output() 一样长.

返回值

成功时返回 true,其它情况下返回 false

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.fann-test.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3