1880 lines
118 KiB
HTML
1880 lines
118 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>mlpack: mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType > Class Template Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="extra-stylesheet.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">mlpack
|
|
 <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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespacemlpack.html">mlpack</a></li><li class="navelem"><a class="el" href="namespacemlpack_1_1tree.html">tree</a></li><li class="navelem"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classmlpack_1_1tree_1_1HoeffdingTree-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType > Class Template Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>The <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html" title="The HoeffdingTree object represents all of the necessary information for a Hoeffding-bound-based deci...">HoeffdingTree</a> object represents all of the necessary information for a Hoeffding-bound-based decision tree.
|
|
<a href="classmlpack_1_1tree_1_1HoeffdingTree.html#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:a8d2bce15dacf23fc6f513e1fcd66a786"><td class="memItemLeft" align="right" valign="top">typedef CategoricalSplitType< FitnessFunction > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a8d2bce15dacf23fc6f513e1fcd66a786">CategoricalSplit</a></td></tr>
|
|
<tr class="memdesc:a8d2bce15dacf23fc6f513e1fcd66a786"><td class="mdescLeft"> </td><td class="mdescRight">Allow access to the categorical split type. <a href="#a8d2bce15dacf23fc6f513e1fcd66a786">More...</a><br /></td></tr>
|
|
<tr class="separator:a8d2bce15dacf23fc6f513e1fcd66a786"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0eff97cb145bfc41d3a1dc4efd682e45"><td class="memItemLeft" align="right" valign="top">typedef NumericSplitType< FitnessFunction > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a0eff97cb145bfc41d3a1dc4efd682e45">NumericSplit</a></td></tr>
|
|
<tr class="memdesc:a0eff97cb145bfc41d3a1dc4efd682e45"><td class="mdescLeft"> </td><td class="mdescRight">Allow access to the numeric split type. <a href="#a0eff97cb145bfc41d3a1dc4efd682e45">More...</a><br /></td></tr>
|
|
<tr class="separator:a0eff97cb145bfc41d3a1dc4efd682e45"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ad07c2c792ceaace94b5125de78c353a5"><td class="memTemplParams" colspan="2">template<typename MatType > </td></tr>
|
|
<tr class="memitem:ad07c2c792ceaace94b5125de78c353a5"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ad07c2c792ceaace94b5125de78c353a5">HoeffdingTree</a> (const MatType &data, const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a> &<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a3b2adfbce59218d401a955fe11926ee7">datasetInfo</a>, const arma::Row< size_t > &labels, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4f53c35d0d231b21d743768e79c40e7c">numClasses</a>, const bool batchTraining=true, const double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4504ac6c73113e466ec26746e7db6af2">successProbability</a>=0.95, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b14b0df4fc515d8d92f058370ab6ba9">maxSamples</a>=0, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae989373eed16a13a99f7dabb521edb6a">checkInterval</a>=100, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ab2d14a1b3688ffeb4a14f32505be3567">minSamples</a>=100, const CategoricalSplitType< FitnessFunction > &categoricalSplitIn=CategoricalSplitType< FitnessFunction >(0, 0), const NumericSplitType< FitnessFunction > &numericSplitIn=NumericSplitType< FitnessFunction >(0))</td></tr>
|
|
<tr class="memdesc:ad07c2c792ceaace94b5125de78c353a5"><td class="mdescLeft"> </td><td class="mdescRight">Construct the Hoeffding tree with the given parameters and given training data. <a href="#ad07c2c792ceaace94b5125de78c353a5">More...</a><br /></td></tr>
|
|
<tr class="separator:ad07c2c792ceaace94b5125de78c353a5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aee112374e6d7665539fc97730c91410f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#aee112374e6d7665539fc97730c91410f">HoeffdingTree</a> (const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a> &<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a3b2adfbce59218d401a955fe11926ee7">datasetInfo</a>, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4f53c35d0d231b21d743768e79c40e7c">numClasses</a>, const double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4504ac6c73113e466ec26746e7db6af2">successProbability</a>=0.95, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b14b0df4fc515d8d92f058370ab6ba9">maxSamples</a>=0, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae989373eed16a13a99f7dabb521edb6a">checkInterval</a>=100, const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ab2d14a1b3688ffeb4a14f32505be3567">minSamples</a>=100, const CategoricalSplitType< FitnessFunction > &categoricalSplitIn=CategoricalSplitType< FitnessFunction >(0, 0), const NumericSplitType< FitnessFunction > &numericSplitIn=NumericSplitType< FitnessFunction >(0), std::unordered_map< size_t, std::pair< size_t, size_t >> *<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a5ee68a0a876a9a8bb9e4633541b710f4">dimensionMappings</a>=NULL)</td></tr>
|
|
<tr class="memdesc:aee112374e6d7665539fc97730c91410f"><td class="mdescLeft"> </td><td class="mdescRight">Construct the Hoeffding tree with the given parameters, but training on no data. <a href="#aee112374e6d7665539fc97730c91410f">More...</a><br /></td></tr>
|
|
<tr class="separator:aee112374e6d7665539fc97730c91410f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae78a802f8ba5b394741ebbba0cb15865"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae78a802f8ba5b394741ebbba0cb15865">HoeffdingTree</a> (const <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> &other)</td></tr>
|
|
<tr class="memdesc:ae78a802f8ba5b394741ebbba0cb15865"><td class="mdescLeft"> </td><td class="mdescRight">Copy another tree (warning: this will duplicate the tree entirely, and may use a lot of memory. <a href="#ae78a802f8ba5b394741ebbba0cb15865">More...</a><br /></td></tr>
|
|
<tr class="separator:ae78a802f8ba5b394741ebbba0cb15865"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa172871b4874bb500eaff55f2e7a9be9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#aa172871b4874bb500eaff55f2e7a9be9">~HoeffdingTree</a> ()</td></tr>
|
|
<tr class="memdesc:aa172871b4874bb500eaff55f2e7a9be9"><td class="mdescLeft"> </td><td class="mdescRight">Clean up memory. <a href="#aa172871b4874bb500eaff55f2e7a9be9">More...</a><br /></td></tr>
|
|
<tr class="separator:aa172871b4874bb500eaff55f2e7a9be9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7c99fda2dfe1b7225a0369cfd5ee3c70"><td class="memTemplParams" colspan="2">template<typename VecType > </td></tr>
|
|
<tr class="memitem:a7c99fda2dfe1b7225a0369cfd5ee3c70"><td class="memTemplItemLeft" align="right" valign="top">size_t </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a7c99fda2dfe1b7225a0369cfd5ee3c70">CalculateDirection</a> (const VecType &point) const </td></tr>
|
|
<tr class="memdesc:a7c99fda2dfe1b7225a0369cfd5ee3c70"><td class="mdescLeft"> </td><td class="mdescRight">Given a point and that this node is not a leaf, calculate the index of the child node this point would go towards. <a href="#a7c99fda2dfe1b7225a0369cfd5ee3c70">More...</a><br /></td></tr>
|
|
<tr class="separator:a7c99fda2dfe1b7225a0369cfd5ee3c70"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a53dc23294ad20763514b84aba8f4fea7"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a53dc23294ad20763514b84aba8f4fea7">CheckInterval</a> () const </td></tr>
|
|
<tr class="memdesc:a53dc23294ad20763514b84aba8f4fea7"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of samples before a split check is performed. <a href="#a53dc23294ad20763514b84aba8f4fea7">More...</a><br /></td></tr>
|
|
<tr class="separator:a53dc23294ad20763514b84aba8f4fea7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a620b670204820289494bb33335369106"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a620b670204820289494bb33335369106">CheckInterval</a> (const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae989373eed16a13a99f7dabb521edb6a">checkInterval</a>)</td></tr>
|
|
<tr class="memdesc:a620b670204820289494bb33335369106"><td class="mdescLeft"> </td><td class="mdescRight">Modify the number of samples before a split check is performed. <a href="#a620b670204820289494bb33335369106">More...</a><br /></td></tr>
|
|
<tr class="separator:a620b670204820289494bb33335369106"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a383ffcc47c960bedba0ad4cde609a2e8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a383ffcc47c960bedba0ad4cde609a2e8">Child</a> (const size_t i) const </td></tr>
|
|
<tr class="memdesc:a383ffcc47c960bedba0ad4cde609a2e8"><td class="mdescLeft"> </td><td class="mdescRight">Get a child. <a href="#a383ffcc47c960bedba0ad4cde609a2e8">More...</a><br /></td></tr>
|
|
<tr class="separator:a383ffcc47c960bedba0ad4cde609a2e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad141745c3ebd2d225ac2347c468a3b36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ad141745c3ebd2d225ac2347c468a3b36">Child</a> (const size_t i)</td></tr>
|
|
<tr class="memdesc:ad141745c3ebd2d225ac2347c468a3b36"><td class="mdescLeft"> </td><td class="mdescRight">Modify a child. <a href="#ad141745c3ebd2d225ac2347c468a3b36">More...</a><br /></td></tr>
|
|
<tr class="separator:ad141745c3ebd2d225ac2347c468a3b36"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acc0e953e5b981804d6249915728e0e8e"><td class="memTemplParams" colspan="2">template<typename VecType > </td></tr>
|
|
<tr class="memitem:acc0e953e5b981804d6249915728e0e8e"><td class="memTemplItemLeft" align="right" valign="top">size_t </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#acc0e953e5b981804d6249915728e0e8e">Classify</a> (const VecType &point) const </td></tr>
|
|
<tr class="memdesc:acc0e953e5b981804d6249915728e0e8e"><td class="mdescLeft"> </td><td class="mdescRight">Classify the given point, using this node and the entire (sub)tree beneath it. <a href="#acc0e953e5b981804d6249915728e0e8e">More...</a><br /></td></tr>
|
|
<tr class="separator:acc0e953e5b981804d6249915728e0e8e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af0f0ce344d7ae386599157e9f9efbf0d"><td class="memTemplParams" colspan="2">template<typename VecType > </td></tr>
|
|
<tr class="memitem:af0f0ce344d7ae386599157e9f9efbf0d"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#af0f0ce344d7ae386599157e9f9efbf0d">Classify</a> (const VecType &point, size_t &prediction, double &probability) const </td></tr>
|
|
<tr class="memdesc:af0f0ce344d7ae386599157e9f9efbf0d"><td class="mdescLeft"> </td><td class="mdescRight">Classify the given point and also return an estimate of the probability that the prediction is correct. <a href="#af0f0ce344d7ae386599157e9f9efbf0d">More...</a><br /></td></tr>
|
|
<tr class="separator:af0f0ce344d7ae386599157e9f9efbf0d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af3da5a17a132c180bab0affcc2824509"><td class="memTemplParams" colspan="2">template<typename MatType > </td></tr>
|
|
<tr class="memitem:af3da5a17a132c180bab0affcc2824509"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#af3da5a17a132c180bab0affcc2824509">Classify</a> (const MatType &data, arma::Row< size_t > &predictions) const </td></tr>
|
|
<tr class="memdesc:af3da5a17a132c180bab0affcc2824509"><td class="mdescLeft"> </td><td class="mdescRight">Classify the given points, using this node and the entire (sub)tree beneath it. <a href="#af3da5a17a132c180bab0affcc2824509">More...</a><br /></td></tr>
|
|
<tr class="separator:af3da5a17a132c180bab0affcc2824509"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a93368a257ec643974385dc31be286742"><td class="memTemplParams" colspan="2">template<typename MatType > </td></tr>
|
|
<tr class="memitem:a93368a257ec643974385dc31be286742"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a93368a257ec643974385dc31be286742">Classify</a> (const MatType &data, arma::Row< size_t > &predictions, arma::rowvec &probabilities) const </td></tr>
|
|
<tr class="memdesc:a93368a257ec643974385dc31be286742"><td class="mdescLeft"> </td><td class="mdescRight">Classify the given points, using this node and the entire (sub)tree beneath it. <a href="#a93368a257ec643974385dc31be286742">More...</a><br /></td></tr>
|
|
<tr class="separator:a93368a257ec643974385dc31be286742"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7919868233138dd248b6e2778cb762b5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a7919868233138dd248b6e2778cb762b5">CreateChildren</a> ()</td></tr>
|
|
<tr class="memdesc:a7919868233138dd248b6e2778cb762b5"><td class="mdescLeft"> </td><td class="mdescRight">Given that this node should split, create the children. <a href="#a7919868233138dd248b6e2778cb762b5">More...</a><br /></td></tr>
|
|
<tr class="separator:a7919868233138dd248b6e2778cb762b5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ade4967faf6c0d09b19b86f9d47df2d48"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ade4967faf6c0d09b19b86f9d47df2d48">MajorityClass</a> () const </td></tr>
|
|
<tr class="memdesc:ade4967faf6c0d09b19b86f9d47df2d48"><td class="mdescLeft"> </td><td class="mdescRight">Get the majority class. <a href="#ade4967faf6c0d09b19b86f9d47df2d48">More...</a><br /></td></tr>
|
|
<tr class="separator:ade4967faf6c0d09b19b86f9d47df2d48"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a574d52457625baf2596be5c649d04db1"><td class="memItemLeft" align="right" valign="top">size_t & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a574d52457625baf2596be5c649d04db1">MajorityClass</a> ()</td></tr>
|
|
<tr class="memdesc:a574d52457625baf2596be5c649d04db1"><td class="mdescLeft"> </td><td class="mdescRight">Modify the majority class. <a href="#a574d52457625baf2596be5c649d04db1">More...</a><br /></td></tr>
|
|
<tr class="separator:a574d52457625baf2596be5c649d04db1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a95f09abf1a126c2b53b34f064b2c142f"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a95f09abf1a126c2b53b34f064b2c142f">MajorityProbability</a> () const </td></tr>
|
|
<tr class="memdesc:a95f09abf1a126c2b53b34f064b2c142f"><td class="mdescLeft"> </td><td class="mdescRight">Get the probability of the majority class (based on training samples). <a href="#a95f09abf1a126c2b53b34f064b2c142f">More...</a><br /></td></tr>
|
|
<tr class="separator:a95f09abf1a126c2b53b34f064b2c142f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4b19bab10125e782e20b37d1814c4e9d"><td class="memItemLeft" align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b19bab10125e782e20b37d1814c4e9d">MajorityProbability</a> ()</td></tr>
|
|
<tr class="memdesc:a4b19bab10125e782e20b37d1814c4e9d"><td class="mdescLeft"> </td><td class="mdescRight">Modify the probability of the majority class. <a href="#a4b19bab10125e782e20b37d1814c4e9d">More...</a><br /></td></tr>
|
|
<tr class="separator:a4b19bab10125e782e20b37d1814c4e9d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6ebd8e5c32a96a709c12e6a286857a51"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a6ebd8e5c32a96a709c12e6a286857a51">MaxSamples</a> () const </td></tr>
|
|
<tr class="memdesc:a6ebd8e5c32a96a709c12e6a286857a51"><td class="mdescLeft"> </td><td class="mdescRight">Get the maximum number of samples before a split is forced. <a href="#a6ebd8e5c32a96a709c12e6a286857a51">More...</a><br /></td></tr>
|
|
<tr class="separator:a6ebd8e5c32a96a709c12e6a286857a51"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a21aae564a743faa8c0253a899f707d2f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a21aae564a743faa8c0253a899f707d2f">MaxSamples</a> (const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b14b0df4fc515d8d92f058370ab6ba9">maxSamples</a>)</td></tr>
|
|
<tr class="memdesc:a21aae564a743faa8c0253a899f707d2f"><td class="mdescLeft"> </td><td class="mdescRight">Modify the maximum number of samples before a split is forced. <a href="#a21aae564a743faa8c0253a899f707d2f">More...</a><br /></td></tr>
|
|
<tr class="separator:a21aae564a743faa8c0253a899f707d2f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3edbbf10cc1a4d4c4e3c960aadc11875"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a3edbbf10cc1a4d4c4e3c960aadc11875">MinSamples</a> () const </td></tr>
|
|
<tr class="memdesc:a3edbbf10cc1a4d4c4e3c960aadc11875"><td class="mdescLeft"> </td><td class="mdescRight">Get the minimum number of samples for a split. <a href="#a3edbbf10cc1a4d4c4e3c960aadc11875">More...</a><br /></td></tr>
|
|
<tr class="separator:a3edbbf10cc1a4d4c4e3c960aadc11875"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae290b202227916a9c332cfbb8ebb95c2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae290b202227916a9c332cfbb8ebb95c2">MinSamples</a> (const size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ab2d14a1b3688ffeb4a14f32505be3567">minSamples</a>)</td></tr>
|
|
<tr class="memdesc:ae290b202227916a9c332cfbb8ebb95c2"><td class="mdescLeft"> </td><td class="mdescRight">Modify the minimum number of samples for a split. <a href="#ae290b202227916a9c332cfbb8ebb95c2">More...</a><br /></td></tr>
|
|
<tr class="separator:ae290b202227916a9c332cfbb8ebb95c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4a8190c38569b104398f7ff796346589"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4a8190c38569b104398f7ff796346589">NumChildren</a> () const </td></tr>
|
|
<tr class="memdesc:a4a8190c38569b104398f7ff796346589"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of children. <a href="#a4a8190c38569b104398f7ff796346589">More...</a><br /></td></tr>
|
|
<tr class="separator:a4a8190c38569b104398f7ff796346589"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a48a89464c5fb95d12bc38cbb6ec9b678"><td class="memTemplParams" colspan="2">template<typename Archive > </td></tr>
|
|
<tr class="memitem:a48a89464c5fb95d12bc38cbb6ec9b678"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a48a89464c5fb95d12bc38cbb6ec9b678">Serialize</a> (Archive &ar, const unsigned int)</td></tr>
|
|
<tr class="memdesc:a48a89464c5fb95d12bc38cbb6ec9b678"><td class="mdescLeft"> </td><td class="mdescRight">Serialize the split. <a href="#a48a89464c5fb95d12bc38cbb6ec9b678">More...</a><br /></td></tr>
|
|
<tr class="separator:a48a89464c5fb95d12bc38cbb6ec9b678"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6ac5b55cf81817624a3251db20b50160"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a6ac5b55cf81817624a3251db20b50160">SplitCheck</a> ()</td></tr>
|
|
<tr class="memdesc:a6ac5b55cf81817624a3251db20b50160"><td class="mdescLeft"> </td><td class="mdescRight">Check if a split would satisfy the conditions of the Hoeffding bound with the node's specified success probability. <a href="#a6ac5b55cf81817624a3251db20b50160">More...</a><br /></td></tr>
|
|
<tr class="separator:a6ac5b55cf81817624a3251db20b50160"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a74d712fe39e9a3f0375d22c2f17b8c0e"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a74d712fe39e9a3f0375d22c2f17b8c0e">SplitDimension</a> () const </td></tr>
|
|
<tr class="memdesc:a74d712fe39e9a3f0375d22c2f17b8c0e"><td class="mdescLeft"> </td><td class="mdescRight">Get the splitting dimension (size_t(-1) if no split). <a href="#a74d712fe39e9a3f0375d22c2f17b8c0e">More...</a><br /></td></tr>
|
|
<tr class="separator:a74d712fe39e9a3f0375d22c2f17b8c0e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad2dfd14baf1fdd2b13b03ac8f277eee8"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ad2dfd14baf1fdd2b13b03ac8f277eee8">SuccessProbability</a> () const </td></tr>
|
|
<tr class="memdesc:ad2dfd14baf1fdd2b13b03ac8f277eee8"><td class="mdescLeft"> </td><td class="mdescRight">Get the confidence required for a split. <a href="#ad2dfd14baf1fdd2b13b03ac8f277eee8">More...</a><br /></td></tr>
|
|
<tr class="separator:ad2dfd14baf1fdd2b13b03ac8f277eee8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7f3b964d1ddfec81c8b9dbcd0eacfc57"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a7f3b964d1ddfec81c8b9dbcd0eacfc57">SuccessProbability</a> (const double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4504ac6c73113e466ec26746e7db6af2">successProbability</a>)</td></tr>
|
|
<tr class="memdesc:a7f3b964d1ddfec81c8b9dbcd0eacfc57"><td class="mdescLeft"> </td><td class="mdescRight">Modify the confidence required for a split. <a href="#a7f3b964d1ddfec81c8b9dbcd0eacfc57">More...</a><br /></td></tr>
|
|
<tr class="separator:a7f3b964d1ddfec81c8b9dbcd0eacfc57"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a54cf439ed323eac7dc3f17c876c768e7"><td class="memTemplParams" colspan="2">template<typename MatType > </td></tr>
|
|
<tr class="memitem:a54cf439ed323eac7dc3f17c876c768e7"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a54cf439ed323eac7dc3f17c876c768e7">Train</a> (const MatType &data, const arma::Row< size_t > &labels, const bool batchTraining=true)</td></tr>
|
|
<tr class="memdesc:a54cf439ed323eac7dc3f17c876c768e7"><td class="mdescLeft"> </td><td class="mdescRight">Train on a set of points, either in streaming mode or in batch mode, with the given labels. <a href="#a54cf439ed323eac7dc3f17c876c768e7">More...</a><br /></td></tr>
|
|
<tr class="separator:a54cf439ed323eac7dc3f17c876c768e7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afa35ebdbc389a329611d940a4e51351c"><td class="memTemplParams" colspan="2">template<typename VecType > </td></tr>
|
|
<tr class="memitem:afa35ebdbc389a329611d940a4e51351c"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#afa35ebdbc389a329611d940a4e51351c">Train</a> (const VecType &point, const size_t label)</td></tr>
|
|
<tr class="memdesc:afa35ebdbc389a329611d940a4e51351c"><td class="mdescLeft"> </td><td class="mdescRight">Train on a single point in streaming mode, with the given label. <a href="#afa35ebdbc389a329611d940a4e51351c">More...</a><br /></td></tr>
|
|
<tr class="separator:afa35ebdbc389a329611d940a4e51351c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a75921b6a575c0bfd4feb7edea67fb731"><td class="memItemLeft" align="right" valign="top">CategoricalSplitType< FitnessFunction >::SplitInfo </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a75921b6a575c0bfd4feb7edea67fb731">categoricalSplit</a></td></tr>
|
|
<tr class="memdesc:a75921b6a575c0bfd4feb7edea67fb731"><td class="mdescLeft"> </td><td class="mdescRight">If the split is categorical, this holds the splitting information. <a href="#a75921b6a575c0bfd4feb7edea67fb731">More...</a><br /></td></tr>
|
|
<tr class="separator:a75921b6a575c0bfd4feb7edea67fb731"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a88d41a2fe0df1df3833fc035cf647e95"><td class="memItemLeft" align="right" valign="top">std::vector< CategoricalSplitType< FitnessFunction > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a88d41a2fe0df1df3833fc035cf647e95">categoricalSplits</a></td></tr>
|
|
<tr class="memdesc:a88d41a2fe0df1df3833fc035cf647e95"><td class="mdescLeft"> </td><td class="mdescRight">Information for splitting of categorical features (used before split). <a href="#a88d41a2fe0df1df3833fc035cf647e95">More...</a><br /></td></tr>
|
|
<tr class="separator:a88d41a2fe0df1df3833fc035cf647e95"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae989373eed16a13a99f7dabb521edb6a"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ae989373eed16a13a99f7dabb521edb6a">checkInterval</a></td></tr>
|
|
<tr class="memdesc:ae989373eed16a13a99f7dabb521edb6a"><td class="mdescLeft"> </td><td class="mdescRight">The number of samples that should be seen before checking for a split. <a href="#ae989373eed16a13a99f7dabb521edb6a">More...</a><br /></td></tr>
|
|
<tr class="separator:ae989373eed16a13a99f7dabb521edb6a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a14215fa247b8c2c9123de4d31f95154d"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a14215fa247b8c2c9123de4d31f95154d">children</a></td></tr>
|
|
<tr class="memdesc:a14215fa247b8c2c9123de4d31f95154d"><td class="mdescLeft"> </td><td class="mdescRight">If the split has occurred, these are the children. <a href="#a14215fa247b8c2c9123de4d31f95154d">More...</a><br /></td></tr>
|
|
<tr class="separator:a14215fa247b8c2c9123de4d31f95154d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3b2adfbce59218d401a955fe11926ee7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a3b2adfbce59218d401a955fe11926ee7">datasetInfo</a></td></tr>
|
|
<tr class="memdesc:a3b2adfbce59218d401a955fe11926ee7"><td class="mdescLeft"> </td><td class="mdescRight">The dataset information. <a href="#a3b2adfbce59218d401a955fe11926ee7">More...</a><br /></td></tr>
|
|
<tr class="separator:a3b2adfbce59218d401a955fe11926ee7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5ee68a0a876a9a8bb9e4633541b710f4"><td class="memItemLeft" align="right" valign="top">std::unordered_map< size_t, std::pair< size_t, size_t > > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a5ee68a0a876a9a8bb9e4633541b710f4">dimensionMappings</a></td></tr>
|
|
<tr class="memdesc:a5ee68a0a876a9a8bb9e4633541b710f4"><td class="mdescLeft"> </td><td class="mdescRight">This structure is owned by this node only if it is the root of the tree. <a href="#a5ee68a0a876a9a8bb9e4633541b710f4">More...</a><br /></td></tr>
|
|
<tr class="separator:a5ee68a0a876a9a8bb9e4633541b710f4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad7295c1e96ba6a145c3acfec2aa09ffa"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ad7295c1e96ba6a145c3acfec2aa09ffa">majorityClass</a></td></tr>
|
|
<tr class="memdesc:ad7295c1e96ba6a145c3acfec2aa09ffa"><td class="mdescLeft"> </td><td class="mdescRight">The majority class of this node. <a href="#ad7295c1e96ba6a145c3acfec2aa09ffa">More...</a><br /></td></tr>
|
|
<tr class="separator:ad7295c1e96ba6a145c3acfec2aa09ffa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a85132e63b14563edc7c86fb2b6c536df"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a85132e63b14563edc7c86fb2b6c536df">majorityProbability</a></td></tr>
|
|
<tr class="memdesc:a85132e63b14563edc7c86fb2b6c536df"><td class="mdescLeft"> </td><td class="mdescRight">The empirical probability of a point this node saw having the majority class. <a href="#a85132e63b14563edc7c86fb2b6c536df">More...</a><br /></td></tr>
|
|
<tr class="separator:a85132e63b14563edc7c86fb2b6c536df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4b14b0df4fc515d8d92f058370ab6ba9"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b14b0df4fc515d8d92f058370ab6ba9">maxSamples</a></td></tr>
|
|
<tr class="memdesc:a4b14b0df4fc515d8d92f058370ab6ba9"><td class="mdescLeft"> </td><td class="mdescRight">The maximum number of samples we can see before splitting. <a href="#a4b14b0df4fc515d8d92f058370ab6ba9">More...</a><br /></td></tr>
|
|
<tr class="separator:a4b14b0df4fc515d8d92f058370ab6ba9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab2d14a1b3688ffeb4a14f32505be3567"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#ab2d14a1b3688ffeb4a14f32505be3567">minSamples</a></td></tr>
|
|
<tr class="memdesc:ab2d14a1b3688ffeb4a14f32505be3567"><td class="mdescLeft"> </td><td class="mdescRight">The minimum number of samples for splitting. <a href="#ab2d14a1b3688ffeb4a14f32505be3567">More...</a><br /></td></tr>
|
|
<tr class="separator:ab2d14a1b3688ffeb4a14f32505be3567"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4f53c35d0d231b21d743768e79c40e7c"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4f53c35d0d231b21d743768e79c40e7c">numClasses</a></td></tr>
|
|
<tr class="memdesc:a4f53c35d0d231b21d743768e79c40e7c"><td class="mdescLeft"> </td><td class="mdescRight">The number of classes this node is trained on. <a href="#a4f53c35d0d231b21d743768e79c40e7c">More...</a><br /></td></tr>
|
|
<tr class="separator:a4f53c35d0d231b21d743768e79c40e7c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aae9d70d3718a68d83e9bcf016e37166b"><td class="memItemLeft" align="right" valign="top">NumericSplitType< FitnessFunction >::SplitInfo </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#aae9d70d3718a68d83e9bcf016e37166b">numericSplit</a></td></tr>
|
|
<tr class="memdesc:aae9d70d3718a68d83e9bcf016e37166b"><td class="mdescLeft"> </td><td class="mdescRight">If the split is numeric, this holds the splitting information. <a href="#aae9d70d3718a68d83e9bcf016e37166b">More...</a><br /></td></tr>
|
|
<tr class="separator:aae9d70d3718a68d83e9bcf016e37166b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a041f5826547efdf330a60bcdf4f362d3"><td class="memItemLeft" align="right" valign="top">std::vector< NumericSplitType< FitnessFunction > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a041f5826547efdf330a60bcdf4f362d3">numericSplits</a></td></tr>
|
|
<tr class="memdesc:a041f5826547efdf330a60bcdf4f362d3"><td class="mdescLeft"> </td><td class="mdescRight">Information for splitting of numeric features (used before split). <a href="#a041f5826547efdf330a60bcdf4f362d3">More...</a><br /></td></tr>
|
|
<tr class="separator:a041f5826547efdf330a60bcdf4f362d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acc5763176c600afe01104b4ed4892d32"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#acc5763176c600afe01104b4ed4892d32">numSamples</a></td></tr>
|
|
<tr class="memdesc:acc5763176c600afe01104b4ed4892d32"><td class="mdescLeft"> </td><td class="mdescRight">The number of samples seen so far by this node. <a href="#acc5763176c600afe01104b4ed4892d32">More...</a><br /></td></tr>
|
|
<tr class="separator:acc5763176c600afe01104b4ed4892d32"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a289d372af1648bc3585bef53bfe50392"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a289d372af1648bc3585bef53bfe50392">ownsInfo</a></td></tr>
|
|
<tr class="memdesc:a289d372af1648bc3585bef53bfe50392"><td class="mdescLeft"> </td><td class="mdescRight">Whether or not we own the dataset information. <a href="#a289d372af1648bc3585bef53bfe50392">More...</a><br /></td></tr>
|
|
<tr class="separator:a289d372af1648bc3585bef53bfe50392"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a258b46af757f1022515c988858c72feb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a258b46af757f1022515c988858c72feb">ownsMappings</a></td></tr>
|
|
<tr class="memdesc:a258b46af757f1022515c988858c72feb"><td class="mdescLeft"> </td><td class="mdescRight">Indicates whether or not we own the mappings. <a href="#a258b46af757f1022515c988858c72feb">More...</a><br /></td></tr>
|
|
<tr class="separator:a258b46af757f1022515c988858c72feb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1795be22222c893656fcc7b1262faea9"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a1795be22222c893656fcc7b1262faea9">splitDimension</a></td></tr>
|
|
<tr class="memdesc:a1795be22222c893656fcc7b1262faea9"><td class="mdescLeft"> </td><td class="mdescRight">The dimension that this node has split on. <a href="#a1795be22222c893656fcc7b1262faea9">More...</a><br /></td></tr>
|
|
<tr class="separator:a1795be22222c893656fcc7b1262faea9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4504ac6c73113e466ec26746e7db6af2"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4504ac6c73113e466ec26746e7db6af2">successProbability</a></td></tr>
|
|
<tr class="memdesc:a4504ac6c73113e466ec26746e7db6af2"><td class="mdescLeft"> </td><td class="mdescRight">The required probability of success for a split to be performed. <a href="#a4504ac6c73113e466ec26746e7db6af2">More...</a><br /></td></tr>
|
|
<tr class="separator:a4504ac6c73113e466ec26746e7db6af2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><h3>template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit><br />
|
|
class mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType ></h3>
|
|
|
|
<p>The <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html" title="The HoeffdingTree object represents all of the necessary information for a Hoeffding-bound-based deci...">HoeffdingTree</a> object represents all of the necessary information for a Hoeffding-bound-based decision tree. </p>
|
|
<p>This class is able to train on samples in streaming settings and batch settings, and perform splits based on the Hoeffding bound. The Hoeffding tree (also known as the "very fast decision
|
|
tree" – VFDT) is described in the following paper:</p>
|
|
<div class="fragment"><div class="line">@inproceedings{domingos2000mining,</div><div class="line"> title={{Mining High-Speed Data Streams}},</div><div class="line"> author={Domingos, P. and Hulten, G.},</div><div class="line"> year={2000},</div><div class="line"> booktitle={Proceedings of the Sixth ACM SIGKDD International Conference</div><div class="line"> on Knowledge Discovery and Data Mining (KDD <span class="stringliteral">'00)},</span></div><div class="line"><span class="stringliteral"> pages={71--80}</span></div><div class="line"><span class="stringliteral">}</span></div></div><!-- fragment --><p>The class is modular, and takes three template parameters. The first, FitnessFunction, is the fitness function that should be used to determine whether a split is beneficial; examples might be <a class="el" href="classmlpack_1_1tree_1_1GiniImpurity.html">GiniImpurity</a> or <a class="el" href="classmlpack_1_1tree_1_1InformationGain.html" title="The standard information gain criterion, used for calculating gain in decision trees. ">InformationGain</a>. The NumericSplitType determines how numeric attributes are handled, and the CategoricalSplitType determines how categorical attributes are handled. As far as the actual splitting goes, the meat of the splitting procedure will be contained in those two classes.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">FitnessFunction</td><td>Fitness function to use. </td></tr>
|
|
<tr><td class="paramname">NumericSplitType</td><td>Technique for splitting numeric features. </td></tr>
|
|
<tr><td class="paramname">CategoricalSplitType</td><td>Technique for splitting categorical features. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00061">61</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Member Typedef Documentation</h2>
|
|
<a class="anchor" id="a8d2bce15dacf23fc6f513e1fcd66a786"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef CategoricalSplitType<FitnessFunction> <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a8d2bce15dacf23fc6f513e1fcd66a786">CategoricalSplit</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Allow access to the categorical split type. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00067">67</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0eff97cb145bfc41d3a1dc4efd682e45"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef NumericSplitType<FitnessFunction> <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a0eff97cb145bfc41d3a1dc4efd682e45">NumericSplit</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Allow access to the numeric split type. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00065">65</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="ad07c2c792ceaace94b5125de78c353a5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename MatType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const MatType & </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a> & </td>
|
|
<td class="paramname"><em>datasetInfo</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const arma::Row< size_t > & </td>
|
|
<td class="paramname"><em>labels</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>numClasses</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool </td>
|
|
<td class="paramname"><em>batchTraining</em> = <code>true</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const double </td>
|
|
<td class="paramname"><em>successProbability</em> = <code>0.95</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>maxSamples</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>checkInterval</em> = <code>100</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>minSamples</em> = <code>100</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const CategoricalSplitType< FitnessFunction > & </td>
|
|
<td class="paramname"><em>categoricalSplitIn</em> = <code>CategoricalSplitType< FitnessFunction >(0, 0)</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const NumericSplitType< FitnessFunction > & </td>
|
|
<td class="paramname"><em>numericSplitIn</em> = <code>NumericSplitType< FitnessFunction >(0)</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Construct the Hoeffding tree with the given parameters and given training data. </p>
|
|
<p>The tree may be trained either in batch mode (which looks at all points before splitting, and propagates these points to the created children for further training), or in streaming mode, where each point is only considered once. (In general, batch mode will give better-performing trees, but will have higher memory and runtime costs for the same dataset.)</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Dataset to train on. </td></tr>
|
|
<tr><td class="paramname">datasetInfo</td><td>Information on the dataset (types of each feature). </td></tr>
|
|
<tr><td class="paramname">labels</td><td>Labels of each point in the dataset. </td></tr>
|
|
<tr><td class="paramname">numClasses</td><td>Number of classes in the dataset. </td></tr>
|
|
<tr><td class="paramname">batchTraining</td><td>Whether or not to train in batch. </td></tr>
|
|
<tr><td class="paramname">successProbability</td><td>Probability of success required in Hoeffding bounds before a split can happen. </td></tr>
|
|
<tr><td class="paramname">maxSamples</td><td>Maximum number of samples before a split is forced (0 never forces a split); ignored in batch training mode. </td></tr>
|
|
<tr><td class="paramname">checkInterval</td><td>Number of samples required before each split; ignored in batch training mode. </td></tr>
|
|
<tr><td class="paramname">minSamples</td><td>If the node has seen this many points or fewer, no split will be allowed. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aee112374e6d7665539fc97730c91410f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a> & </td>
|
|
<td class="paramname"><em>datasetInfo</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>numClasses</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const double </td>
|
|
<td class="paramname"><em>successProbability</em> = <code>0.95</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>maxSamples</em> = <code>0</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>checkInterval</em> = <code>100</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>minSamples</em> = <code>100</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const CategoricalSplitType< FitnessFunction > & </td>
|
|
<td class="paramname"><em>categoricalSplitIn</em> = <code>CategoricalSplitType< FitnessFunction >(0, 0)</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const NumericSplitType< FitnessFunction > & </td>
|
|
<td class="paramname"><em>numericSplitIn</em> = <code>NumericSplitType< FitnessFunction >(0)</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::unordered_map< size_t, std::pair< size_t, size_t >> * </td>
|
|
<td class="paramname"><em>dimensionMappings</em> = <code>NULL</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Construct the Hoeffding tree with the given parameters, but training on no data. </p>
|
|
<p>The dimensionMappings parameter is only used if it is desired that this node does not create its own dimensionMappings object (for instance, if this is a child of another node in the tree).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">dimensionality</td><td>Dimensionality of the dataset. </td></tr>
|
|
<tr><td class="paramname">numClasses</td><td>Number of classes in the dataset. </td></tr>
|
|
<tr><td class="paramname">datasetInfo</td><td>Information on the dataset (types of each feature). </td></tr>
|
|
<tr><td class="paramname">successProbability</td><td>Probability of success required in Hoeffding bound before a split can happen. </td></tr>
|
|
<tr><td class="paramname">maxSamples</td><td>Maximum number of samples before a split is forced. </td></tr>
|
|
<tr><td class="paramname">checkInterval</td><td>Number of samples required before each split check. </td></tr>
|
|
<tr><td class="paramname">minSamples</td><td>If the node has seen this many points or fewer, no split will be allowed. </td></tr>
|
|
<tr><td class="paramname">dimensionMappings</td><td>Mappings from dimension indices to positions in numeric and categorical split vectors. If left NULL, a new one will be created. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae78a802f8ba5b394741ebbba0cb15865"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType > & </td>
|
|
<td class="paramname"><em>other</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Copy another tree (warning: this will duplicate the tree entirely, and may use a lot of memory. </p>
|
|
<p>Make sure it's what you want before you do it).</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">other</td><td>Tree to copy. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa172871b4874bb500eaff55f2e7a9be9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::~<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clean up memory. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="a7c99fda2dfe1b7225a0369cfd5ee3c70"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename VecType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::CalculateDirection </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const VecType & </td>
|
|
<td class="paramname"><em>point</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Given a point and that this node is not a leaf, calculate the index of the child node this point would go towards. </p>
|
|
<p>This method is primarily used by the <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#acc0e953e5b981804d6249915728e0e8e" title="Classify the given point, using this node and the entire (sub)tree beneath it. ">Classify()</a> function, but it can be used in a standalone sense too.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">point</td><td>Point to classify. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a53dc23294ad20763514b84aba8f4fea7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the number of samples before a split check is performed. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">217</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a7c99fda2dfe1b7225a0369cfd5ee3c70">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CalculateDirection()</a>, <a class="el" href="hoeffding__tree_8hpp_source.html#l00311">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::checkInterval</a>, <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#acc0e953e5b981804d6249915728e0e8e">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::Classify()</a>, <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a7919868233138dd248b6e2778cb762b5">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CreateChildren()</a>, and <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a48a89464c5fb95d12bc38cbb6ec9b678">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::Serialize()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a620b670204820289494bb33335369106"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>checkInterval</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the number of samples before a split check is performed. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a383ffcc47c960bedba0ad4cde609a2e8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a>& <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Child </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>i</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get a child. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00197">197</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00335">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::children</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad141745c3ebd2d225ac2347c468a3b36"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a>& <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Child </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>i</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify a child. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00199">199</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00335">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::children</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acc0e953e5b981804d6249915728e0e8e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename VecType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Classify </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const VecType & </td>
|
|
<td class="paramname"><em>point</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Classify the given point, using this node and the entire (sub)tree beneath it. </p>
|
|
<p>The predicted label is returned.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">point</td><td>Point to classify. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Predicted label of point. </dd></dl>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af0f0ce344d7ae386599157e9f9efbf0d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename VecType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Classify </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const VecType & </td>
|
|
<td class="paramname"><em>point</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t & </td>
|
|
<td class="paramname"><em>prediction</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double & </td>
|
|
<td class="paramname"><em>probability</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Classify the given point and also return an estimate of the probability that the prediction is correct. </p>
|
|
<p>(This estimate is simply the probability that a training point was from the majority class in the leaf that this point binned to.)</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">point</td><td>Point to classify. </td></tr>
|
|
<tr><td class="paramname">prediction</td><td>Predicted label of point. </td></tr>
|
|
<tr><td class="paramname">probability</td><td>An estimate of the probability that the prediction is correct. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af3da5a17a132c180bab0affcc2824509"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename MatType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Classify </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const MatType & </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">arma::Row< size_t > & </td>
|
|
<td class="paramname"><em>predictions</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Classify the given points, using this node and the entire (sub)tree beneath it. </p>
|
|
<p>The predicted labels for each point are returned.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Points to classify. </td></tr>
|
|
<tr><td class="paramname">predictions</td><td>Predicted labels for each point. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a93368a257ec643974385dc31be286742"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename MatType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Classify </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const MatType & </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">arma::Row< size_t > & </td>
|
|
<td class="paramname"><em>predictions</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">arma::rowvec & </td>
|
|
<td class="paramname"><em>probabilities</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Classify the given points, using this node and the entire (sub)tree beneath it. </p>
|
|
<p>The predicted labels for each point are returned, as well as an estimate of the probability that the prediction is correct for each point. This estimate is simply the <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html#a4b19bab10125e782e20b37d1814c4e9d" title="Modify the probability of the majority class. ">MajorityProbability()</a> for the leaf that each point bins to.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Points to classify. </td></tr>
|
|
<tr><td class="paramname">predictions</td><td>Predicted labels for each point. </td></tr>
|
|
<tr><td class="paramname">probabilities</td><td>Probability estimates for each predicted label. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7919868233138dd248b6e2778cb762b5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::CreateChildren </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Given that this node should split, create the children. </p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ade4967faf6c0d09b19b86f9d47df2d48"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityClass </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the majority class. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00184">184</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00326">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityClass</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a574d52457625baf2596be5c649d04db1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t& <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityClass </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the majority class. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00186">186</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00326">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityClass</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a95f09abf1a126c2b53b34f064b2c142f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityProbability </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the probability of the majority class (based on training samples). </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00189">189</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00329">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityProbability</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4b19bab10125e782e20b37d1814c4e9d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double& <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityProbability </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the probability of the majority class. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00191">191</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00329">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityProbability</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6ebd8e5c32a96a709c12e6a286857a51"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MaxSamples </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the maximum number of samples before a split is forced. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00212">212</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00309">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::maxSamples</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a21aae564a743faa8c0253a899f707d2f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MaxSamples </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>maxSamples</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the maximum number of samples before a split is forced. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3edbbf10cc1a4d4c4e3c960aadc11875"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MinSamples </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the minimum number of samples for a split. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00207">207</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00313">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::minSamples</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae290b202227916a9c332cfbb8ebb95c2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::MinSamples </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>minSamples</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the minimum number of samples for a split. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4a8190c38569b104398f7ff796346589"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::NumChildren </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the number of children. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00194">194</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00335">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::children</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a48a89464c5fb95d12bc38cbb6ec9b678"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename Archive > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Serialize </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Archive & </td>
|
|
<td class="paramname"><em>ar</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const unsigned </td>
|
|
<td class="paramname"><em>int</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Serialize the split. </p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6ac5b55cf81817624a3251db20b50160"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::SplitCheck </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Check if a split would satisfy the conditions of the Hoeffding bound with the node's specified success probability. </p>
|
|
<p>If so, the number of children that would be created is returned. If not, 0 is returned. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a74d712fe39e9a3f0375d22c2f17b8c0e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::SplitDimension </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the splitting dimension (size_t(-1) if no split). </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00181">181</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00324">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::splitDimension</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad2dfd14baf1fdd2b13b03ac8f277eee8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::SuccessProbability </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the confidence required for a split. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00202">202</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="hoeffding__tree_8hpp_source.html#l00319">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::successProbability</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7f3b964d1ddfec81c8b9dbcd0eacfc57"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::SuccessProbability </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const double </td>
|
|
<td class="paramname"><em>successProbability</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Modify the confidence required for a split. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a54cf439ed323eac7dc3f17c876c768e7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename MatType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Train </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const MatType & </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const arma::Row< size_t > & </td>
|
|
<td class="paramname"><em>labels</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool </td>
|
|
<td class="paramname"><em>batchTraining</em> = <code>true</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Train on a set of points, either in streaming mode or in batch mode, with the given labels. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Data points to train on. </td></tr>
|
|
<tr><td class="paramname">label</td><td>Labels of data points. </td></tr>
|
|
<tr><td class="paramname">batchTraining</td><td>If true, perform training in batch. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afa35ebdbc389a329611d940a4e51351c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<div class="memtemplate">
|
|
template<typename VecType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::Train </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const VecType & </td>
|
|
<td class="paramname"><em>point</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const size_t </td>
|
|
<td class="paramname"><em>label</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Train on a single point in streaming mode, with the given label. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">point</td><td>Point to train on. </td></tr>
|
|
<tr><td class="paramname">label</td><td>Label of point to train on. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a class="anchor" id="a75921b6a575c0bfd4feb7edea67fb731"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">CategoricalSplitType<FitnessFunction>::SplitInfo <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::categoricalSplit</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>If the split is categorical, this holds the splitting information. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00331">331</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a88d41a2fe0df1df3833fc035cf647e95"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<CategoricalSplitType<FitnessFunction> > <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::categoricalSplits</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Information for splitting of categorical features (used before split). </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00297">297</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae989373eed16a13a99f7dabb521edb6a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::checkInterval</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The number of samples that should be seen before checking for a split. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00311">311</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00217">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::CheckInterval()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a14215fa247b8c2c9123de4d31f95154d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<<a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">HoeffdingTree</a>*> <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::children</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>If the split has occurred, these are the children. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00335">335</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00197">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::Child()</a>, and <a class="el" href="hoeffding__tree_8hpp_source.html#l00194">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::NumChildren()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3b2adfbce59218d401a955fe11926ee7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="namespacemlpack_1_1data.html#a78dcb1509876d801331776f0b895cffb">data::DatasetInfo</a>* <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::datasetInfo</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The dataset information. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00315">315</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5ee68a0a876a9a8bb9e4633541b710f4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::unordered_map<size_t, std::pair<size_t, size_t> >* <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::dimensionMappings</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>This structure is owned by this node only if it is the root of the tree. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00300">300</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad7295c1e96ba6a145c3acfec2aa09ffa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityClass</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The majority class of this node. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00326">326</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00184">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityClass()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a85132e63b14563edc7c86fb2b6c536df"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::majorityProbability</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The empirical probability of a point this node saw having the majority class. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00329">329</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00189">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::MajorityProbability()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4b14b0df4fc515d8d92f058370ab6ba9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::maxSamples</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The maximum number of samples we can see before splitting. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00309">309</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00212">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::MaxSamples()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab2d14a1b3688ffeb4a14f32505be3567"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::minSamples</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The minimum number of samples for splitting. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00313">313</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00207">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::MinSamples()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4f53c35d0d231b21d743768e79c40e7c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::numClasses</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The number of classes this node is trained on. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00307">307</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aae9d70d3718a68d83e9bcf016e37166b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">NumericSplitType<FitnessFunction>::SplitInfo <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::numericSplit</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>If the split is numeric, this holds the splitting information. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00333">333</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a041f5826547efdf330a60bcdf4f362d3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<NumericSplitType<FitnessFunction> > <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::numericSplits</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Information for splitting of numeric features (used before split). </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00295">295</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acc5763176c600afe01104b4ed4892d32"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::numSamples</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The number of samples seen so far by this node. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00305">305</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a289d372af1648bc3585bef53bfe50392"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::ownsInfo</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Whether or not we own the dataset information. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00317">317</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a258b46af757f1022515c988858c72feb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::ownsMappings</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Indicates whether or not we own the mappings. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00302">302</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1795be22222c893656fcc7b1262faea9"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::splitDimension</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The dimension that this node has split on. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00324">324</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00181">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::SplitDimension()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4504ac6c73113e466ec26746e7db6af2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename FitnessFunction = GiniImpurity, template< typename > class NumericSplitType = HoeffdingDoubleNumericSplit, template< typename > class CategoricalSplitType = HoeffdingCategoricalSplit> </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classmlpack_1_1tree_1_1HoeffdingTree.html">mlpack::tree::HoeffdingTree</a>< FitnessFunction, NumericSplitType, CategoricalSplitType >::successProbability</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The required probability of success for a split to be performed. </p>
|
|
|
|
<p>Definition at line <a class="el" href="hoeffding__tree_8hpp_source.html#l00319">319</a> of file <a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a>.</p>
|
|
|
|
<p>Referenced by <a class="el" href="hoeffding__tree_8hpp_source.html#l00202">mlpack::tree::HoeffdingTree< FitnessFunction, NumericSplitType, CategoricalSplitType >::SuccessProbability()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>src/mlpack/methods/hoeffding_trees/<a class="el" href="hoeffding__tree_8hpp_source.html">hoeffding_tree.hpp</a></li>
|
|
</ul>
|
|
</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>
|