設定訓練期間使用的停止函式。

fann_set_train_stop_function

(PECL fann >= 1.0.0)

fann_set_train_stop_function設定訓練期間使用的停止函式。

說明

fann_set_train_stop_function(resource $ann, int $stop_function): bool

設定訓練期間使用的停止函式。

停止函式更多詳情,參見 stop functions 常量。

參數

ann

神經網路 資源

stop_function

stop function 常量。

返回值

成功時返回 true,其它情況下返回 false

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *