(PECL fann >= 1.0.0)
fann_set_callback — Défini la fonction de rappel à utiliser pendant l'entrainement
$ann
, collable $callback
)Défini la fonction de rappel à utiliser pendant l'entrainement. Elle sera appelée depuis la fonction fann_train_on_data() ou la fonction fann_train_on_file().
annRessource de réseau de neurones.
callbackLa fonction de rappel fourni prendra les paramètres suivants :
NULL si appelé depuis la fonction
fann_train_on_file()
La fonction de rappel doit retourner TRUE. Si elle retourne FALSE,
l'entrainement se terminera.
Retourne TRUE en cas de succès, FALSE sinon.