(PECL fann >= 1.0.0)
fann_train_on_file — 在從某個文件讀取的整個數(shù)據(jù)集上訓(xùn)練一段時間。
$ann,$filename,$max_epochs,$epochs_between_reports,$desired_error在從某個文件讀取的整個數(shù)據(jù)集上訓(xùn)練一段時間。
該訓(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用戶函數(shù)之間的周期數(shù)。當(dāng)為0時表示沒有用戶函數(shù)被調(diào)用。
desired_error期望的是 fann_get_MSE() 或 fann_get_bit_fail()的返回值, 取決于 fann_set_train_stop_function() 選擇的停止函數(shù)。
成功時返回 true,其它情況下返回 false。