(PECL fann >= 1.0.0)
fann_set_callback — 设置训练期间使用的回调函数。
设置训练期间使用的回调函数。 这意味着它被fann_train_on_data() 或 fann_train_on_file()调用。
ann
神经网络 资源。
callback
提供的回调函数接受以下参数:
ann
- 神经网络 resourcetrain
- 训练数据 resource
或者 当被 fann_train_on_file() 为 null
max_epochs
- 训练将进行的最大周期数。epochs_between_reports
- 在调用该函数之前训练进行的最大周期数。desired_error
- 期望的 fann_get_MSE() 或者
fann_get_bit_fail(), 取决于fann_set_train_stop_function()函数选择的停止函数。epochs
- The current epoch
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant