class_dataset.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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: Dataset 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_dataset.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="#pro-attribs">Protected Attributes</a> &#124;
  93. <a href="class_dataset-members.html">List of all members</a> </div>
  94. <div class="headertitle"><div class="title">Dataset Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
  95. </div><!--header-->
  96. <div class="contents">
  97. <p><code>#include &lt;<a class="el" href="dataset_8hpp_source.html">dataset.hpp</a>&gt;</code></p>
  98. <div class="dynheader">
  99. Inheritance diagram for Dataset:</div>
  100. <div class="dyncontent">
  101. <div class="center"><img src="class_dataset__inherit__graph.png" border="0" usemap="#a_dataset_inherit__map" alt="Inheritance graph"/></div>
  102. <map name="a_dataset_inherit__map" id="a_dataset_inherit__map">
  103. <area shape="rect" title=" " alt="" coords="5,5,79,32"/>
  104. <area shape="rect" href="class_mnist.html" title=" " alt="" coords="13,80,71,107"/>
  105. </map>
  106. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  107. <table class="memberdecls">
  108. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
  109. Public Member Functions</h2></td></tr>
  110. <tr class="memitem:a2ef0a4a688a218d55ef061c6df659a4a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a2ef0a4a688a218d55ef061c6df659a4a">Dataset</a> ()</td></tr>
  111. <tr class="separator:a2ef0a4a688a218d55ef061c6df659a4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a32fa68b53895c6b9b85866cb20111863"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a32fa68b53895c6b9b85866cb20111863">get_train_size</a> () const</td></tr>
  113. <tr class="separator:a32fa68b53895c6b9b85866cb20111863"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a72fe64fb9ba5524d6b52e383190fcca6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a72fe64fb9ba5524d6b52e383190fcca6">get_test_size</a> () const</td></tr>
  115. <tr class="separator:a72fe64fb9ba5524d6b52e383190fcca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a4e480d79a9827e5bc75340eaff998d2c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a4e480d79a9827e5bc75340eaff998d2c">get_y_size</a> () const</td></tr>
  117. <tr class="separator:a4e480d79a9827e5bc75340eaff998d2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:ad82b7125619aa7c991abe7a230459502"><td class="memItemLeft" align="right" valign="top">virtual pair&lt; <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>, <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#ad82b7125619aa7c991abe7a230459502">get_train</a> (const size_t i) const =0</td></tr>
  119. <tr class="separator:ad82b7125619aa7c991abe7a230459502"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a05408d54a3e72a15374e7216fa730098"><td class="memItemLeft" align="right" valign="top">virtual pair&lt; <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>, <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a05408d54a3e72a15374e7216fa730098">get_test</a> (const size_t i) const =0</td></tr>
  121. <tr class="separator:a05408d54a3e72a15374e7216fa730098"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. </table><table class="memberdecls">
  123. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
  124. Protected Attributes</h2></td></tr>
  125. <tr class="memitem:a694f77fcd998ee4b91dad75d57b5d2ab"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a694f77fcd998ee4b91dad75d57b5d2ab">train_size</a></td></tr>
  126. <tr class="separator:a694f77fcd998ee4b91dad75d57b5d2ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ab69cb524866ef5b2d14a8a6701f5aea2"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#ab69cb524866ef5b2d14a8a6701f5aea2">test_size</a></td></tr>
  128. <tr class="separator:ab69cb524866ef5b2d14a8a6701f5aea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:aefa53018e8b5bea1c4ad7d359c2e0169"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#aefa53018e8b5bea1c4ad7d359c2e0169">x_size</a></td></tr>
  130. <tr class="separator:aefa53018e8b5bea1c4ad7d359c2e0169"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a6da12c43dcebc4375bd9ce33c4a48d79"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_dataset.html#a6da12c43dcebc4375bd9ce33c4a48d79">y_size</a></td></tr>
  132. <tr class="separator:a6da12c43dcebc4375bd9ce33c4a48d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. </table>
  134. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  135. <a id="a2ef0a4a688a218d55ef061c6df659a4a" name="a2ef0a4a688a218d55ef061c6df659a4a"></a>
  136. <h2 class="memtitle"><span class="permalink"><a href="#a2ef0a4a688a218d55ef061c6df659a4a">&#9670;&nbsp;</a></span>Dataset()</h2>
  137. <div class="memitem">
  138. <div class="memproto">
  139. <table class="mlabels">
  140. <tr>
  141. <td class="mlabels-left">
  142. <table class="memname">
  143. <tr>
  144. <td class="memname">Dataset::Dataset </td>
  145. <td>(</td>
  146. <td class="paramname"></td><td>)</td>
  147. <td></td>
  148. </tr>
  149. </table>
  150. </td>
  151. <td class="mlabels-right">
  152. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. </div>
  157. </div>
  158. <h2 class="groupheader">Member Function Documentation</h2>
  159. <a id="a05408d54a3e72a15374e7216fa730098" name="a05408d54a3e72a15374e7216fa730098"></a>
  160. <h2 class="memtitle"><span class="permalink"><a href="#a05408d54a3e72a15374e7216fa730098">&#9670;&nbsp;</a></span>get_test()</h2>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">virtual pair&lt; <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>, <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> &gt; Dataset::get_test </td>
  169. <td>(</td>
  170. <td class="paramtype">const size_t&#160;</td>
  171. <td class="paramname"><em>i</em></td><td>)</td>
  172. <td> const</td>
  173. </tr>
  174. </table>
  175. </td>
  176. <td class="mlabels-right">
  177. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Implemented in <a class="el" href="class_mnist.html#a743e0089d025c1be8322c81e99446c85">Mnist</a>.</p>
  182. </div>
  183. </div>
  184. <a id="a72fe64fb9ba5524d6b52e383190fcca6" name="a72fe64fb9ba5524d6b52e383190fcca6"></a>
  185. <h2 class="memtitle"><span class="permalink"><a href="#a72fe64fb9ba5524d6b52e383190fcca6">&#9670;&nbsp;</a></span>get_test_size()</h2>
  186. <div class="memitem">
  187. <div class="memproto">
  188. <table class="mlabels">
  189. <tr>
  190. <td class="mlabels-left">
  191. <table class="memname">
  192. <tr>
  193. <td class="memname">size_t Dataset::get_test_size </td>
  194. <td>(</td>
  195. <td class="paramname"></td><td>)</td>
  196. <td> const</td>
  197. </tr>
  198. </table>
  199. </td>
  200. <td class="mlabels-right">
  201. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  202. </tr>
  203. </table>
  204. </div><div class="memdoc">
  205. </div>
  206. </div>
  207. <a id="ad82b7125619aa7c991abe7a230459502" name="ad82b7125619aa7c991abe7a230459502"></a>
  208. <h2 class="memtitle"><span class="permalink"><a href="#ad82b7125619aa7c991abe7a230459502">&#9670;&nbsp;</a></span>get_train()</h2>
  209. <div class="memitem">
  210. <div class="memproto">
  211. <table class="mlabels">
  212. <tr>
  213. <td class="mlabels-left">
  214. <table class="memname">
  215. <tr>
  216. <td class="memname">virtual pair&lt; <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>, <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> &gt; Dataset::get_train </td>
  217. <td>(</td>
  218. <td class="paramtype">const size_t&#160;</td>
  219. <td class="paramname"><em>i</em></td><td>)</td>
  220. <td> const</td>
  221. </tr>
  222. </table>
  223. </td>
  224. <td class="mlabels-right">
  225. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  226. </tr>
  227. </table>
  228. </div><div class="memdoc">
  229. <p>Implemented in <a class="el" href="class_mnist.html#a33608fb1985e0af8b147c8de6101fdb1">Mnist</a>.</p>
  230. </div>
  231. </div>
  232. <a id="a32fa68b53895c6b9b85866cb20111863" name="a32fa68b53895c6b9b85866cb20111863"></a>
  233. <h2 class="memtitle"><span class="permalink"><a href="#a32fa68b53895c6b9b85866cb20111863">&#9670;&nbsp;</a></span>get_train_size()</h2>
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="mlabels">
  237. <tr>
  238. <td class="mlabels-left">
  239. <table class="memname">
  240. <tr>
  241. <td class="memname">size_t Dataset::get_train_size </td>
  242. <td>(</td>
  243. <td class="paramname"></td><td>)</td>
  244. <td> const</td>
  245. </tr>
  246. </table>
  247. </td>
  248. <td class="mlabels-right">
  249. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  250. </tr>
  251. </table>
  252. </div><div class="memdoc">
  253. </div>
  254. </div>
  255. <a id="a4e480d79a9827e5bc75340eaff998d2c" name="a4e480d79a9827e5bc75340eaff998d2c"></a>
  256. <h2 class="memtitle"><span class="permalink"><a href="#a4e480d79a9827e5bc75340eaff998d2c">&#9670;&nbsp;</a></span>get_y_size()</h2>
  257. <div class="memitem">
  258. <div class="memproto">
  259. <table class="mlabels">
  260. <tr>
  261. <td class="mlabels-left">
  262. <table class="memname">
  263. <tr>
  264. <td class="memname">size_t Dataset::get_y_size </td>
  265. <td>(</td>
  266. <td class="paramname"></td><td>)</td>
  267. <td> const</td>
  268. </tr>
  269. </table>
  270. </td>
  271. <td class="mlabels-right">
  272. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  273. </tr>
  274. </table>
  275. </div><div class="memdoc">
  276. </div>
  277. </div>
  278. <h2 class="groupheader">Member Data Documentation</h2>
  279. <a id="ab69cb524866ef5b2d14a8a6701f5aea2" name="ab69cb524866ef5b2d14a8a6701f5aea2"></a>
  280. <h2 class="memtitle"><span class="permalink"><a href="#ab69cb524866ef5b2d14a8a6701f5aea2">&#9670;&nbsp;</a></span>test_size</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">size_t Dataset::test_size</td>
  289. </tr>
  290. </table>
  291. </td>
  292. <td class="mlabels-right">
  293. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  294. </tr>
  295. </table>
  296. </div><div class="memdoc">
  297. </div>
  298. </div>
  299. <a id="a694f77fcd998ee4b91dad75d57b5d2ab" name="a694f77fcd998ee4b91dad75d57b5d2ab"></a>
  300. <h2 class="memtitle"><span class="permalink"><a href="#a694f77fcd998ee4b91dad75d57b5d2ab">&#9670;&nbsp;</a></span>train_size</h2>
  301. <div class="memitem">
  302. <div class="memproto">
  303. <table class="mlabels">
  304. <tr>
  305. <td class="mlabels-left">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">size_t Dataset::train_size</td>
  309. </tr>
  310. </table>
  311. </td>
  312. <td class="mlabels-right">
  313. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  314. </tr>
  315. </table>
  316. </div><div class="memdoc">
  317. </div>
  318. </div>
  319. <a id="aefa53018e8b5bea1c4ad7d359c2e0169" name="aefa53018e8b5bea1c4ad7d359c2e0169"></a>
  320. <h2 class="memtitle"><span class="permalink"><a href="#aefa53018e8b5bea1c4ad7d359c2e0169">&#9670;&nbsp;</a></span>x_size</h2>
  321. <div class="memitem">
  322. <div class="memproto">
  323. <table class="mlabels">
  324. <tr>
  325. <td class="mlabels-left">
  326. <table class="memname">
  327. <tr>
  328. <td class="memname">size_t Dataset::x_size</td>
  329. </tr>
  330. </table>
  331. </td>
  332. <td class="mlabels-right">
  333. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  334. </tr>
  335. </table>
  336. </div><div class="memdoc">
  337. </div>
  338. </div>
  339. <a id="a6da12c43dcebc4375bd9ce33c4a48d79" name="a6da12c43dcebc4375bd9ce33c4a48d79"></a>
  340. <h2 class="memtitle"><span class="permalink"><a href="#a6da12c43dcebc4375bd9ce33c4a48d79">&#9670;&nbsp;</a></span>y_size</h2>
  341. <div class="memitem">
  342. <div class="memproto">
  343. <table class="mlabels">
  344. <tr>
  345. <td class="mlabels-left">
  346. <table class="memname">
  347. <tr>
  348. <td class="memname">size_t Dataset::y_size</td>
  349. </tr>
  350. </table>
  351. </td>
  352. <td class="mlabels-right">
  353. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. </div>
  358. </div>
  359. <hr/>The documentation for this class was generated from the following file:<ul>
  360. <li>src/<a class="el" href="dataset_8hpp_source.html">dataset.hpp</a></li>
  361. </ul>
  362. </div><!-- contents -->
  363. </div><!-- doc-content -->
  364. <!-- start footer part -->
  365. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  366. <ul>
  367. <li class="navelem"><a class="el" href="class_dataset.html">Dataset</a></li>
  368. <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>
  369. </ul>
  370. </div>
  371. </body>
  372. </html>