Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: fann_train_on_data - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_train_on_data

2025-05-13

fann_train_on_data

(PECL fann >= 1.0.0)

fann_train_on_data在整个数据集上训练一段时间。

说明

fann_train_on_data(
    resource $ann,
    resource $data,
    int $max_epochs,
    int $epochs_between_reports,
    float $desired_error
): bool

在整个数据集上训练一段时间。

该训练使用 fann_set_training_algorithm() 函数选择的算法和这些训练算法设置的参数。

参数

ann

神经网络 资源

data

神经网络训练数据 资源

max_epochs

训练应该继续的最大周期数。

epochs_between_reports

用户函数之间的周期数。当为0时表示没有用户函数被调用。

desired_error

期望的是 fann_get_MSE()fann_get_bit_fail()的返回值, 取决于 fann_set_train_stop_function() 选择的停止函数。

返回值

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

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

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

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3