mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@348400 c90b9560-bf6c-de11-be94-00142212c4b1
116 lines
3.4 KiB
XML
116 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 83b687a1599117968687c2606a50e8c83fe9a3f3 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.fann-set-callback" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>fann_set_callback</refname>
|
|
<refpurpose>Défini la fonction de rappel à utiliser pendant l'entrainement</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>fann_set_callback</methodname>
|
|
<methodparam><type>resource</type><parameter>ann</parameter></methodparam>
|
|
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Défini la fonction de rappel à utiliser pendant l'entrainement.
|
|
Elle sera appelée depuis la fonction
|
|
<function>fann_train_on_data</function> ou la fonction
|
|
<function>fann_train_on_file</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>ann</parameter></term>
|
|
<listitem>
|
|
&fann.ann.description;
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>callback</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La fonction de rappel fourni prendra les paramètres suivants :
|
|
<simplelist>
|
|
<member>
|
|
<literal>ann</literal> - Une ressource représentant le réseau neuronal
|
|
</member>
|
|
<member>
|
|
<literal>train</literal> - Une ressource représentant
|
|
les données d'entrainement ou &null; si appelé depuis la fonction
|
|
<function>fann_train_on_file</function>
|
|
</member>
|
|
<member>
|
|
<literal>max_epochs</literal> - Le nombre maximal d'époques que
|
|
l'entrainement doit continuer
|
|
</member>
|
|
<member>
|
|
<literal>epochs_between_reports</literal> - Le nombre d'époques
|
|
entre les appels à cette fonction
|
|
</member>
|
|
<member>
|
|
<literal>desired_error</literal> - Le choix entre
|
|
<function>fann_get_MSE</function> et
|
|
<function>fann_get_bit_fail</function>, suivant la fonction d'arrêt
|
|
choisie par la fonction <function>fann_set_train_stop_function</function>
|
|
</member>
|
|
<member>
|
|
<literal>epochs</literal> - L'époque courante
|
|
</member>
|
|
</simplelist>
|
|
</para>
|
|
<para>
|
|
La fonction de rappel doit retourner &true;. Si elle retourne &false;,
|
|
l'entrainement se terminera.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
&fann.return.bool;
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>fann_train_on_data</function></member>
|
|
<member><function>fann_train_on_file</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|