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
-
神经元数。
参见
- fann_set_activation_steepness_layer() - 为提供的层中所有的神经元设置激活陡度
- fann_set_activation_steepness_hidden() - 为所有隐藏层中所有的神经元设置激活函数陡度
- fann_set_activation_steepness_output() - 在输出层中设置激活陡度
- fann_get_activation_steepness() - 为提供的神经和网络层数返回激活陡度
- fann_set_activation_function() - 为已应用的神经元和层设置激活函数
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.fann-set-activation-steepness.php