為已應用的層中所有的神經元設定啟用函式。

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

參見

Leave a Reply

Your email address will not be published. Required fields are marked *