CakeFest 2024: The Official CakePHP Conference

fann_set_activation_function_layer

(PECL fann >= 1.0.0)

fann_set_activation_function_layer为已应用的层中所有的神经元设置激活函数

说明

fann_set_activation_function_layer(resource $ann, int $activation_function, int $layer): bool

为层数为 layer 的所有神经元设置激活函数,将输入层计为0.

在输入层中为神经元设置激活函数是不可能的。

参数

ann

神经网络 资源

activation_function

激活函数 常量。

layer

层数。

返回值

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

参见

add a note

User Contributed Notes

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