uTools-Manuals/docs/php/fann_get_activation_function.html
2019-04-28 19:00:34 +08:00

102 lines
4.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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-get-activation-function" class="refentry">
<div class="refnamediv">
<h1 class="refname">fann_get_activation_function</h1>
<p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_get_activation_function</span> &mdash; <span class="dc-title">返回激励函数</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.fann-get-activation-function-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>fann_get_activation_function</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$layer</code></span>
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$neuron</code></span>
) : <span class="type">int</span></div>
<p class="para rdfs-comment">
获取在层数为 <em>layer</em> 的网络中神经元数为 <em>neuron</em>的激励函数,输入层被计为 0.
</p>
<p class="para">
在输入层是不能获取神经元激励函数的。
</p>
<p class="para">
返回值将会是<a href="fann.constants.html#constants.fann-activation-funcs" class="link">激励函数</a> 常量之一。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.fann-get-activation-function-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">layer</code></dt>
<dd>
<p class="para">
层数。
</p>
</dd>
<dt>
<code class="parameter">neuron</code></dt>
<dd>
<p class="para">
神经元数
</p>
</dd>
</dl>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.fann-get-activation-function-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
<a href="fann.constants.html#constants.fann-train" class="link">学习函数</a> 常量或者如果神经未在神经网络中定义返回 -1 错误则返回 <strong><code>FALSE</code></strong> .
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.fann-get-activation-function-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="fann_set_activation_function_layer.html" class="function" rel="rdfs-seeAlso">fann_set_activation_function_layer()</a> - 为已应用的层中所有的神经元设置激活函数。</span></li>
<li class="member"><span class="function"><a href="fann_set_activation_function_hidden.html" class="function" rel="rdfs-seeAlso">fann_set_activation_function_hidden()</a> - 为所有隐藏层设置激活函数</span></li>
<li class="member"><span class="function"><a href="fann_set_activation_function_output.html" class="function" rel="rdfs-seeAlso">fann_set_activation_function_output()</a> - 为输出层设置激活函数</span></li>
<li class="member"><span class="function"><a href="fann_set_activation_steepness.html" class="function" rel="rdfs-seeAlso">fann_set_activation_steepness()</a> - 为提供的神经元和层设置激活陡度</span></li>
<li class="member"><span class="function"><a href="fann_set_activation_function.html" class="function" rel="rdfs-seeAlso">fann_set_activation_function()</a> - 为已应用的神经元和层设置激活函数</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>