Files
mlpack/doc/html/classmlpack_1_1ann_1_1SoftplusFunction.html
T

410 lines
18 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>mlpack: mlpack::ann::SoftplusFunction Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra-stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mlpack
&#160;<span id="projectnumber">master</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacemlpack.html">mlpack</a></li><li class="navelem"><a class="el" href="namespacemlpack_1_1ann.html">ann</a></li><li class="navelem"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html">SoftplusFunction</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classmlpack_1_1ann_1_1SoftplusFunction-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">mlpack::ann::SoftplusFunction Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The softplus function, defined by.
<a href="classmlpack_1_1ann_1_1SoftplusFunction.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab2f3f50033e6fddd8ce88e94c54d03f7"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#ab2f3f50033e6fddd8ce88e94c54d03f7">Deriv</a> (const double y)</td></tr>
<tr class="memdesc:ab2f3f50033e6fddd8ce88e94c54d03f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the first derivative of the softplus function. <a href="#ab2f3f50033e6fddd8ce88e94c54d03f7">More...</a><br /></td></tr>
<tr class="separator:ab2f3f50033e6fddd8ce88e94c54d03f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a466e82584960588fe67a9608b51619d1"><td class="memTemplParams" colspan="2">template&lt;typename InputVecType , typename OutputVecType &gt; </td></tr>
<tr class="memitem:a466e82584960588fe67a9608b51619d1"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#a466e82584960588fe67a9608b51619d1">Deriv</a> (const InputVecType &amp;y, OutputVecType &amp;x)</td></tr>
<tr class="memdesc:a466e82584960588fe67a9608b51619d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the first derivatives of the softplus function. <a href="#a466e82584960588fe67a9608b51619d1">More...</a><br /></td></tr>
<tr class="separator:a466e82584960588fe67a9608b51619d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a534de86c72523226dbd21759dc7b05b7"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#a534de86c72523226dbd21759dc7b05b7">Fn</a> (const double x)</td></tr>
<tr class="memdesc:a534de86c72523226dbd21759dc7b05b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the softplus function. <a href="#a534de86c72523226dbd21759dc7b05b7">More...</a><br /></td></tr>
<tr class="separator:a534de86c72523226dbd21759dc7b05b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b5253f0ec7fdaefb08444606f41ce1a"><td class="memTemplParams" colspan="2">template&lt;typename InputVecType , typename OutputVecType &gt; </td></tr>
<tr class="memitem:a3b5253f0ec7fdaefb08444606f41ce1a"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#a3b5253f0ec7fdaefb08444606f41ce1a">Fn</a> (const InputVecType &amp;x, OutputVecType &amp;y)</td></tr>
<tr class="memdesc:a3b5253f0ec7fdaefb08444606f41ce1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the softplus function. <a href="#a3b5253f0ec7fdaefb08444606f41ce1a">More...</a><br /></td></tr>
<tr class="separator:a3b5253f0ec7fdaefb08444606f41ce1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e378ffb1b3a93f3169ea775933c1d43"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#a9e378ffb1b3a93f3169ea775933c1d43">Inv</a> (const double y)</td></tr>
<tr class="memdesc:a9e378ffb1b3a93f3169ea775933c1d43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the inverse of the softplus function. <a href="#a9e378ffb1b3a93f3169ea775933c1d43">More...</a><br /></td></tr>
<tr class="separator:a9e378ffb1b3a93f3169ea775933c1d43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02ec105e1b6a5443092dd969aeb7c8ba"><td class="memTemplParams" colspan="2">template&lt;typename InputVecType , typename OutputVecType &gt; </td></tr>
<tr class="memitem:a02ec105e1b6a5443092dd969aeb7c8ba"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1ann_1_1SoftplusFunction.html#a02ec105e1b6a5443092dd969aeb7c8ba">Inv</a> (const InputVecType &amp;y, OutputVecType &amp;x)</td></tr>
<tr class="memdesc:a02ec105e1b6a5443092dd969aeb7c8ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the inverse of the softplus function. <a href="#a02ec105e1b6a5443092dd969aeb7c8ba">More...</a><br /></td></tr>
<tr class="separator:a02ec105e1b6a5443092dd969aeb7c8ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The softplus function, defined by. </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\begin{eqnarray*} f(x) &amp;=&amp; \ln(1 + e^{x}) \\ f'(x) &amp;=&amp; \frac{1}{1 + e^{-x}} \\ f^{-1}(y) &amp;=&amp; \ln(e^{y} - 1) \end{eqnarray*}" src="form_70.png"/>
</p>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00043">43</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab2f3f50033e6fddd8ce88e94c54d03f7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static double mlpack::ann::SoftplusFunction::Deriv </td>
<td>(</td>
<td class="paramtype">const double&#160;</td>
<td class="paramname"><em>y</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the first derivative of the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">y</td><td>Input data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>f'(x) </dd></dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00081">81</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a466e82584960588fe67a9608b51619d1"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename InputVecType , typename OutputVecType &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void mlpack::ann::SoftplusFunction::Deriv </td>
<td>(</td>
<td class="paramtype">const InputVecType &amp;&#160;</td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">OutputVecType &amp;&#160;</td>
<td class="paramname"><em>x</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the first derivatives of the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">y</td><td>Input activations. </td></tr>
<tr><td class="paramname">x</td><td>The resulting derivatives. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00093">93</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a534de86c72523226dbd21759dc7b05b7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static double mlpack::ann::SoftplusFunction::Fn </td>
<td>(</td>
<td class="paramtype">const double&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>Input data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>f(x). </dd></dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00053">53</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
<p>Referenced by <a class="el" href="softplus__function_8hpp_source.html#l00067">Fn()</a>.</p>
</div>
</div>
<a class="anchor" id="a3b5253f0ec7fdaefb08444606f41ce1a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename InputVecType , typename OutputVecType &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void mlpack::ann::SoftplusFunction::Fn </td>
<td>(</td>
<td class="paramtype">const InputVecType &amp;&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">OutputVecType &amp;&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>Input data. </td></tr>
<tr><td class="paramname">y</td><td>The resulting output activation. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00067">67</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
<p>References <a class="el" href="softplus__function_8hpp_source.html#l00053">Fn()</a>.</p>
</div>
</div>
<a class="anchor" id="a9e378ffb1b3a93f3169ea775933c1d43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static double mlpack::ann::SoftplusFunction::Inv </td>
<td>(</td>
<td class="paramtype">const double&#160;</td>
<td class="paramname"><em>y</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the inverse of the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">y</td><td>Input data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>f^{-1}(y) </dd></dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00104">104</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
<p>Referenced by <a class="el" href="softplus__function_8hpp_source.html#l00116">Inv()</a>.</p>
</div>
</div>
<a class="anchor" id="a02ec105e1b6a5443092dd969aeb7c8ba"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename InputVecType , typename OutputVecType &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void mlpack::ann::SoftplusFunction::Inv </td>
<td>(</td>
<td class="paramtype">const InputVecType &amp;&#160;</td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">OutputVecType &amp;&#160;</td>
<td class="paramname"><em>x</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the inverse of the softplus function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">y</td><td>Input data. </td></tr>
<tr><td class="paramname">x</td><td>The resulting inverse of the input data. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="softplus__function_8hpp_source.html#l00116">116</a> of file <a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a>.</p>
<p>References <a class="el" href="softplus__function_8hpp_source.html#l00104">Inv()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/mlpack/methods/ann/activation_functions/<a class="el" href="softplus__function_8hpp_source.html">softplus_function.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
<script type="text/javascript">
var x = document.getElementsByClassName("formulaDsp");
var i;
for (i = 0; i < x.length; i++)
{
x[i].width /= 4;
}
</script>
</html>