(PECL fann >= 1.0.0)
fann_set_callback — 設定訓練期間使用的回呼函式
設定訓練期間使用的回呼函式。這表示它會從 fann_train_on_data() 或 fann_train_on_file() 中呼叫。
ann
神經網路 resource。
callback
提供的回呼函式會接收下列參數
ann
- 神經網路 resourcetrain
- 訓練資料 resource 或 null
,如果從 fann_train_on_file() 呼叫max_epochs
- 訓練應持續的最大次數 (epochs)epochs_between_reports
- 呼叫此函式的間隔次數 (epochs)desired_error
- 想要的 fann_get_MSE() 或 fann_get_bit_fail(),取決於 fann_set_train_stop_function() 選擇的停止函式epochs
- 目前的次數 (epoch)