<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.fann-set-callback.php',
    1 => 'fann_set_callback',
    2 => 'Sets the callback function for use during training',
  ),
  'up' => 
  array (
    0 => 'ref.fann.php',
    1 => 'Fann İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.fann-set-bit-fail-limit.php',
    1 => 'fann_set_bit_fail_limit',
  ),
  'next' => 
  array (
    0 => 'function.fann-set-cascade-activation-functions.php',
    1 => 'fann_set_cascade_activation_functions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/fann/functions/fann-set-callback.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fann-set-callback" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_set_callback</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_set_callback</span> &mdash; <span class="dc-title">Sets the callback function for use during training</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-set-callback-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fann_set_callback</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$ann</code></span>, <span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Sets the callback function for use during training. It means that it is called from
   <span class="function"><a href="function.fann-train-on-data.php" class="function">fann_train_on_data()</a></span> or <span class="function"><a href="function.fann-train-on-file.php" class="function">fann_train_on_file()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-set-callback-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">ann</code></dt>
    <dd>
     <p class="para">Sinir ağı özkaynağı.</p>
    </dd>
   
   
    <dt><code class="parameter">callback</code></dt>
    <dd>
     <p class="para">
      The supplied callback function takes following parameters:
      <ul class="simplelist">
       <li><code class="literal">ann</code> - The neural network <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></li>
       <li><code class="literal">train</code> - The train data <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>
        or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if called from <span class="function"><a href="function.fann-train-on-file.php" class="function">fann_train_on_file()</a></span></li>
       <li><code class="literal">max_epochs</code> - The maximum number of epochs the training should continue</li>
       <li><code class="literal">epochs_between_reports</code> - The number of epochs between calling this function</li>
       <li><code class="literal">desired_error</code> - 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></li>
       <li><code class="literal">epochs</code> - The current epoch</li>
      </ul>
     </p>
     <p class="para">
      The callback should return <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. If it returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, the training will terminate.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-set-callback-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">Başarı
durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> yoksa <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>döner.</p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-set-callback-seealso">
  <h3 class="title">Ayrıca Bakınız</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-on-file.php" class="function" rel="rdfs-seeAlso">fann_train_on_file()</a> - Trains on an entire dataset, which is read from file, for a period of time</span></li>
   </ul>
  </p>
 </div>



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