CakeFest 2024: The Official CakePHP Conference

fann_set_callback

(PECL fann >= 1.0.0)

fann_set_callback设置训练期间使用的回调函数。

说明

fann_set_callback(resource $ann, callable $callback): bool

设置训练期间使用的回调函数。 这意味着它被fann_train_on_data()fann_train_on_file()调用。

参数

ann

神经网络 资源

callback

提供的回调函数接受以下参数:

回调将会返回 true. 如果返回 false, 表明训练将会终止。

返回值

成功时返回 true,其它情况下返回 false

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top