mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
86 lines
3.6 KiB
HTML
86 lines
3.6 KiB
HTML
<!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>使用一组训练数据训练一个周期。</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.fann-train-epoch" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">fann_train_epoch</h1>
|
|
<p class="verinfo">(PECL fann >= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_train_epoch</span> — <span class="dc-title">使用一组训练数据训练一个周期。</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.fann-train-epoch-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>fann_train_epoch</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>
|
|
, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$data</code></span>
|
|
) : <span class="type">float</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
使用保存在 data 中训练数据训练一个周期。一个训练周期表示所有的训练数据正好使用了一次。
|
|
</p>
|
|
<p class="para">
|
|
这个函数将会返回在其实际计算之前或当中被计算的 MSE 错误。但是因为计算需要再次走一遍整个训练集,所有训练周期之后的不是真正的 MSE。 在训练中使用这个值是绰绰有余的。
|
|
</p>
|
|
<p class="para">
|
|
该函数使用的是被 <span class="function"><a href="fann_set_training_algorithm.html" class="function">fann_set_training_algorithm()</a></span> 函数选中的训练算法。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.fann-train-epoch-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">ann</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">Neural network <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">data</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">Neural network training data <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.fann-train-epoch-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
成功,则返回 MSE, 错误则返回 <strong><code>FALSE</code></strong> .
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.fann-train-epoch-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="fann_train_on_data.html" class="function" rel="rdfs-seeAlso">fann_train_on_data()</a> - 在整个数据集上训练一段时间。</span></li>
|
|
<li class="member"><span class="function"><a href="fann_test_data.html" class="function" rel="rdfs-seeAlso">fann_test_data()</a> - 使用训练数据来测试并且计算出 MSE .</span></li>
|
|
<li class="member"><span class="function"><a href="fann_get_mse.html" class="function" rel="rdfs-seeAlso">fann_get_MSE()</a> - 从网络中读取均方误差。</span></li>
|
|
<li class="member"><span class="function"><a href="fann_set_training_algorithm.html" class="function" rel="rdfs-seeAlso">fann_set_training_algorithm()</a> - 设置训练算法。</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div></div></div></body></html> |