CakeFest 2024: The Official CakePHP Conference

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 .

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top