mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 06:18:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331220 c90b9560-bf6c-de11-be94-00142212c4b1
86 lines
2.5 KiB
XML
86 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
|
||
<refentry xml:id="function.fann-init-weights" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>fann_init_weights</refname>
|
||
<refpurpose>Initialize the weights using Widrow + Nguyen’s algorithm</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>fann_init_weights</methodname>
|
||
<methodparam><type>resource</type><parameter>ann</parameter></methodparam>
|
||
<methodparam><type>resource</type><parameter>train_data</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Initialize the weights using Widrow + Nguyen’s algorithm.
|
||
</para>
|
||
<para>
|
||
This function behaves similarly to <function>fann_randomize_weights</function>. It will use the algorithm developed by
|
||
Derrick Nguyen and Bernard Widrow to set the weights in such a way as to speed up training. This technique is not always
|
||
successful, and in some cases can be less efficient than a purely random initialization.
|
||
</para>
|
||
<para>
|
||
The algorithm requires access to the range of the input data (for example largest and smallest input), and therefore
|
||
accepts a second argument, data, which is the training data that will be used to train the network.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>ann</parameter></term>
|
||
<listitem>
|
||
&fann.ann.description;
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>train_data</parameter></term>
|
||
<listitem>
|
||
&fann.train.description;
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
&fann.return.bool;
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>fann_randomize_weights</function></member>
|
||
<member><function>fann_read_train_from_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
|
||
-->
|