<?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-create-sparse.php',
    1 => 'fann_create_sparse',
    2 => 'Creates a standard backpropagation neural network, which is not fully connected',
  ),
  'up' => 
  array (
    0 => 'ref.fann.php',
    1 => 'Функції Fann',
  ),
  'prev' => 
  array (
    0 => 'function.fann-create-shortcut-array.php',
    1 => 'fann_create_shortcut_array',
  ),
  'next' => 
  array (
    0 => 'function.fann-create-sparse-array.php',
    1 => 'fann_create_sparse_array',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/fann/functions/fann-create-sparse.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fann-create-sparse" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_create_sparse</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_create_sparse</span> &mdash; <span class="dc-title">Creates a standard backpropagation neural network, which is not fully connected</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-create-sparse-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fann_create_sparse</strong></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">$connection_rate</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">$num_layers</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">$num_neurons1</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">$num_neurons2</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">...$num_neuronsN</code></span><br>): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="para rdfs-comment">
   Creates a standard backpropagation neural network, which is not fully connected.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-create-sparse-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">connection_rate</code></dt>
    <dd>
     <p class="para">
      The connection rate controls how many connections there will be in the network. If the connection rate
      is set to 1, the network will be fully connected, but if it is set to 0.5 only half of the connections
      will be set. A connection rate of 1 will yield the same result as <span class="function"><a href="function.fann-create-standard.php" class="function">fann_create_standard()</a></span>.
     </p>
    </dd>
   
   
    <dt><code class="parameter">num_layers</code></dt>
    <dd>
     <p class="para">
      The total number of layers including the input and the output layer.
     </p>
    </dd>
   
   
    <dt><code class="parameter">num_neurons1</code></dt>
    <dd>
     <p class="para">
      Number of neurons in the first layer.
     </p>
    </dd>
   
   
    <dt><code class="parameter">num_neurons2</code></dt>
    <dd>
     <p class="para">
      Number of neurons in the second layer.
     </p>
    </dd>
   
   
    <dt><code class="parameter">num_neuronsN</code></dt>
    <dd>
     <p class="para">
      Number of neurons in other layers.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-create-sparse-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns a neural network resource on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on error.
  </p>
 </div>



 <div class="refsect1 seealso" id="refsect1-function.fann-create-sparse-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.fann-create-sparse-array.php" class="function" rel="rdfs-seeAlso">fann_create_sparse_array()</a> - Creates a standard backpropagation neural network, which is not fully connected using an array of layer sizes</span></li>
    <li><span class="function"><a href="function.fann-create-standard.php" class="function" rel="rdfs-seeAlso">fann_create_standard()</a> - Creates a standard fully connected backpropagation neural network</span></li>
    <li><span class="function"><a href="function.fann-create-shortcut.php" class="function" rel="rdfs-seeAlso">fann_create_shortcut()</a> - Creates a standard backpropagation neural network which is not fully connectected and has shortcut connections</span></li>
   </ul>
  </p>
 </div>


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