161 lines
54 KiB
HTML
161 lines
54 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: src/mlpack/methods/ann/layer/recurrent.hpp Source File</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
|
|
 <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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><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="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_44a936ef30fc126706c6284a2fc0c990.html">mlpack</a></li><li class="navelem"><a class="el" href="dir_3cfbf900288ec2fe8dd2c2c8482f216e.html">methods</a></li><li class="navelem"><a class="el" href="dir_04cdefcc9a97fb221ee3f2d7fb8aab76.html">ann</a></li><li class="navelem"><a class="el" href="dir_104798ce316d01262d69b00f4c94ed15.html">layer</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">recurrent.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="recurrent_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef MLPACK_METHODS_ANN_LAYER_RECURRENT_HPP</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define MLPACK_METHODS_ANN_LAYER_RECURRENT_HPP</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="core_8hpp.html">mlpack/core.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <boost/ptr_container/ptr_vector.hpp></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "../visitor/delta_visitor.hpp"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "../visitor/output_parameter_visitor.hpp"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "../visitor/weight_size_visitor.hpp"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="layer__types_8hpp.html">layer_types.hpp</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="add__merge_8hpp.html">add_merge.hpp</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="sequential_8hpp.html">sequential.hpp</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span>ann {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">template</span> <</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">typename</span> InputDataType = arma::mat,</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">typename</span> OutputDataType = arma::mat</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> ></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">class </span>Recurrent</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">template</span><<span class="keyword">typename</span> StartModuleType,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">typename</span> InputModuleType,</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">typename</span> FeedbackModuleType,</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">typename</span> TransferModuleType></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#af05d437e94e516bddd88ff384124c67a">Recurrent</a>(<span class="keyword">const</span> StartModuleType& start,</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">const</span> InputModuleType& input,</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">const</span> FeedbackModuleType& feedback,</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">const</span> TransferModuleType& transfer,</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aeb7fd68876797c41861e8e852b29b440">rho</a>);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">template</span><<span class="keyword">typename</span> eT></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ad215b6398e2a511a8634888e736354ff">Forward</a>(arma::Mat<eT>&& input, arma::Mat<eT>&& output);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">template</span><<span class="keyword">typename</span> eT></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a766e58deeea4761638e737553cd4d79c">Backward</a>(<span class="keyword">const</span> arma::Mat<eT>&& <span class="comment">/* input */</span>,</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  arma::Mat<eT>&& gy,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  arma::Mat<eT>&& g);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">/*</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> * Calculate the gradient using the output delta and the input activation.</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> *</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> * @param input The input parameter used for calculating the gradient.</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> * @param error The calculated error.</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * @param gradient The calculated gradient.</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> */</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">template</span><<span class="keyword">typename</span> eT></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a88c832dd282cbe56a7426fa422f9f7db">Gradient</a>(arma::Mat<eT>&& input,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  arma::Mat<eT>&& error,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  arma::Mat<eT>&& <span class="comment">/* gradient */</span>);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a931f34df6406620a2600ae25791d8610"> 102</a></span>  std::vector<LayerTypes>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a931f34df6406620a2600ae25791d8610">Model</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a4123bbb62bf9524c448fdfb10b420135">network</a>; }</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aa37c0bf2839a9ce5aaa35861150e1b78"> 105</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aa37c0bf2839a9ce5aaa35861150e1b78">Deterministic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a1a925b5f4c7dbd9a416e78bf290a75cd">deterministic</a>; }</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#ae5153ecd5c76416908d28e92d727bf7b"> 107</a></span>  <span class="keywordtype">bool</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ae5153ecd5c76416908d28e92d727bf7b">Deterministic</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a1a925b5f4c7dbd9a416e78bf290a75cd">deterministic</a>; }</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#abafe609d15a8d290a36dd00be63cdec5"> 110</a></span>  OutputDataType <span class="keyword">const</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#abafe609d15a8d290a36dd00be63cdec5">Parameters</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a4728732da585c24d992374d5af239d7a">parameters</a>; }</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a3181a0d5fa558549544d0ad99033a194"> 112</a></span>  OutputDataType& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a3181a0d5fa558549544d0ad99033a194">Parameters</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a4728732da585c24d992374d5af239d7a">parameters</a>; }</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aafd230c0d46c9f340eae8c20a2e80151"> 115</a></span>  InputDataType <span class="keyword">const</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aafd230c0d46c9f340eae8c20a2e80151">InputParameter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a2a5fe901b5047c5ed223e3088f057ddd">inputParameter</a>; }</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aca101193f954c71152e351edcd5fe959"> 117</a></span>  InputDataType& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aca101193f954c71152e351edcd5fe959">InputParameter</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a2a5fe901b5047c5ed223e3088f057ddd">inputParameter</a>; }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aec9c8efa52ef0eeacc080411d777d949"> 120</a></span>  OutputDataType <span class="keyword">const</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aec9c8efa52ef0eeacc080411d777d949">OutputParameter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a559c05249de1b3734db8b77078052a6e">outputParameter</a>; }</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a5ccf2bf4f42824a5a3544037dec54dc1"> 122</a></span>  OutputDataType& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a5ccf2bf4f42824a5a3544037dec54dc1">OutputParameter</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a559c05249de1b3734db8b77078052a6e">outputParameter</a>; }</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a3248b4444ff26bb8a85ccd5f0d84353c"> 125</a></span>  OutputDataType <span class="keyword">const</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a3248b4444ff26bb8a85ccd5f0d84353c">Delta</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a3727f375b173307a3a700aa5c27bdcf7">delta</a>; }</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a21ed530dbcf29000369ad15762ed8a23"> 127</a></span>  OutputDataType& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a21ed530dbcf29000369ad15762ed8a23">Delta</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a3727f375b173307a3a700aa5c27bdcf7">delta</a>; }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a88c832dd282cbe56a7426fa422f9f7db"> 130</a></span>  OutputDataType <span class="keyword">const</span>& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a88c832dd282cbe56a7426fa422f9f7db">Gradient</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a32944a55da03d7f5050121073e6169ae">gradient</a>; }</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aaac8d4c3ed232854766af853aa3f2940"> 132</a></span>  OutputDataType& <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aaac8d4c3ed232854766af853aa3f2940">Gradient</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a32944a55da03d7f5050121073e6169ae">gradient</a>; }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Archive></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a366b58c20d4e4171d0dc6a2693f6cf04">Serialize</a>(Archive& ar, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="comment">/* version */</span>);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a2486950ebb769266e5dfa94761412947"> 142</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a2486950ebb769266e5dfa94761412947">startModule</a>;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a84a650d362558700e410d28e6ed5a901"> 145</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a84a650d362558700e410d28e6ed5a901">inputModule</a>;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a54e420374e49a667649744aed9dab574"> 148</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a54e420374e49a667649744aed9dab574">feedbackModule</a>;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#ac5bb72c25bbf927734ad72ded242e57b"> 151</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ac5bb72c25bbf927734ad72ded242e57b">transferModule</a>;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#aeb7fd68876797c41861e8e852b29b440"> 154</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#aeb7fd68876797c41861e8e852b29b440">rho</a>;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#ae729ca9da4d409f3bbaa067482ad2aba"> 157</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ae729ca9da4d409f3bbaa067482ad2aba">forwardStep</a>;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#ac2fa0d6333c56558be9226ff45c609f9"> 160</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ac2fa0d6333c56558be9226ff45c609f9">backwardStep</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a0c07941f505b0ee3dbff2d5abf83fa01"> 163</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a0c07941f505b0ee3dbff2d5abf83fa01">gradientStep</a>;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a1a925b5f4c7dbd9a416e78bf290a75cd"> 166</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a1a925b5f4c7dbd9a416e78bf290a75cd">deterministic</a>;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a4728732da585c24d992374d5af239d7a"> 169</a></span>  OutputDataType <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a4728732da585c24d992374d5af239d7a">parameters</a>;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a7a9322196efa93d8f84a624bb3788a7e"> 172</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a7a9322196efa93d8f84a624bb3788a7e">initialModule</a>;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a6ad48934e12bba9af369d6a1db320690"> 175</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a6ad48934e12bba9af369d6a1db320690">recurrentModule</a>;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a4123bbb62bf9524c448fdfb10b420135"> 178</a></span>  std::vector<LayerTypes> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a4123bbb62bf9524c448fdfb10b420135">network</a>;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a5305b9f3ee303647d2be697b260de258"> 181</a></span>  <a class="code" href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">LayerTypes</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a5305b9f3ee303647d2be697b260de258">mergeModule</a>;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a5208e47e9096a235572e20cf9de312a0"> 184</a></span>  <a class="code" href="classmlpack_1_1ann_1_1WeightSizeVisitor.html">WeightSizeVisitor</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a5208e47e9096a235572e20cf9de312a0">weightSizeVisitor</a>;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#ace1a02b0d85863b187c1a44260bc6b77"> 187</a></span>  <a class="code" href="classmlpack_1_1ann_1_1DeltaVisitor.html">DeltaVisitor</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#ace1a02b0d85863b187c1a44260bc6b77">deltaVisitor</a>;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a7c999d5bb8c948f59fb4980bd5c82e12"> 190</a></span>  <a class="code" href="classmlpack_1_1ann_1_1OutputParameterVisitor.html">OutputParameterVisitor</a> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a7c999d5bb8c948f59fb4980bd5c82e12">outputParameterVisitor</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a38d011511ac84cfaf3e254e2963bc0fd"> 193</a></span>  std::vector<arma::mat> <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a38d011511ac84cfaf3e254e2963bc0fd">feedbackOutputParameter</a>;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a3727f375b173307a3a700aa5c27bdcf7"> 196</a></span>  OutputDataType <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a3727f375b173307a3a700aa5c27bdcf7">delta</a>;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a32944a55da03d7f5050121073e6169ae"> 199</a></span>  OutputDataType <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a32944a55da03d7f5050121073e6169ae">gradient</a>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a2a5fe901b5047c5ed223e3088f057ddd"> 202</a></span>  InputDataType <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a2a5fe901b5047c5ed223e3088f057ddd">inputParameter</a>;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a559c05249de1b3734db8b77078052a6e"> 205</a></span>  OutputDataType <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a559c05249de1b3734db8b77078052a6e">outputParameter</a>;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classmlpack_1_1ann_1_1Recurrent.html#a376c8da620fc53ebcb0d63facdbe7459"> 208</a></span>  arma::mat <a class="code" href="classmlpack_1_1ann_1_1Recurrent.html#a376c8da620fc53ebcb0d63facdbe7459">recurrentError</a>;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> }; <span class="comment">// class Recurrent</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> } <span class="comment">// namespace ann</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> } <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">// Include implementation.</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="preprocessor">#include "recurrent_impl.hpp"</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a88c832dd282cbe56a7426fa422f9f7db"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a88c832dd282cbe56a7426fa422f9f7db">mlpack::ann::Recurrent::Gradient</a></div><div class="ttdeci">OutputDataType const & Gradient() const </div><div class="ttdoc">Get the gradient. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00130">recurrent.hpp:130</a></div></div>
|
|
<div class="ttc" id="add__merge_8hpp_html"><div class="ttname"><a href="add__merge_8hpp.html">add_merge.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a766e58deeea4761638e737553cd4d79c"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a766e58deeea4761638e737553cd4d79c">mlpack::ann::Recurrent::Backward</a></div><div class="ttdeci">void Backward(const arma::Mat< eT > &&, arma::Mat< eT > &&gy, arma::Mat< eT > &&g)</div><div class="ttdoc">Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...</div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a32944a55da03d7f5050121073e6169ae"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a32944a55da03d7f5050121073e6169ae">mlpack::ann::Recurrent::gradient</a></div><div class="ttdeci">OutputDataType gradient</div><div class="ttdoc">Locally-stored gradient object. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00199">recurrent.hpp:199</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a54e420374e49a667649744aed9dab574"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a54e420374e49a667649744aed9dab574">mlpack::ann::Recurrent::feedbackModule</a></div><div class="ttdeci">LayerTypes feedbackModule</div><div class="ttdoc">Locally-stored feedback module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00148">recurrent.hpp:148</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ae729ca9da4d409f3bbaa067482ad2aba"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ae729ca9da4d409f3bbaa067482ad2aba">mlpack::ann::Recurrent::forwardStep</a></div><div class="ttdeci">size_t forwardStep</div><div class="ttdoc">Locally-stored number of forward steps. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00157">recurrent.hpp:157</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a2a5fe901b5047c5ed223e3088f057ddd"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a2a5fe901b5047c5ed223e3088f057ddd">mlpack::ann::Recurrent::inputParameter</a></div><div class="ttdeci">InputDataType inputParameter</div><div class="ttdoc">Locally-stored input parameter object. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00202">recurrent.hpp:202</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_abafe609d15a8d290a36dd00be63cdec5"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#abafe609d15a8d290a36dd00be63cdec5">mlpack::ann::Recurrent::Parameters</a></div><div class="ttdeci">OutputDataType const & Parameters() const </div><div class="ttdoc">Get the parameters. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00110">recurrent.hpp:110</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a5ccf2bf4f42824a5a3544037dec54dc1"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a5ccf2bf4f42824a5a3544037dec54dc1">mlpack::ann::Recurrent::OutputParameter</a></div><div class="ttdeci">OutputDataType & OutputParameter()</div><div class="ttdoc">Modify the output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00122">recurrent.hpp:122</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aca101193f954c71152e351edcd5fe959"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aca101193f954c71152e351edcd5fe959">mlpack::ann::Recurrent::InputParameter</a></div><div class="ttdeci">InputDataType & InputParameter()</div><div class="ttdoc">Modify the input parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00117">recurrent.hpp:117</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aa37c0bf2839a9ce5aaa35861150e1b78"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aa37c0bf2839a9ce5aaa35861150e1b78">mlpack::ann::Recurrent::Deterministic</a></div><div class="ttdeci">bool Deterministic() const </div><div class="ttdoc">The value of the deterministic parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00105">recurrent.hpp:105</a></div></div>
|
|
<div class="ttc" id="namespacemlpack_html"><div class="ttname"><a href="namespacemlpack.html">mlpack</a></div><div class="ttdoc">Linear algebra utility functions, generally performed on matrices or vectors. </div><div class="ttdef"><b>Definition:</b> <a href="binarize_8hpp_source.html#l00018">binarize.hpp:18</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ac2fa0d6333c56558be9226ff45c609f9"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ac2fa0d6333c56558be9226ff45c609f9">mlpack::ann::Recurrent::backwardStep</a></div><div class="ttdeci">size_t backwardStep</div><div class="ttdoc">Locally-stored number of backward steps. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00160">recurrent.hpp:160</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a5208e47e9096a235572e20cf9de312a0"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a5208e47e9096a235572e20cf9de312a0">mlpack::ann::Recurrent::weightSizeVisitor</a></div><div class="ttdeci">WeightSizeVisitor weightSizeVisitor</div><div class="ttdoc">Locally-stored weight size visitor. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00184">recurrent.hpp:184</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ae5153ecd5c76416908d28e92d727bf7b"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ae5153ecd5c76416908d28e92d727bf7b">mlpack::ann::Recurrent::Deterministic</a></div><div class="ttdeci">bool & Deterministic()</div><div class="ttdoc">Modify the value of the deterministic parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00107">recurrent.hpp:107</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a366b58c20d4e4171d0dc6a2693f6cf04"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a366b58c20d4e4171d0dc6a2693f6cf04">mlpack::ann::Recurrent::Serialize</a></div><div class="ttdeci">void Serialize(Archive &ar, const unsigned int)</div><div class="ttdoc">Serialize the layer. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a4728732da585c24d992374d5af239d7a"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a4728732da585c24d992374d5af239d7a">mlpack::ann::Recurrent::parameters</a></div><div class="ttdeci">OutputDataType parameters</div><div class="ttdoc">Locally-stored weight object. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00169">recurrent.hpp:169</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a5305b9f3ee303647d2be697b260de258"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a5305b9f3ee303647d2be697b260de258">mlpack::ann::Recurrent::mergeModule</a></div><div class="ttdeci">LayerTypes mergeModule</div><div class="ttdoc">Locally-stored merge module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00181">recurrent.hpp:181</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1WeightSizeVisitor_html"><div class="ttname"><a href="classmlpack_1_1ann_1_1WeightSizeVisitor.html">mlpack::ann::WeightSizeVisitor</a></div><div class="ttdoc">WeightSizeVisitor returns the number of weights of the given module. </div><div class="ttdef"><b>Definition:</b> <a href="weight__size__visitor_8hpp_source.html#l00028">weight_size_visitor.hpp:28</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_af05d437e94e516bddd88ff384124c67a"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#af05d437e94e516bddd88ff384124c67a">mlpack::ann::Recurrent::Recurrent</a></div><div class="ttdeci">Recurrent(const StartModuleType &start, const InputModuleType &input, const FeedbackModuleType &feedback, const TransferModuleType &transfer, const size_t rho)</div><div class="ttdoc">Create the Recurrent object using the specified modules. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a21ed530dbcf29000369ad15762ed8a23"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a21ed530dbcf29000369ad15762ed8a23">mlpack::ann::Recurrent::Delta</a></div><div class="ttdeci">OutputDataType & Delta()</div><div class="ttdoc">Modify the delta. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00127">recurrent.hpp:127</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a4123bbb62bf9524c448fdfb10b420135"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a4123bbb62bf9524c448fdfb10b420135">mlpack::ann::Recurrent::network</a></div><div class="ttdeci">std::vector< LayerTypes > network</div><div class="ttdoc">Locally-stored model modules. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00178">recurrent.hpp:178</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a7c999d5bb8c948f59fb4980bd5c82e12"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a7c999d5bb8c948f59fb4980bd5c82e12">mlpack::ann::Recurrent::outputParameterVisitor</a></div><div class="ttdeci">OutputParameterVisitor outputParameterVisitor</div><div class="ttdoc">Locally-stored output parameter visitor. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00190">recurrent.hpp:190</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aaac8d4c3ed232854766af853aa3f2940"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aaac8d4c3ed232854766af853aa3f2940">mlpack::ann::Recurrent::Gradient</a></div><div class="ttdeci">OutputDataType & Gradient()</div><div class="ttdoc">Modify the gradient. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00132">recurrent.hpp:132</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a559c05249de1b3734db8b77078052a6e"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a559c05249de1b3734db8b77078052a6e">mlpack::ann::Recurrent::outputParameter</a></div><div class="ttdeci">OutputDataType outputParameter</div><div class="ttdoc">Locally-stored output parameter object. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00205">recurrent.hpp:205</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aec9c8efa52ef0eeacc080411d777d949"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aec9c8efa52ef0eeacc080411d777d949">mlpack::ann::Recurrent::OutputParameter</a></div><div class="ttdeci">OutputDataType const & OutputParameter() const </div><div class="ttdoc">Get the output parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00120">recurrent.hpp:120</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a38d011511ac84cfaf3e254e2963bc0fd"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a38d011511ac84cfaf3e254e2963bc0fd">mlpack::ann::Recurrent::feedbackOutputParameter</a></div><div class="ttdeci">std::vector< arma::mat > feedbackOutputParameter</div><div class="ttdoc">Locally-stored feedback output parameters. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00193">recurrent.hpp:193</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a2486950ebb769266e5dfa94761412947"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a2486950ebb769266e5dfa94761412947">mlpack::ann::Recurrent::startModule</a></div><div class="ttdeci">LayerTypes startModule</div><div class="ttdoc">Locally-stored start module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00142">recurrent.hpp:142</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1OutputParameterVisitor_html"><div class="ttname"><a href="classmlpack_1_1ann_1_1OutputParameterVisitor.html">mlpack::ann::OutputParameterVisitor</a></div><div class="ttdoc">OutputParameterVisitor exposes the output parameter of the given module. </div><div class="ttdef"><b>Definition:</b> <a href="output__parameter__visitor_8hpp_source.html#l00027">output_parameter_visitor.hpp:27</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a3248b4444ff26bb8a85ccd5f0d84353c"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a3248b4444ff26bb8a85ccd5f0d84353c">mlpack::ann::Recurrent::Delta</a></div><div class="ttdeci">OutputDataType const & Delta() const </div><div class="ttdoc">Get the delta. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00125">recurrent.hpp:125</a></div></div>
|
|
<div class="ttc" id="namespacemlpack_1_1ann_html_ab8d68f366a3cbbbc1f0f4990ec70c645"><div class="ttname"><a href="namespacemlpack_1_1ann.html#ab8d68f366a3cbbbc1f0f4990ec70c645">mlpack::ann::LayerTypes</a></div><div class="ttdeci">boost::variant< Add< arma::mat, arma::mat > *, AddMerge< arma::mat, arma::mat > *, BaseLayer< LogisticFunction, arma::mat, arma::mat > *, BaseLayer< IdentityFunction, arma::mat, arma::mat > *, BaseLayer< TanhFunction, arma::mat, arma::mat > *, BaseLayer< RectifierFunction, arma::mat, arma::mat > *, Concat< arma::mat, arma::mat > *, ConcatPerformance< NegativeLogLikelihood< arma::mat, arma::mat >, arma::mat, arma::mat > *, Constant< arma::mat, arma::mat > *, Convolution< NaiveConvolution< ValidConvolution >, NaiveConvolution< FullConvolution >, NaiveConvolution< ValidConvolution >, arma::mat, arma::mat > *, DropConnect< arma::mat, arma::mat > *, Dropout< arma::mat, arma::mat > *, Glimpse< arma::mat, arma::mat > *, HardTanH< arma::mat, arma::mat > *, Join< arma::mat, arma::mat > *, LeakyReLU< arma::mat, arma::mat > *, Linear< arma::mat, arma::mat > *, LinearNoBias< arma::mat, arma::mat > *, LogSoftMax< arma::mat, arma::mat > *, Lookup< arma::mat, arma::mat > *, LSTM< arma::mat, arma::mat > *, MaxPooling< arma::mat, arma::mat > *, MeanPooling< arma::mat, arma::mat > *, MeanSquaredError< arma::mat, arma::mat > *, MultiplyConstant< arma::mat, arma::mat > *, NegativeLogLikelihood< arma::mat, arma::mat > *, PReLU< arma::mat, arma::mat > *, Recurrent< arma::mat, arma::mat > *, RecurrentAttention< arma::mat, arma::mat > *, ReinforceNormal< arma::mat, arma::mat > *, Select< arma::mat, arma::mat > *, Sequential< arma::mat, arma::mat > *, VRClassReward< arma::mat, arma::mat > * > LayerTypes</div><div class="ttdef"><b>Definition:</b> <a href="layer__types_8hpp_source.html#l00115">layer_types.hpp:115</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a3181a0d5fa558549544d0ad99033a194"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a3181a0d5fa558549544d0ad99033a194">mlpack::ann::Recurrent::Parameters</a></div><div class="ttdeci">OutputDataType & Parameters()</div><div class="ttdoc">Modify the parameters. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00112">recurrent.hpp:112</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a931f34df6406620a2600ae25791d8610"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a931f34df6406620a2600ae25791d8610">mlpack::ann::Recurrent::Model</a></div><div class="ttdeci">std::vector< LayerTypes > & Model()</div><div class="ttdoc">Get the model modules. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00102">recurrent.hpp:102</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ace1a02b0d85863b187c1a44260bc6b77"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ace1a02b0d85863b187c1a44260bc6b77">mlpack::ann::Recurrent::deltaVisitor</a></div><div class="ttdeci">DeltaVisitor deltaVisitor</div><div class="ttdoc">Locally-stored delta visitor. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00187">recurrent.hpp:187</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a376c8da620fc53ebcb0d63facdbe7459"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a376c8da620fc53ebcb0d63facdbe7459">mlpack::ann::Recurrent::recurrentError</a></div><div class="ttdeci">arma::mat recurrentError</div><div class="ttdoc">Locally-stored recurrent error parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00208">recurrent.hpp:208</a></div></div>
|
|
<div class="ttc" id="core_8hpp_html"><div class="ttname"><a href="core_8hpp.html">core.hpp</a></div><div class="ttdoc">Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...</div></div>
|
|
<div class="ttc" id="sequential_8hpp_html"><div class="ttname"><a href="sequential_8hpp.html">sequential.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a7a9322196efa93d8f84a624bb3788a7e"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a7a9322196efa93d8f84a624bb3788a7e">mlpack::ann::Recurrent::initialModule</a></div><div class="ttdeci">LayerTypes initialModule</div><div class="ttdoc">Locally-stored initial module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00172">recurrent.hpp:172</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ac5bb72c25bbf927734ad72ded242e57b"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ac5bb72c25bbf927734ad72ded242e57b">mlpack::ann::Recurrent::transferModule</a></div><div class="ttdeci">LayerTypes transferModule</div><div class="ttdoc">Locally-stored transfer module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00151">recurrent.hpp:151</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1DeltaVisitor_html"><div class="ttname"><a href="classmlpack_1_1ann_1_1DeltaVisitor.html">mlpack::ann::DeltaVisitor</a></div><div class="ttdoc">DeltaVisitor exposes the delta parameter of the given module. </div><div class="ttdef"><b>Definition:</b> <a href="delta__visitor_8hpp_source.html#l00027">delta_visitor.hpp:27</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a1a925b5f4c7dbd9a416e78bf290a75cd"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a1a925b5f4c7dbd9a416e78bf290a75cd">mlpack::ann::Recurrent::deterministic</a></div><div class="ttdeci">bool deterministic</div><div class="ttdoc">If true dropout and scaling is disabled, see notes above. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00166">recurrent.hpp:166</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a3727f375b173307a3a700aa5c27bdcf7"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a3727f375b173307a3a700aa5c27bdcf7">mlpack::ann::Recurrent::delta</a></div><div class="ttdeci">OutputDataType delta</div><div class="ttdoc">Locally-stored delta object. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00196">recurrent.hpp:196</a></div></div>
|
|
<div class="ttc" id="layer__types_8hpp_html"><div class="ttname"><a href="layer__types_8hpp.html">layer_types.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a84a650d362558700e410d28e6ed5a901"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a84a650d362558700e410d28e6ed5a901">mlpack::ann::Recurrent::inputModule</a></div><div class="ttdeci">LayerTypes inputModule</div><div class="ttdoc">Locally-stored input module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00145">recurrent.hpp:145</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aafd230c0d46c9f340eae8c20a2e80151"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aafd230c0d46c9f340eae8c20a2e80151">mlpack::ann::Recurrent::InputParameter</a></div><div class="ttdeci">InputDataType const & InputParameter() const </div><div class="ttdoc">Get the input parameter. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00115">recurrent.hpp:115</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a0c07941f505b0ee3dbff2d5abf83fa01"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a0c07941f505b0ee3dbff2d5abf83fa01">mlpack::ann::Recurrent::gradientStep</a></div><div class="ttdeci">size_t gradientStep</div><div class="ttdoc">Locally-stored number of gradient steps. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00163">recurrent.hpp:163</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_aeb7fd68876797c41861e8e852b29b440"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#aeb7fd68876797c41861e8e852b29b440">mlpack::ann::Recurrent::rho</a></div><div class="ttdeci">size_t rho</div><div class="ttdoc">Number of steps to backpropagate through time (BPTT). </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00154">recurrent.hpp:154</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_a6ad48934e12bba9af369d6a1db320690"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#a6ad48934e12bba9af369d6a1db320690">mlpack::ann::Recurrent::recurrentModule</a></div><div class="ttdeci">LayerTypes recurrentModule</div><div class="ttdoc">Locally-stored recurrent module. </div><div class="ttdef"><b>Definition:</b> <a href="recurrent_8hpp_source.html#l00175">recurrent.hpp:175</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1ann_1_1Recurrent_html_ad215b6398e2a511a8634888e736354ff"><div class="ttname"><a href="classmlpack_1_1ann_1_1Recurrent.html#ad215b6398e2a511a8634888e736354ff">mlpack::ann::Recurrent::Forward</a></div><div class="ttdeci">void Forward(arma::Mat< eT > &&input, arma::Mat< eT > &&output)</div><div class="ttdoc">Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <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>
|