class_network.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  6. <meta name="generator" content="Doxygen 1.9.3"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Deep network: Network Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <script type="text/x-mathjax-config">
  20. MathJax.Hub.Config({
  21. extensions: ["tex2jax.js"],
  22. jax: ["input/TeX","output/HTML-CSS"],
  23. });
  24. </script>
  25. <script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
  26. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  27. </head>
  28. <body>
  29. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  30. <div id="titlearea">
  31. <table cellspacing="0" cellpadding="0">
  32. <tbody>
  33. <tr id="projectrow">
  34. <td id="projectalign">
  35. <div id="projectname">Deep network
  36. </div>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. <!-- end header part -->
  43. <!-- Generated by Doxygen 1.9.3 -->
  44. <script type="text/javascript">
  45. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  46. var searchBox = new SearchBox("searchBox", "search",'Search','.html');
  47. /* @license-end */
  48. </script>
  49. <script type="text/javascript" src="menudata.js"></script>
  50. <script type="text/javascript" src="menu.js"></script>
  51. <script type="text/javascript">
  52. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  53. $(function() {
  54. initMenu('',true,false,'search.php','Search');
  55. $(document).ready(function() { init_search(); });
  56. });
  57. /* @license-end */
  58. </script>
  59. <div id="main-nav"></div>
  60. </div><!-- top -->
  61. <div id="side-nav" class="ui-resizable side-nav-resizable">
  62. <div id="nav-tree">
  63. <div id="nav-tree-contents">
  64. <div id="nav-sync" class="sync"></div>
  65. </div>
  66. </div>
  67. <div id="splitbar" style="-moz-user-select:none;"
  68. class="ui-resizable-handle">
  69. </div>
  70. </div>
  71. <script type="text/javascript">
  72. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  73. $(document).ready(function(){initNavTree('class_network.html',''); initResizable(); });
  74. /* @license-end */
  75. </script>
  76. <div id="doc-content">
  77. <!-- window showing the filter options -->
  78. <div id="MSearchSelectWindow"
  79. onmouseover="return searchBox.OnSearchSelectShow()"
  80. onmouseout="return searchBox.OnSearchSelectHide()"
  81. onkeydown="return searchBox.OnSearchSelectKey(event)">
  82. </div>
  83. <!-- iframe showing the search results (closed by default) -->
  84. <div id="MSearchResultsWindow">
  85. <iframe src="javascript:void(0)" frameborder="0"
  86. name="MSearchResults" id="MSearchResults">
  87. </iframe>
  88. </div>
  89. <div class="header">
  90. <div class="summary">
  91. <a href="#pub-methods">Public Member Functions</a> &#124;
  92. <a href="#pub-attribs">Public Attributes</a> &#124;
  93. <a href="#pro-methods">Protected Member Functions</a> &#124;
  94. <a href="class_network-members.html">List of all members</a> </div>
  95. <div class="headertitle"><div class="title">Network Class Reference</div></div>
  96. </div><!--header-->
  97. <div class="contents">
  98. <p><code>#include &lt;<a class="el" href="network_8hpp_source.html">network.hpp</a>&gt;</code></p>
  99. <table class="memberdecls">
  100. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
  101. Public Member Functions</h2></td></tr>
  102. <tr class="memitem:a7256dd4fca14fcf9373591ea1a1b42d6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a7256dd4fca14fcf9373591ea1a1b42d6">compute_last_delta</a> (<a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> y)</td></tr>
  103. <tr class="separator:a7256dd4fca14fcf9373591ea1a1b42d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a3cc2fb4f8fa4d507077e8da85ce5a1c8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a3cc2fb4f8fa4d507077e8da85ce5a1c8">Network</a> ()</td></tr>
  105. <tr class="separator:a3cc2fb4f8fa4d507077e8da85ce5a1c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a790c6368ae5d69fbdb550ed7306543e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a790c6368ae5d69fbdb550ed7306543e5">set_cost</a> (<a class="el" href="network_8hpp.html#a0c3a80fe878325a4a277470fdc7b3eb3">CostFunction</a>)</td></tr>
  107. <tr class="separator:a790c6368ae5d69fbdb550ed7306543e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ade63dfedd3ffa5c0b9ef3e03aa58bc11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#ade63dfedd3ffa5c0b9ef3e03aa58bc11">push_layer</a> (<a class="el" href="class_layer_1_1_layer.html">Layer::Layer</a> &amp;l)</td></tr>
  109. <tr class="separator:ade63dfedd3ffa5c0b9ef3e03aa58bc11"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a33b17ec8563577be73c109bfbb267c52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a33b17ec8563577be73c109bfbb267c52">is_done</a> ()</td></tr>
  111. <tr class="separator:a33b17ec8563577be73c109bfbb267c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ab4a53f3e2d5c1033e9b2314826acf821"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#ab4a53f3e2d5c1033e9b2314826acf821">feed_forward</a> (<a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> x_in)</td></tr>
  113. <tr class="separator:ab4a53f3e2d5c1033e9b2314826acf821"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a08f9864a68e23b74c1c212c67ca70ed4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a08f9864a68e23b74c1c212c67ca70ed4">eval</a> (<a class="el" href="class_dataset.html">Dataset</a> *dataset)</td></tr>
  115. <tr class="separator:a08f9864a68e23b74c1c212c67ca70ed4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a7bfcf0b5c1ed41fc14771d256789a042"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a7bfcf0b5c1ed41fc14771d256789a042">train</a> (<a class="el" href="class_dataset.html">Dataset</a> *dataset, size_t nb_epochs, size_t batch_size, <a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> eta)</td></tr>
  117. <tr class="separator:a7bfcf0b5c1ed41fc14771d256789a042"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. </table><table class="memberdecls">
  119. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
  120. Public Attributes</h2></td></tr>
  121. <tr class="memitem:a4bb79b836cfd07172c7ed37dade8cefd"><td class="memItemLeft" align="right" valign="top">list&lt; <a class="el" href="class_layer_1_1_layer.html">Layer::Layer</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a4bb79b836cfd07172c7ed37dade8cefd">layers</a></td></tr>
  122. <tr class="separator:a4bb79b836cfd07172c7ed37dade8cefd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a912e19f5f19a486459cb8dac0bba7b7e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a912e19f5f19a486459cb8dac0bba7b7e">n_in</a></td></tr>
  124. <tr class="separator:a912e19f5f19a486459cb8dac0bba7b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a4b6a975d8042d27ac5a7a026db5fc1f0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a4b6a975d8042d27ac5a7a026db5fc1f0">n_out</a></td></tr>
  126. <tr class="separator:a4b6a975d8042d27ac5a7a026db5fc1f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ad71ea0a71fa28c4510e42fb809846404"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#ad71ea0a71fa28c4510e42fb809846404">a</a></td></tr>
  128. <tr class="separator:ad71ea0a71fa28c4510e42fb809846404"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a7d23ea49f6f1c5c0524210f658390cbc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a7d23ea49f6f1c5c0524210f658390cbc">last_delta</a></td></tr>
  130. <tr class="separator:a7d23ea49f6f1c5c0524210f658390cbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:abf80a2387544fb826f11ab922b857d50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="network_8hpp.html#a0c3a80fe878325a4a277470fdc7b3eb3">CostFunction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#abf80a2387544fb826f11ab922b857d50">C</a></td></tr>
  132. <tr class="separator:abf80a2387544fb826f11ab922b857d50"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. </table><table class="memberdecls">
  134. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
  135. Protected Member Functions</h2></td></tr>
  136. <tr class="memitem:aa515f8e09f5d2c989abdf68d97e79e26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#aa515f8e09f5d2c989abdf68d97e79e26">shuffle</a> (size_t *tab, size_t size)</td></tr>
  137. <tr class="separator:aa515f8e09f5d2c989abdf68d97e79e26"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a2bb9069ed59682d142860215ed970e06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a2bb9069ed59682d142860215ed970e06">update_batch</a> (<a class="el" href="class_dataset.html">Dataset</a> *dataset, size_t *indices, size_t begin, size_t end, <a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> eta)</td></tr>
  139. <tr class="separator:a2bb9069ed59682d142860215ed970e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a6c324cab761fdff1c614305a6544a311"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network.html#a6c324cab761fdff1c614305a6544a311">back_propagation</a> (<a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> x, <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> y, <a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> eta)</td></tr>
  141. <tr class="separator:a6c324cab761fdff1c614305a6544a311"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. </table>
  143. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  144. <a id="a3cc2fb4f8fa4d507077e8da85ce5a1c8" name="a3cc2fb4f8fa4d507077e8da85ce5a1c8"></a>
  145. <h2 class="memtitle"><span class="permalink"><a href="#a3cc2fb4f8fa4d507077e8da85ce5a1c8">&#9670;&nbsp;</a></span>Network()</h2>
  146. <div class="memitem">
  147. <div class="memproto">
  148. <table class="memname">
  149. <tr>
  150. <td class="memname">Network::Network </td>
  151. <td>(</td>
  152. <td class="paramname"></td><td>)</td>
  153. <td></td>
  154. </tr>
  155. </table>
  156. </div><div class="memdoc">
  157. </div>
  158. </div>
  159. <h2 class="groupheader">Member Function Documentation</h2>
  160. <a id="a6c324cab761fdff1c614305a6544a311" name="a6c324cab761fdff1c614305a6544a311"></a>
  161. <h2 class="memtitle"><span class="permalink"><a href="#a6c324cab761fdff1c614305a6544a311">&#9670;&nbsp;</a></span>back_propagation()</h2>
  162. <div class="memitem">
  163. <div class="memproto">
  164. <table class="mlabels">
  165. <tr>
  166. <td class="mlabels-left">
  167. <table class="memname">
  168. <tr>
  169. <td class="memname">void Network::back_propagation </td>
  170. <td>(</td>
  171. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  172. <td class="paramname"><em>x</em>, </td>
  173. </tr>
  174. <tr>
  175. <td class="paramkey"></td>
  176. <td></td>
  177. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  178. <td class="paramname"><em>y</em>, </td>
  179. </tr>
  180. <tr>
  181. <td class="paramkey"></td>
  182. <td></td>
  183. <td class="paramtype"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a>&#160;</td>
  184. <td class="paramname"><em>eta</em>&#160;</td>
  185. </tr>
  186. <tr>
  187. <td></td>
  188. <td>)</td>
  189. <td></td><td></td>
  190. </tr>
  191. </table>
  192. </td>
  193. <td class="mlabels-right">
  194. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  195. </tr>
  196. </table>
  197. </div><div class="memdoc">
  198. </div>
  199. </div>
  200. <a id="a7256dd4fca14fcf9373591ea1a1b42d6" name="a7256dd4fca14fcf9373591ea1a1b42d6"></a>
  201. <h2 class="memtitle"><span class="permalink"><a href="#a7256dd4fca14fcf9373591ea1a1b42d6">&#9670;&nbsp;</a></span>compute_last_delta()</h2>
  202. <div class="memitem">
  203. <div class="memproto">
  204. <table class="memname">
  205. <tr>
  206. <td class="memname">void Network::compute_last_delta </td>
  207. <td>(</td>
  208. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  209. <td class="paramname"><em>y</em></td><td>)</td>
  210. <td></td>
  211. </tr>
  212. </table>
  213. </div><div class="memdoc">
  214. </div>
  215. </div>
  216. <a id="a08f9864a68e23b74c1c212c67ca70ed4" name="a08f9864a68e23b74c1c212c67ca70ed4"></a>
  217. <h2 class="memtitle"><span class="permalink"><a href="#a08f9864a68e23b74c1c212c67ca70ed4">&#9670;&nbsp;</a></span>eval()</h2>
  218. <div class="memitem">
  219. <div class="memproto">
  220. <table class="memname">
  221. <tr>
  222. <td class="memname"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> Network::eval </td>
  223. <td>(</td>
  224. <td class="paramtype"><a class="el" href="class_dataset.html">Dataset</a> *&#160;</td>
  225. <td class="paramname"><em>dataset</em></td><td>)</td>
  226. <td></td>
  227. </tr>
  228. </table>
  229. </div><div class="memdoc">
  230. </div>
  231. </div>
  232. <a id="ab4a53f3e2d5c1033e9b2314826acf821" name="ab4a53f3e2d5c1033e9b2314826acf821"></a>
  233. <h2 class="memtitle"><span class="permalink"><a href="#ab4a53f3e2d5c1033e9b2314826acf821">&#9670;&nbsp;</a></span>feed_forward()</h2>
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Network::feed_forward </td>
  239. <td>(</td>
  240. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  241. <td class="paramname"><em>x_in</em></td><td>)</td>
  242. <td></td>
  243. </tr>
  244. </table>
  245. </div><div class="memdoc">
  246. </div>
  247. </div>
  248. <a id="a33b17ec8563577be73c109bfbb267c52" name="a33b17ec8563577be73c109bfbb267c52"></a>
  249. <h2 class="memtitle"><span class="permalink"><a href="#a33b17ec8563577be73c109bfbb267c52">&#9670;&nbsp;</a></span>is_done()</h2>
  250. <div class="memitem">
  251. <div class="memproto">
  252. <table class="memname">
  253. <tr>
  254. <td class="memname">void Network::is_done </td>
  255. <td>(</td>
  256. <td class="paramname"></td><td>)</td>
  257. <td></td>
  258. </tr>
  259. </table>
  260. </div><div class="memdoc">
  261. </div>
  262. </div>
  263. <a id="ade63dfedd3ffa5c0b9ef3e03aa58bc11" name="ade63dfedd3ffa5c0b9ef3e03aa58bc11"></a>
  264. <h2 class="memtitle"><span class="permalink"><a href="#ade63dfedd3ffa5c0b9ef3e03aa58bc11">&#9670;&nbsp;</a></span>push_layer()</h2>
  265. <div class="memitem">
  266. <div class="memproto">
  267. <table class="memname">
  268. <tr>
  269. <td class="memname">void Network::push_layer </td>
  270. <td>(</td>
  271. <td class="paramtype"><a class="el" href="class_layer_1_1_layer.html">Layer::Layer</a> &amp;&#160;</td>
  272. <td class="paramname"><em>l</em></td><td>)</td>
  273. <td></td>
  274. </tr>
  275. </table>
  276. </div><div class="memdoc">
  277. </div>
  278. </div>
  279. <a id="a790c6368ae5d69fbdb550ed7306543e5" name="a790c6368ae5d69fbdb550ed7306543e5"></a>
  280. <h2 class="memtitle"><span class="permalink"><a href="#a790c6368ae5d69fbdb550ed7306543e5">&#9670;&nbsp;</a></span>set_cost()</h2>
  281. <div class="memitem">
  282. <div class="memproto">
  283. <table class="mlabels">
  284. <tr>
  285. <td class="mlabels-left">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">void Network::set_cost </td>
  289. <td>(</td>
  290. <td class="paramtype"><a class="el" href="network_8hpp.html#a0c3a80fe878325a4a277470fdc7b3eb3">CostFunction</a>&#160;</td>
  291. <td class="paramname"><em>C_</em></td><td>)</td>
  292. <td></td>
  293. </tr>
  294. </table>
  295. </td>
  296. <td class="mlabels-right">
  297. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  298. </tr>
  299. </table>
  300. </div><div class="memdoc">
  301. </div>
  302. </div>
  303. <a id="aa515f8e09f5d2c989abdf68d97e79e26" name="aa515f8e09f5d2c989abdf68d97e79e26"></a>
  304. <h2 class="memtitle"><span class="permalink"><a href="#aa515f8e09f5d2c989abdf68d97e79e26">&#9670;&nbsp;</a></span>shuffle()</h2>
  305. <div class="memitem">
  306. <div class="memproto">
  307. <table class="mlabels">
  308. <tr>
  309. <td class="mlabels-left">
  310. <table class="memname">
  311. <tr>
  312. <td class="memname">void Network::shuffle </td>
  313. <td>(</td>
  314. <td class="paramtype">size_t *&#160;</td>
  315. <td class="paramname"><em>tab</em>, </td>
  316. </tr>
  317. <tr>
  318. <td class="paramkey"></td>
  319. <td></td>
  320. <td class="paramtype">size_t&#160;</td>
  321. <td class="paramname"><em>size</em>&#160;</td>
  322. </tr>
  323. <tr>
  324. <td></td>
  325. <td>)</td>
  326. <td></td><td></td>
  327. </tr>
  328. </table>
  329. </td>
  330. <td class="mlabels-right">
  331. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  332. </tr>
  333. </table>
  334. </div><div class="memdoc">
  335. </div>
  336. </div>
  337. <a id="a7bfcf0b5c1ed41fc14771d256789a042" name="a7bfcf0b5c1ed41fc14771d256789a042"></a>
  338. <h2 class="memtitle"><span class="permalink"><a href="#a7bfcf0b5c1ed41fc14771d256789a042">&#9670;&nbsp;</a></span>train()</h2>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">void Network::train </td>
  344. <td>(</td>
  345. <td class="paramtype"><a class="el" href="class_dataset.html">Dataset</a> *&#160;</td>
  346. <td class="paramname"><em>dataset</em>, </td>
  347. </tr>
  348. <tr>
  349. <td class="paramkey"></td>
  350. <td></td>
  351. <td class="paramtype">size_t&#160;</td>
  352. <td class="paramname"><em>nb_epochs</em>, </td>
  353. </tr>
  354. <tr>
  355. <td class="paramkey"></td>
  356. <td></td>
  357. <td class="paramtype">size_t&#160;</td>
  358. <td class="paramname"><em>batch_size</em>, </td>
  359. </tr>
  360. <tr>
  361. <td class="paramkey"></td>
  362. <td></td>
  363. <td class="paramtype"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a>&#160;</td>
  364. <td class="paramname"><em>eta</em>&#160;</td>
  365. </tr>
  366. <tr>
  367. <td></td>
  368. <td>)</td>
  369. <td></td><td></td>
  370. </tr>
  371. </table>
  372. </div><div class="memdoc">
  373. </div>
  374. </div>
  375. <a id="a2bb9069ed59682d142860215ed970e06" name="a2bb9069ed59682d142860215ed970e06"></a>
  376. <h2 class="memtitle"><span class="permalink"><a href="#a2bb9069ed59682d142860215ed970e06">&#9670;&nbsp;</a></span>update_batch()</h2>
  377. <div class="memitem">
  378. <div class="memproto">
  379. <table class="mlabels">
  380. <tr>
  381. <td class="mlabels-left">
  382. <table class="memname">
  383. <tr>
  384. <td class="memname">void Network::update_batch </td>
  385. <td>(</td>
  386. <td class="paramtype"><a class="el" href="class_dataset.html">Dataset</a> *&#160;</td>
  387. <td class="paramname"><em>dataset</em>, </td>
  388. </tr>
  389. <tr>
  390. <td class="paramkey"></td>
  391. <td></td>
  392. <td class="paramtype">size_t *&#160;</td>
  393. <td class="paramname"><em>indices</em>, </td>
  394. </tr>
  395. <tr>
  396. <td class="paramkey"></td>
  397. <td></td>
  398. <td class="paramtype">size_t&#160;</td>
  399. <td class="paramname"><em>begin</em>, </td>
  400. </tr>
  401. <tr>
  402. <td class="paramkey"></td>
  403. <td></td>
  404. <td class="paramtype">size_t&#160;</td>
  405. <td class="paramname"><em>end</em>, </td>
  406. </tr>
  407. <tr>
  408. <td class="paramkey"></td>
  409. <td></td>
  410. <td class="paramtype"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a>&#160;</td>
  411. <td class="paramname"><em>eta</em>&#160;</td>
  412. </tr>
  413. <tr>
  414. <td></td>
  415. <td>)</td>
  416. <td></td><td></td>
  417. </tr>
  418. </table>
  419. </td>
  420. <td class="mlabels-right">
  421. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  422. </tr>
  423. </table>
  424. </div><div class="memdoc">
  425. </div>
  426. </div>
  427. <h2 class="groupheader">Member Data Documentation</h2>
  428. <a id="ad71ea0a71fa28c4510e42fb809846404" name="ad71ea0a71fa28c4510e42fb809846404"></a>
  429. <h2 class="memtitle"><span class="permalink"><a href="#ad71ea0a71fa28c4510e42fb809846404">&#9670;&nbsp;</a></span>a</h2>
  430. <div class="memitem">
  431. <div class="memproto">
  432. <table class="memname">
  433. <tr>
  434. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Network::a</td>
  435. </tr>
  436. </table>
  437. </div><div class="memdoc">
  438. </div>
  439. </div>
  440. <a id="abf80a2387544fb826f11ab922b857d50" name="abf80a2387544fb826f11ab922b857d50"></a>
  441. <h2 class="memtitle"><span class="permalink"><a href="#abf80a2387544fb826f11ab922b857d50">&#9670;&nbsp;</a></span>C</h2>
  442. <div class="memitem">
  443. <div class="memproto">
  444. <table class="memname">
  445. <tr>
  446. <td class="memname"><a class="el" href="network_8hpp.html#a0c3a80fe878325a4a277470fdc7b3eb3">CostFunction</a> Network::C</td>
  447. </tr>
  448. </table>
  449. </div><div class="memdoc">
  450. </div>
  451. </div>
  452. <a id="a7d23ea49f6f1c5c0524210f658390cbc" name="a7d23ea49f6f1c5c0524210f658390cbc"></a>
  453. <h2 class="memtitle"><span class="permalink"><a href="#a7d23ea49f6f1c5c0524210f658390cbc">&#9670;&nbsp;</a></span>last_delta</h2>
  454. <div class="memitem">
  455. <div class="memproto">
  456. <table class="memname">
  457. <tr>
  458. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Network::last_delta</td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. </div>
  463. </div>
  464. <a id="a4bb79b836cfd07172c7ed37dade8cefd" name="a4bb79b836cfd07172c7ed37dade8cefd"></a>
  465. <h2 class="memtitle"><span class="permalink"><a href="#a4bb79b836cfd07172c7ed37dade8cefd">&#9670;&nbsp;</a></span>layers</h2>
  466. <div class="memitem">
  467. <div class="memproto">
  468. <table class="memname">
  469. <tr>
  470. <td class="memname">list&lt;<a class="el" href="class_layer_1_1_layer.html">Layer::Layer</a>*&gt; Network::layers</td>
  471. </tr>
  472. </table>
  473. </div><div class="memdoc">
  474. </div>
  475. </div>
  476. <a id="a912e19f5f19a486459cb8dac0bba7b7e" name="a912e19f5f19a486459cb8dac0bba7b7e"></a>
  477. <h2 class="memtitle"><span class="permalink"><a href="#a912e19f5f19a486459cb8dac0bba7b7e">&#9670;&nbsp;</a></span>n_in</h2>
  478. <div class="memitem">
  479. <div class="memproto">
  480. <table class="memname">
  481. <tr>
  482. <td class="memname">size_t Network::n_in</td>
  483. </tr>
  484. </table>
  485. </div><div class="memdoc">
  486. </div>
  487. </div>
  488. <a id="a4b6a975d8042d27ac5a7a026db5fc1f0" name="a4b6a975d8042d27ac5a7a026db5fc1f0"></a>
  489. <h2 class="memtitle"><span class="permalink"><a href="#a4b6a975d8042d27ac5a7a026db5fc1f0">&#9670;&nbsp;</a></span>n_out</h2>
  490. <div class="memitem">
  491. <div class="memproto">
  492. <table class="memname">
  493. <tr>
  494. <td class="memname">size_t Network::n_out</td>
  495. </tr>
  496. </table>
  497. </div><div class="memdoc">
  498. </div>
  499. </div>
  500. <hr/>The documentation for this class was generated from the following files:<ul>
  501. <li>src/<a class="el" href="network_8hpp_source.html">network.hpp</a></li>
  502. <li>src/<a class="el" href="network_8cpp.html">network.cpp</a></li>
  503. </ul>
  504. </div><!-- contents -->
  505. </div><!-- doc-content -->
  506. <!-- start footer part -->
  507. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  508. <ul>
  509. <li class="navelem"><a class="el" href="class_network.html">Network</a></li>
  510. <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  511. </ul>
  512. </div>
  513. </body>
  514. </html>