<!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>Test with a set of inputs, and a set of desired outputs</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.fann-test-data.html">fann_test_data</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.fann-train-epoch.html">fann_train_epoch</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-test" class="refentry"> <div class="refnamediv"> <h1 class="refname">fann_test</h1> <p class="verinfo">(PECL fann >= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_test</span> — <span class="dc-title">Test with a set of inputs, and a set of desired outputs</span></p> </div> <div class="refsect1 description" id="refsect1-function.fann-test-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>fann_test</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span> , <span class="methodparam"><span class="type">array</span> <code class="parameter">$input</code></span> , <span class="methodparam"><span class="type">array</span> <code class="parameter">$desired_output</code></span> )</div> <p class="para rdfs-comment"> Test with a set of inputs, and a set of desired outputs. This operation updates the mean square error, but does not change the network in any way. </p> </div> <div class="refsect1 parameters" id="refsect1-function.fann-test-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">input</code></em></span> <dd> <p class="para"> An array of inputs. This array must be exactly <span class="function"><a href="function.fann-get-num-input.html" class="function">fann_get_num_input()</a></span> long. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">desired_output</code></em></span> <dd> <p class="para"> An array of desired outputs. This array must be exactly <span class="function"><a href="function.fann-get-num-output.html" class="function">fann_get_num_output()</a></span> long. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.fann-test-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-test-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.fann-test-data.html" class="function" rel="rdfs-seeAlso">fann_test_data()</a> - Test a set of training data and calculates the MSE for the training data</span></li> <li class="member"> <span class="function"><a href="function.fann-train.html" class="function" rel="rdfs-seeAlso">fann_train()</a> - Train one iteration with a set of inputs, and a set of desired outputs</span></li> <li class="member"> <span class="function"><a href="function.fann-get-num-input.html" class="function" rel="rdfs-seeAlso">fann_get_num_input()</a> - Get the number of input neurons</span></li> <li class="member"> <span class="function"><a href="function.fann-get-num-output.html" class="function" rel="rdfs-seeAlso">fann_get_num_output()</a> - Get the number of output neurons</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-test-data.html">fann_test_data</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.fann-train-epoch.html">fann_train_epoch</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>