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

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: fann_get_activation_steepness

2025-05-13

fann_get_activation_steepness

(PECL fann >= 1.0.0)

fann_get_activation_steepness为提供的神经和网络层数返回激活陡度

说明

fann_get_activation_steepness(resource $ann, int $layer, int $neuron): float

获取神经元数为 neuron 层数为 layer神经网络的激活陡度,将输入层数计为1层。

在输入层中是不可能获取激活陡度。

激活函数的陡度表明了激活函数从最小到最大有多块。一个高值表明将会提供一个更高效的训练。

在训练神经网络时,输出值应该处于极端(通常是 0 和 1,取决于激励函数),一般陡峭的激活函数将会被使用(比如为1.0时)。

默认的激活陡度是0.5.

参数

ann

神经网络 资源

layer

层数

neuron

神经元数

返回值

激活陡度,当神经元在神经网络中没定义时为-1,错误时返回 false .

参见

添加备注

用户贡献的备注

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

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

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