(PECL fann >= 1.0.0)
fann_train_on_data — 以整個資料集訓練一段時間
$ann
,$data
,$max_epochs
,$epochs_between_reports
,$desired_error
以整個資料集訓練一段時間。
此訓練使用 fann_set_training_algorithm() 選擇的訓練演算法,以及為這些訓練演算法設定的參數。
ann
神經網路 資源。
data
神經網路訓練數據 資源。
max_epochs
訓練應繼續的最大訓練週期數。
epochs_between_reports
呼叫回呼函式之間的訓練週期數。值為零表示不呼叫使用者函式。
desired_error
期望的 fann_get_MSE() 或 fann_get_bit_fail() 值,取決於 fann_set_train_stop_function() 選擇的停止函式。