(PECL fann >= 1.0.0)
fann_cascadetrain_on_file — 使用 Cascade2 訓練演算法,針對從檔案讀取的整個資料集進行一段時間的訓練
$ann,$filename,$max_neurons,$neurons_between_reports,$desired_error與 fann_cascadetrain_on_data() 相同,但直接從檔案讀取訓練資料。
ann神經網路 resource。
filename包含訓練資料的檔案。
max_neurons要新增到神經網路的最大神經元數量
neurons_between_reports印出狀態報告之間的神經元數量。值為零表示不應印出任何報告。
desired_error所需的 fann_get_MSE() 或 fann_get_bit_fail(),取決於 fann_set_train_stop_function() 選擇的停止函數。