147 lines
50 KiB
HTML
147 lines
50 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/hoeffding_trees/hoeffding_tree_model.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_9728dd99c5f8edcf7fb9ef7255873dbb.html">hoeffding_trees</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">hoeffding_tree_model.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="hoeffding__tree__model_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="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#ifndef MLPACK_METHODS_HOEFFDING_TREE_HOEFFDING_TREE_MODEL_HPP</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#define MLPACK_METHODS_HOEFFDING_TREE_HOEFFDING_TREE_MODEL_HPP</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="hoeffding__tree_8hpp.html">hoeffding_tree.hpp</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="binary__numeric__split_8hpp.html">binary_numeric_split.hpp</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="hoeffding__trees_2information__gain_8hpp.html">information_gain.hpp</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>tree {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html"> 22</a></span> <span class="keyword">class </span><a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500"> 26</a></span>  <span class="keyword">enum</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500">TreeType</a></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  {</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a"> 28</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a">GINI_HOEFFDING</a>,</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500ad0a0e15a5b6e00a0b7ac22785a30398e"> 29</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500ad0a0e15a5b6e00a0b7ac22785a30398e">GINI_BINARY</a>,</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a02abed954e021b5b7841f00178081fc2"> 30</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a02abed954e021b5b7841f00178081fc2">INFO_HOEFFDING</a>,</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a9f094dca949beadd5187e31a4612da42"> 31</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a9f094dca949beadd5187e31a4612da42">INFO_BINARY</a></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  };</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">typedef</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a><<a class="code" href="classmlpack_1_1tree_1_1GiniImpurity.html">GiniImpurity</a>, <a class="code" href="namespacemlpack_1_1tree.html#a20fda6c6aece9c58c011ffea7e123378">HoeffdingDoubleNumericSplit</a>,</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa34a313eef873151ebad30a6b4524c1a"> 36</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit.html">HoeffdingCategoricalSplit</a>> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa34a313eef873151ebad30a6b4524c1a">GiniHoeffdingTreeType</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">typedef</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a><GiniImpurity, <a class="code" href="namespacemlpack_1_1tree.html#aee8064e063faf98870a4a5d4c2a0c46f">BinaryDoubleNumericSplit</a>,</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa7266b045d09aa8f036df5db31495445"> 39</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit.html">HoeffdingCategoricalSplit</a>> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa7266b045d09aa8f036df5db31495445">GiniBinaryTreeType</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">typedef</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a><<a class="code" href="classmlpack_1_1tree_1_1InformationGain.html">InformationGain</a>, <a class="code" href="namespacemlpack_1_1tree.html#a20fda6c6aece9c58c011ffea7e123378">HoeffdingDoubleNumericSplit</a>,</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa5fb55931696090698cdfdabcbecbd7c"> 42</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit.html">HoeffdingCategoricalSplit</a>> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa5fb55931696090698cdfdabcbecbd7c">InfoHoeffdingTreeType</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">typedef</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a><InformationGain, <a class="code" href="namespacemlpack_1_1tree.html#aee8064e063faf98870a4a5d4c2a0c46f">BinaryDoubleNumericSplit</a>,</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac37ace0bacc02d33311f3adae2645437"> 45</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit.html">HoeffdingCategoricalSplit</a>> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac37ace0bacc02d33311f3adae2645437">InfoBinaryTreeType</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a457befee70999a7d1bb2be7f5a917b36">HoeffdingTreeModel</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500">TreeType</a>& <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a> = <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a">GINI_HOEFFDING</a>);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a457befee70999a7d1bb2be7f5a917b36">HoeffdingTreeModel</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>& other);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a457befee70999a7d1bb2be7f5a917b36">HoeffdingTreeModel</a>(<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>&& other);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>& <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a27aa83b701381b3f67373ecd3e35d151">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>& other);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>& <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a27aa83b701381b3f67373ecd3e35d151">operator=</a>(<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">HoeffdingTreeModel</a>&& other);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a4a2c214d9433e334f1c64e82dab0a7ea">~HoeffdingTreeModel</a>();</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a918f490ff31829c1aec521a452693b02">BuildModel</a>(<span class="keyword">const</span> arma::mat& dataset,</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">const</span> <a class="code" href="classmlpack_1_1data_1_1DatasetMapper.html">data::DatasetInfo</a>& datasetInfo,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">const</span> arma::Row<size_t>& labels,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numClasses,</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> batchTraining,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> successProbability,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> maxSamples,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> checkInterval,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> minSamples,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> bins,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> observationsBeforeBinning);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aeca10014b68a500247ed25bb7cb1baa7">Train</a>(<span class="keyword">const</span> arma::mat& dataset,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">const</span> arma::Row<size_t>& labels,</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> batchTraining);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac3adc68c00cdd7c1483f261aca1a664e">Classify</a>(<span class="keyword">const</span> arma::mat& dataset,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  arma::Row<size_t>& predictions) <span class="keyword">const</span>;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac3adc68c00cdd7c1483f261aca1a664e">Classify</a>(<span class="keyword">const</span> arma::mat& dataset,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  arma::Row<size_t>& predictions,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  arma::rowvec& probabilities) <span class="keyword">const</span>;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ab4eef4ffae93a14308f6a7769263c838">NumNodes</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Archive></div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac47d426fc446eb3cdac675083ab7842f"> 164</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac47d426fc446eb3cdac675083ab7842f">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="l00165"></a><span class="lineno"> 165</span>  {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  ar & <a class="code" href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">data::CreateNVP</a>(<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a>, <span class="stringliteral">"type"</span>);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// Clear memory if needed.</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (Archive::is_loading::value)</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">delete</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">giniHoeffdingTree</a>;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">delete</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">giniBinaryTree</a>;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">delete</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">infoHoeffdingTree</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">delete</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">infoBinaryTree</a>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">giniHoeffdingTree</a> = NULL;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">giniBinaryTree</a> = NULL;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">infoHoeffdingTree</a> = NULL;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">infoBinaryTree</a> = NULL;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="comment">// Fake dataset info may be needed to create fake trees.</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="classmlpack_1_1data_1_1DatasetMapper.html">data::DatasetInfo</a> info;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">if</span> (<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a> == <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a">GINI_HOEFFDING</a>)</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="comment">// Create fake tree to load into if needed.</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">if</span> (Archive::is_loading::value)</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">giniHoeffdingTree</a> = <span class="keyword">new</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa34a313eef873151ebad30a6b4524c1a">GiniHoeffdingTreeType</a>(info, 1, 1);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  ar & <a class="code" href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">data::CreateNVP</a>(*<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">giniHoeffdingTree</a>, <span class="stringliteral">"giniHoeffdingTree"</span>);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a> == <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500ad0a0e15a5b6e00a0b7ac22785a30398e">GINI_BINARY</a>)</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="comment">// Create fake tree to load into if needed.</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">if</span> (Archive::is_loading::value)</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">giniBinaryTree</a> = <span class="keyword">new</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa7266b045d09aa8f036df5db31495445">GiniBinaryTreeType</a>(info, 1, 1);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  ar & <a class="code" href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">data::CreateNVP</a>(*<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">giniBinaryTree</a>, <span class="stringliteral">"giniBinaryTree"</span>);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a> == <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a02abed954e021b5b7841f00178081fc2">INFO_HOEFFDING</a>)</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  {</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="comment">// Create fake tree to load into if needed.</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">if</span> (Archive::is_loading::value)</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">infoHoeffdingTree</a> = <span class="keyword">new</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa5fb55931696090698cdfdabcbecbd7c">InfoHoeffdingTreeType</a>(info, 1, 1);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  ar & <a class="code" href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">data::CreateNVP</a>(*<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">infoHoeffdingTree</a>, <span class="stringliteral">"infoHoeffdingTree"</span>);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a> == <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a9f094dca949beadd5187e31a4612da42">INFO_BINARY</a>)</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  {</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="comment">// Create fake tree to load into if needed.</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">if</span> (Archive::is_loading::value)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">infoBinaryTree</a> = <span class="keyword">new</span> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac37ace0bacc02d33311f3adae2645437">InfoBinaryTreeType</a>(info, 1, 1);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  ar & <a class="code" href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">data::CreateNVP</a>(*<a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">infoBinaryTree</a>, <span class="stringliteral">"infoBinaryTree"</span>);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  }</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</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="keyword">private</span>:</div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa"> 216</a></span>  <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500">TreeType</a> <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">type</a>;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8"> 220</a></span>  GiniHoeffdingTreeType* <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">giniHoeffdingTree</a>;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264"> 224</a></span>  GiniBinaryTreeType* <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">giniBinaryTree</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d"> 228</a></span>  InfoHoeffdingTreeType* <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">infoHoeffdingTree</a>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61"> 232</a></span>  InfoBinaryTreeType* <a class="code" href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">infoBinaryTree</a>;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> };</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> } <span class="comment">// namespace tree</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> } <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a39d01b9a1c47cd399a9060c65d2e508d"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a39d01b9a1c47cd399a9060c65d2e508d">mlpack::tree::HoeffdingTreeModel::infoHoeffdingTree</a></div><div class="ttdeci">InfoHoeffdingTreeType * infoHoeffdingTree</div><div class="ttdoc">This is used if we are using the information gain and the Hoeffding numeric split. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00228">hoeffding_tree_model.hpp:228</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1data_1_1DatasetMapper_html"><div class="ttname"><a href="classmlpack_1_1data_1_1DatasetMapper.html">mlpack::data::DatasetMapper</a></div><div class="ttdoc">Auxiliary information for a dataset, including mappings to/from strings and the datatype of each dime...</div><div class="ttdef"><b>Definition:</b> <a href="dataset__mapper_8hpp_source.html#l00036">dataset_mapper.hpp:36</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ad7a5b513f01fee699b545686b5fed500a02abed954e021b5b7841f00178081fc2"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a02abed954e021b5b7841f00178081fc2">mlpack::tree::HoeffdingTreeModel::INFO_HOEFFDING</a></div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00030">hoeffding_tree_model.hpp:30</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTree_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a></div><div class="ttdoc">The HoeffdingTree object represents all of the necessary information for a Hoeffding-bound-based deci...</div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree_8hpp_source.html#l00061">hoeffding_tree.hpp:61</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_1tree_1_1HoeffdingTreeModel_html_ac37ace0bacc02d33311f3adae2645437"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac37ace0bacc02d33311f3adae2645437">mlpack::tree::HoeffdingTreeModel::InfoBinaryTreeType</a></div><div class="ttdeci">HoeffdingTree< InformationGain, BinaryDoubleNumericSplit, HoeffdingCategoricalSplit > InfoBinaryTreeType</div><div class="ttdoc">Convenience typedef for INFO_BINARY tree type. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00045">hoeffding_tree_model.hpp:45</a></div></div>
|
|
<div class="ttc" id="namespacemlpack_1_1tree_html_aee8064e063faf98870a4a5d4c2a0c46f"><div class="ttname"><a href="namespacemlpack_1_1tree.html#aee8064e063faf98870a4a5d4c2a0c46f">mlpack::tree::BinaryDoubleNumericSplit</a></div><div class="ttdeci">BinaryNumericSplit< FitnessFunction, double > BinaryDoubleNumericSplit</div><div class="ttdef"><b>Definition:</b> <a href="binary__numeric__split_8hpp_source.html#l00128">binary_numeric_split.hpp:128</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ab4eef4ffae93a14308f6a7769263c838"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ab4eef4ffae93a14308f6a7769263c838">mlpack::tree::HoeffdingTreeModel::NumNodes</a></div><div class="ttdeci">size_t NumNodes() const </div><div class="ttdoc">Get the number of nodes in the tree. </div></div>
|
|
<div class="ttc" id="namespacemlpack_1_1data_html_a785ee98e0070286ef86eeeea85a74018"><div class="ttname"><a href="namespacemlpack_1_1data.html#a785ee98e0070286ef86eeeea85a74018">mlpack::data::CreateNVP</a></div><div class="ttdeci">FirstShim< T > CreateNVP(T &t, const std::string &name, typename std::enable_if_t< HasSerialize< T >::value > *=0)</div><div class="ttdoc">Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function. </div><div class="ttdef"><b>Definition:</b> <a href="serialization__shim_8hpp_source.html#l00094">serialization_shim.hpp:94</a></div></div>
|
|
<div class="ttc" id="namespacemlpack_1_1tree_html_a20fda6c6aece9c58c011ffea7e123378"><div class="ttname"><a href="namespacemlpack_1_1tree.html#a20fda6c6aece9c58c011ffea7e123378">mlpack::tree::HoeffdingDoubleNumericSplit</a></div><div class="ttdeci">HoeffdingNumericSplit< FitnessFunction, double > HoeffdingDoubleNumericSplit</div><div class="ttdoc">Convenience typedef. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__numeric__split_8hpp_source.html#l00148">hoeffding_numeric_split.hpp:148</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ad7a5b513f01fee699b545686b5fed500"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500">mlpack::tree::HoeffdingTreeModel::TreeType</a></div><div class="ttdeci">TreeType</div><div class="ttdoc">This enumerates the four types of trees we can hold. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00026">hoeffding_tree_model.hpp:26</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ac3adc68c00cdd7c1483f261aca1a664e"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac3adc68c00cdd7c1483f261aca1a664e">mlpack::tree::HoeffdingTreeModel::Classify</a></div><div class="ttdeci">void Classify(const arma::mat &dataset, arma::Row< size_t > &predictions) const </div><div class="ttdoc">Using the model, classify the given test points. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a123c95574967ac5a081e570def2fd5a8"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a123c95574967ac5a081e570def2fd5a8">mlpack::tree::HoeffdingTreeModel::giniHoeffdingTree</a></div><div class="ttdeci">GiniHoeffdingTreeType * giniHoeffdingTree</div><div class="ttdoc">This is used if we are using the Gini impurity and the Hoeffding numeric split. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00220">hoeffding_tree_model.hpp:220</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_aa5fb55931696090698cdfdabcbecbd7c"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa5fb55931696090698cdfdabcbecbd7c">mlpack::tree::HoeffdingTreeModel::InfoHoeffdingTreeType</a></div><div class="ttdeci">HoeffdingTree< InformationGain, HoeffdingDoubleNumericSplit, HoeffdingCategoricalSplit > InfoHoeffdingTreeType</div><div class="ttdoc">Convenience typedef for INFO_HOEFFDING tree type. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00042">hoeffding_tree_model.hpp:42</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1InformationGain_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1InformationGain.html">mlpack::tree::InformationGain</a></div><div class="ttdoc">The standard information gain criterion, used for calculating gain in decision trees. </div><div class="ttdef"><b>Definition:</b> <a href="decision__tree_2information__gain_8hpp_source.html#l00025">information_gain.hpp:25</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a60dcc79ce1b3fbb1d3b8f6096fcb310a">mlpack::tree::HoeffdingTreeModel::GINI_HOEFFDING</a></div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00028">hoeffding_tree_model.hpp:28</a></div></div>
|
|
<div class="ttc" id="hoeffding__trees_2information__gain_8hpp_html"><div class="ttname"><a href="hoeffding__trees_2information__gain_8hpp.html">information_gain.hpp</a></div></div>
|
|
<div class="ttc" id="hoeffding__tree_8hpp_html"><div class="ttname"><a href="hoeffding__tree_8hpp.html">hoeffding_tree.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a918f490ff31829c1aec521a452693b02"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a918f490ff31829c1aec521a452693b02">mlpack::tree::HoeffdingTreeModel::BuildModel</a></div><div class="ttdeci">void BuildModel(const arma::mat &dataset, const data::DatasetInfo &datasetInfo, const arma::Row< size_t > &labels, const size_t numClasses, const bool batchTraining, const double successProbability, const size_t maxSamples, const size_t checkInterval, const size_t minSamples, const size_t bins, const size_t observationsBeforeBinning)</div><div class="ttdoc">Train the model on the given dataset with the given labels. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ad7a5b513f01fee699b545686b5fed500a9f094dca949beadd5187e31a4612da42"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500a9f094dca949beadd5187e31a4612da42">mlpack::tree::HoeffdingTreeModel::INFO_BINARY</a></div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00031">hoeffding_tree_model.hpp:31</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html">mlpack::tree::HoeffdingTreeModel</a></div><div class="ttdoc">This class is a serializable Hoeffding tree model that can hold four different types of Hoeffding tre...</div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00022">hoeffding_tree_model.hpp:22</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a457befee70999a7d1bb2be7f5a917b36"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a457befee70999a7d1bb2be7f5a917b36">mlpack::tree::HoeffdingTreeModel::HoeffdingTreeModel</a></div><div class="ttdeci">HoeffdingTreeModel(const TreeType &type=GINI_HOEFFDING)</div><div class="ttdoc">Construct the Hoeffding tree model, but don&#39;t initialize any tree. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_aa7266b045d09aa8f036df5db31495445"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa7266b045d09aa8f036df5db31495445">mlpack::tree::HoeffdingTreeModel::GiniBinaryTreeType</a></div><div class="ttdeci">HoeffdingTree< GiniImpurity, BinaryDoubleNumericSplit, HoeffdingCategoricalSplit > GiniBinaryTreeType</div><div class="ttdoc">Convenience typedef for GINI_BINARY tree type. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00039">hoeffding_tree_model.hpp:39</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingCategoricalSplit.html">mlpack::tree::HoeffdingCategoricalSplit</a></div><div class="ttdoc">This is the standard Hoeffding-bound categorical feature proposed in the paper below: ...</div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__categorical__split_8hpp_source.html#l00044">hoeffding_categorical_split.hpp:44</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a4a2c214d9433e334f1c64e82dab0a7ea"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a4a2c214d9433e334f1c64e82dab0a7ea">mlpack::tree::HoeffdingTreeModel::~HoeffdingTreeModel</a></div><div class="ttdeci">~HoeffdingTreeModel()</div><div class="ttdoc">Clean up the given model. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ac47d426fc446eb3cdac675083ab7842f"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac47d426fc446eb3cdac675083ab7842f">mlpack::tree::HoeffdingTreeModel::Serialize</a></div><div class="ttdeci">void Serialize(Archive &ar, const unsigned int)</div><div class="ttdoc">Serialize the model. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00164">hoeffding_tree_model.hpp:164</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1GiniImpurity_html"><div class="ttname"><a href="classmlpack_1_1tree_1_1GiniImpurity.html">mlpack::tree::GiniImpurity</a></div><div class="ttdef"><b>Definition:</b> <a href="gini__impurity_8hpp_source.html#l00021">gini_impurity.hpp:21</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ac5fdfa6e1ec4df537465e97152a322aa"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ac5fdfa6e1ec4df537465e97152a322aa">mlpack::tree::HoeffdingTreeModel::type</a></div><div class="ttdeci">TreeType type</div><div class="ttdoc">The type of tree we are using. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00216">hoeffding_tree_model.hpp:216</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_ad7a5b513f01fee699b545686b5fed500ad0a0e15a5b6e00a0b7ac22785a30398e"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#ad7a5b513f01fee699b545686b5fed500ad0a0e15a5b6e00a0b7ac22785a30398e">mlpack::tree::HoeffdingTreeModel::GINI_BINARY</a></div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00029">hoeffding_tree_model.hpp:29</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_aeca10014b68a500247ed25bb7cb1baa7"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aeca10014b68a500247ed25bb7cb1baa7">mlpack::tree::HoeffdingTreeModel::Train</a></div><div class="ttdeci">void Train(const arma::mat &dataset, const arma::Row< size_t > &labels, const bool batchTraining)</div><div class="ttdoc">Train in streaming mode on the given dataset. </div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a8728209e072bfde23cc974168c4d9f61"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a8728209e072bfde23cc974168c4d9f61">mlpack::tree::HoeffdingTreeModel::infoBinaryTree</a></div><div class="ttdeci">InfoBinaryTreeType * infoBinaryTree</div><div class="ttdoc">This is used if we are using the information gain and the binary numeric split. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00232">hoeffding_tree_model.hpp:232</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_adbebc8f36de2a9fcdc4c9b86343c8264"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#adbebc8f36de2a9fcdc4c9b86343c8264">mlpack::tree::HoeffdingTreeModel::giniBinaryTree</a></div><div class="ttdeci">GiniBinaryTreeType * giniBinaryTree</div><div class="ttdoc">This is used if we are using the Gini impurity and the binary numeric split. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00224">hoeffding_tree_model.hpp:224</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_aa34a313eef873151ebad30a6b4524c1a"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#aa34a313eef873151ebad30a6b4524c1a">mlpack::tree::HoeffdingTreeModel::GiniHoeffdingTreeType</a></div><div class="ttdeci">HoeffdingTree< GiniImpurity, HoeffdingDoubleNumericSplit, HoeffdingCategoricalSplit > GiniHoeffdingTreeType</div><div class="ttdoc">Convenience typedef for GINI_HOEFFDING tree type. </div><div class="ttdef"><b>Definition:</b> <a href="hoeffding__tree__model_8hpp_source.html#l00036">hoeffding_tree_model.hpp:36</a></div></div>
|
|
<div class="ttc" id="binary__numeric__split_8hpp_html"><div class="ttname"><a href="binary__numeric__split_8hpp.html">binary_numeric_split.hpp</a></div></div>
|
|
<div class="ttc" id="classmlpack_1_1tree_1_1HoeffdingTreeModel_html_a27aa83b701381b3f67373ecd3e35d151"><div class="ttname"><a href="classmlpack_1_1tree_1_1HoeffdingTreeModel.html#a27aa83b701381b3f67373ecd3e35d151">mlpack::tree::HoeffdingTreeModel::operator=</a></div><div class="ttdeci">HoeffdingTreeModel & operator=(const HoeffdingTreeModel &other)</div><div class="ttdoc">Copy the Hoeffding tree model from the given other model. </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>
|