Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 2896

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Saves the entire network to a configuration file</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-save-train.html">fann_save_train</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-scale-input-train-data.html">fann_scale_input_train_data</a></div>
 <div class="up"><a href="ref.fann.html">Fann Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.fann-save" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_save</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_save</span> &mdash; <span class="dc-title">Saves the entire network to a configuration file</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-save-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>fann_save</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$configuration_file</code></span>
   )</div>

  <p class="para rdfs-comment">
   Saves the entire network to a configuration file.
  </p>
  <p class="para">
   The configuration file contains all information about the neural network and enables
    <span class="function"><a href="function.fann-create-from-file.html" class="function">fann_create_from_file()</a></span> to create an exact copy of the neural network
   and all of the parameters associated with the neural network.
  </p>
  <p class="para">
   These three parameters ( <span class="function"><a href="function.fann-set-callback.html" class="function">fann_set_callback()</a></span>,  <span class="function"><a href="function.fann-set-error-log.html" class="function">fann_set_error_log()</a></span>,
    <span class="function"><strong>fann_set_user_data()</strong></span>) are NOT saved to the file because they cannot safely be ported
   to a different location. Also temporary parameters generated during training like  <span class="function"><a href="function.fann-get-mse.html" class="function">fann_get_MSE()</a></span>
   is not saved.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-save-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term"><em><code class="parameter">ann</code></em></span>
    <dd>

     <p class="para">Neural network <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.</p>
    </dd>

   </dt>

   <dt>

    <span class="term"><em><code class="parameter">configuration_file</code></em></span>
    <dd>

     <p class="para">
      The configuration file path.
     </p>
    </dd>

   </dt>

  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-save-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">Returns <strong><code>TRUE</code></strong> on success, or <strong><code>FALSE</code></strong> otherwise.</p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-save-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.fann-create-from-file.html" class="function" rel="rdfs-seeAlso">fann_create_from_file()</a> - Constructs a backpropagation neural network from a configuration file</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-save-train.html">fann_save_train</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-scale-input-train-data.html">fann_scale_input_train_data</a></div>
 <div class="up"><a href="ref.fann.html">Fann Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>