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