<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.fann.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.fann-train-on-file.php',
    1 => 'fann_train_on_file',
    2 => 'Trains on an entire dataset, which is read from file, for a period of time',
  ),
  'up' => 
  array (
    0 => 'ref.fann.php',
    1 => 'Функції Fann',
  ),
  'prev' => 
  array (
    0 => 'function.fann-train-on-data.php',
    1 => 'fann_train_on_data',
  ),
  'next' => 
  array (
    0 => 'class.fannconnection.php',
    1 => 'FANNConnection',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/fann/functions/fann-train-on-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fann-train-on-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_train_on_file</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_train_on_file</span> &mdash; <span class="dc-title">Trains on an entire dataset, which is read from file, for a period of time</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-train-on-file-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fann_train_on_file</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$ann</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$max_epochs</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$epochs_between_reports</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$desired_error</code></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Trains on an entire dataset, which is read from file, for a period of time.
  </p>
  <p class="para">
   This training uses the training algorithm chosen by <span class="function"><a href="function.fann-set-training-algorithm.php" class="function">fann_set_training_algorithm()</a></span> and
   the parameters set for these training algorithms.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-train-on-file-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">ann</code></dt>
    <dd>
     <p class="para">Ресурс (<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>)
нейронної мережі.</p>
    </dd>
   
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <p class="para">
      The file containing train data
     </p>
    </dd>
   
   
    <dt><code class="parameter">max_epochs</code></dt>
    <dd>
     <p class="para">
      The maximum number of epochs the training should continue
     </p>
    </dd>
   
   
    <dt><code class="parameter">epochs_between_reports</code></dt>
    <dd>
     <p class="para">
      The number of epochs between calling a user function. A value of zero means that user function is not called.
     </p>
    </dd>
   
   
    <dt><code class="parameter">desired_error</code></dt>
    <dd>
     <p class="para">
      The desired <span class="function"><a href="function.fann-get-mse.php" class="function">fann_get_MSE()</a></span> or <span class="function"><a href="function.fann-get-bit-fail.php" class="function">fann_get_bit_fail()</a></span>, depending on the stop function
      chosen by <span class="function"><a href="function.fann-set-train-stop-function.php" class="function">fann_set_train_stop_function()</a></span>
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-train-on-file-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">Повертає <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> у разі успіху або
<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> у разі невдачі.</p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-train-on-file-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.fann-train-on-data.php" class="function" rel="rdfs-seeAlso">fann_train_on_data()</a> - Trains on an entire dataset for a period of time</span></li>
    <li><span class="function"><a href="function.fann-train-epoch.php" class="function" rel="rdfs-seeAlso">fann_train_epoch()</a> - Train one epoch with a set of training data</span></li>
    <li><span class="function"><a href="function.fann-get-bit-fail.php" class="function" rel="rdfs-seeAlso">fann_get_bit_fail()</a> - The number of fail bits</span></li>
    <li><span class="function"><a href="function.fann-get-mse.php" class="function" rel="rdfs-seeAlso">fann_get_MSE()</a> - Reads the mean square error from the network</span></li>
    <li><span class="function"><a href="function.fann-set-train-stop-function.php" class="function" rel="rdfs-seeAlso">fann_set_train_stop_function()</a> - Sets the stop function used during training</span></li>
    <li><span class="function"><a href="function.fann-set-training-algorithm.php" class="function" rel="rdfs-seeAlso">fann_set_training_algorithm()</a> - Sets the training algorithm</span></li>
    <li><span class="function"><a href="function.fann-set-callback.php" class="function" rel="rdfs-seeAlso">fann_set_callback()</a> - Sets the callback function for use during training</span></li>
   </ul>
  </p>
 </div>



</div><?php manual_footer($setup); ?>