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_init_weights - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_init_weights

2025-05-13

fann_init_weights

(PECL fann >= 1.0.0)

fann_init_weights使用 Widrow 和 Nguyen 算法初始化权重。

说明

fann_init_weights(resource $ann, resource $train_data): bool

使用 Widrow 和 Nguyen 算法初始化权重。

该函数的作用和 fann_randomize_weights()函数相似。 该函数将会使用 Derrick Nguyen 和 Bernard Widrow 开发的算法来设置权重用于加速训练。 该技术不是经常奏效,在某些场景下比纯粹的随机初始化来得更低效。

该算法要求获取输入数据的范围(比如 最大和最小输入),因此接受别的参数,数据(将会在网络中训练的数据)。

参数

ann

神经网络 资源

train_data

神经网络训练数据 资源

返回值

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

参见

添加备注

用户贡献的备注

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

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

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