fann_set_activation_steepness
(PECL fann >= 1.0.0)
fann_set_activation_steepness — 为提供的神经元和层设置激活陡度
说明
fann_set_activation_steepness(
resource
float
int
int
): bool
resource
$ann
,float
$activation_steepness
,int
$layer
,int
$neuron
): bool
为层数为 layer
,神经元数为 neuron
的神经元设置激活陡度,输出层的层数计为0。
为输入层中的神经元设置激活陡度是不可能的。.
激活函数的陡度表示激活从最大值到最小值有多快。一个高的激活函数值也会导致一个更积极的训练。
当训练神经网络中输出值处于一个极端值(通常为0或者1,取决于激活函数)时,可以使用陡峭的激活函数(比如 1.0)。
默认激活陡度是0.5。
参数
-
ann
-
神经网络 资源。
-
activation_steepness
-
激活陡度。
-
layer
-
层数。
-
neuron
-
神经元数。
返回值
成功时返回 true
,其它情况下返回 false
。
参见
- fann_set_activation_steepness_layer() - 为提供的层中所有的神经元设置激活陡度
- fann_set_activation_steepness_hidden() - 为所有隐藏层中所有的神经元设置激活函数陡度
- fann_set_activation_steepness_output() - 在输出层中设置激活陡度
- fann_get_activation_steepness() - 为提供的神经和网络层数返回激活陡度
- fann_set_activation_function() - 为已应用的神经元和层设置激活函数

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/function.fann-set-activation-steepness.php