mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
93 lines
2.9 KiB
HTML
93 lines
2.9 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>给每个连接赋一个介于 min_weight 和 max_weight 之间的随机权重。</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.fann-randomize-weights" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">fann_randomize_weights</h1>
|
|
<p class="verinfo">(PECL fann >= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_randomize_weights</span> — <span class="dc-title">给每个连接赋一个介于 min_weight 和 max_weight 之间的随机权重。</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.fann-randomize-weights-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>fann_randomize_weights</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>
|
|
, <span class="methodparam"><span class="type">float</span> <code class="parameter">$min_weight</code></span>
|
|
, <span class="methodparam"><span class="type">float</span> <code class="parameter">$max_weight</code></span>
|
|
) : <span class="type">bool</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
给每个连接赋一个介于 <code class="parameter">min_weight</code> 和 <code class="parameter">max_weight</code>之间的随机权重。
|
|
</p>
|
|
<p class="para">
|
|
从一开始权重介于 -0.1 和 0.1之间。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.fann-randomize-weights-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">min_weight</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
最小权重值
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">max_weight</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
最大权重值
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.fann-randomize-weights-returnvalues">
|
|
<h3 class="title">返回值</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-randomize-weights-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="fann_init_weights.html" class="function" rel="rdfs-seeAlso">fann_init_weights()</a> - 使用 Widrow 和 Nguyen 算法初始化权重。</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div></div></div></body></html> |