(PECL fann >= 1.0.0)
fann_train_on_file — 在從某個(gè)文件讀取的整個(gè)數據集上訓練一段時(shí)間。
$ann,$filename,$max_epochs,$epochs_between_reports,$desired_error在從某個(gè)文件讀取的整個(gè)數據集上訓練一段時(shí)間。
該訓練使用 fann_set_training_algorithm() 函數選擇的算法和這些訓練算法設置的參數。
ann神經(jīng)網(wǎng)絡(luò ) 資源。
filename包含訓練數據的文件。
max_epochs訓練應該繼續的最大周期數。
epochs_between_reports用戶(hù)函數之間的周期數。當為0時(shí)表示沒(méi)有用戶(hù)函數被調用。
desired_error期望的是 fann_get_MSE() 或 fann_get_bit_fail()的返回值, 取決于 fann_set_train_stop_function() 選擇的停止函數。
成功時(shí)返回 true,其它情況下返回 false。