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
。