Files
mlpack/doc/html/dt__utils_8hpp.html
T

168 lines
12 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>mlpack: src/mlpack/methods/det/dt_utils.hpp File 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
&#160;<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&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_44a936ef30fc126706c6284a2fc0c990.html">mlpack</a></li><li class="navelem"><a class="el" href="dir_3cfbf900288ec2fe8dd2c2c8482f216e.html">methods</a></li><li class="navelem"><a class="el" href="dir_829fd86abfc32d55a3f25eeda79942f5.html">det</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">dt_utils.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
Include dependency graph for dt_utils.hpp:</div>
<div class="dyncontent">
<div class="center"><img src="dt__utils_8hpp__incl.png" border="0" usemap="#src_2mlpack_2methods_2det_2dt__utils_8hpp" alt=""/></div>
<map name="src_2mlpack_2methods_2det_2dt__utils_8hpp" id="src_2mlpack_2methods_2det_2dt__utils_8hpp">
<area shape="rect" id="node2" href="prereqs_8hpp.html" title="The core includes that mlpack expects; standard C++ includes and Armadillo. " alt="" coords="1135,169,1271,196"/>
<area shape="rect" id="node39" href="dtree_8hpp.html" title="dtree.hpp" alt="" coords="1241,95,1317,121"/>
<area shape="rect" id="node19" href="serialization__shim_8hpp.html" title="mlpack/core/data/serialization\l_shim.hpp" alt="" coords="1475,244,1669,285"/>
<area shape="rect" id="node23" href="serialization__template__version_8hpp.html" title="mlpack/core/data/serialization\l_template_version.hpp" alt="" coords="2236,244,2431,285"/>
<area shape="rect" id="node25" href="arma__traits_8hpp.html" title="mlpack/core/util/arma\l_traits.hpp" alt="" coords="2652,244,2799,285"/>
<area shape="rect" id="node26" href="arma__config__check_8hpp.html" title="mlpack/core/util/arma\l_config_check.hpp" alt="" coords="2823,244,2969,285"/>
<area shape="rect" id="node28" href="log_8hpp.html" title="mlpack/core/util/log.hpp" alt="" coords="725,251,885,278"/>
<area shape="rect" id="node35" href="timers_8hpp.html" title="mlpack/core/util/timers.hpp" alt="" coords="960,251,1139,278"/>
<area shape="rect" id="node38" href="deprecated_8hpp.html" title="mlpack/core/util/deprecated.hpp" alt="" coords="2994,251,3201,278"/>
<area shape="rect" id="node20" href="sfinae__utility_8hpp.html" title="mlpack/core/util/sfinae\l_utility.hpp" alt="" coords="1631,333,1785,375"/>
<area shape="rect" id="node27" href="arma__config_8hpp.html" title="This is an autogenerated file which contains the configuration of Armadillo at the time mlpack was bu..." alt="" coords="2837,341,2955,367"/>
<area shape="rect" id="node31" href="prefixedoutstream_8hpp.html" title="prefixedoutstream.hpp" alt="" coords="898,341,1049,367"/>
<area shape="rect" id="node33" href="nulloutstream_8hpp.html" title="nulloutstream.hpp" alt="" coords="697,341,823,367"/>
</map>
</div>
</div>
<p><a href="dt__utils_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacemlpack"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlpack.html">mlpack</a></td></tr>
<tr class="memdesc:namespacemlpack"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear algebra utility functions, generally performed on matrices or vectors. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacemlpack_1_1det"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemlpack_1_1det.html">mlpack::det</a></td></tr>
<tr class="memdesc:namespacemlpack_1_1det"><td class="mdescLeft">&#160;</td><td class="mdescRight">Density Estimation Trees. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af87956fd1b9ecdbe6736a570e05f1df3"><td class="memTemplParams" colspan="2">template&lt;typename MatType , typename TagType &gt; </td></tr>
<tr class="memitem:af87956fd1b9ecdbe6736a570e05f1df3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlpack_1_1det.html#af87956fd1b9ecdbe6736a570e05f1df3">mlpack::det::PrintLeafMembership</a> (DTree&lt; MatType, TagType &gt; *dtree, const MatType &amp;data, const arma::Mat&lt; size_t &gt; &amp;labels, const size_t numClasses, const <a class="el" href="bindings_2matlab_2CMakeLists_8txt.html#acb14fd14ddd837abe9630e0d8a43703b">std::string</a> leafClassMembershipFile=&quot;&quot;)</td></tr>
<tr class="memdesc:af87956fd1b9ecdbe6736a570e05f1df3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the membership of leaves of a density estimation tree given the labels and number of classes. <a href="namespacemlpack_1_1det.html#af87956fd1b9ecdbe6736a570e05f1df3">More...</a><br /></td></tr>
<tr class="separator:af87956fd1b9ecdbe6736a570e05f1df3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac64804c6c73b842b3eb69d9a64fb12e3"><td class="memTemplParams" colspan="2">template&lt;typename MatType , typename TagType &gt; </td></tr>
<tr class="memitem:ac64804c6c73b842b3eb69d9a64fb12e3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlpack_1_1det.html#ac64804c6c73b842b3eb69d9a64fb12e3">mlpack::det::PrintVariableImportance</a> (const DTree&lt; MatType, TagType &gt; *dtree, const <a class="el" href="bindings_2matlab_2CMakeLists_8txt.html#acb14fd14ddd837abe9630e0d8a43703b">std::string</a> viFile=&quot;&quot;)</td></tr>
<tr class="memdesc:ac64804c6c73b842b3eb69d9a64fb12e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the variable importance of each dimension of a density estimation tree. <a href="namespacemlpack_1_1det.html#ac64804c6c73b842b3eb69d9a64fb12e3">More...</a><br /></td></tr>
<tr class="separator:ac64804c6c73b842b3eb69d9a64fb12e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87869f8ef3c28bc04f5cdb62bf415f17"><td class="memTemplParams" colspan="2">template&lt;typename MatType , typename TagType &gt; </td></tr>
<tr class="memitem:a87869f8ef3c28bc04f5cdb62bf415f17"><td class="memTemplItemLeft" align="right" valign="top">DTree&lt; MatType, TagType &gt; *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemlpack_1_1det.html#a87869f8ef3c28bc04f5cdb62bf415f17">mlpack::det::Trainer</a> (MatType &amp;dataset, const size_t folds, const bool useVolumeReg=false, const size_t maxLeafSize=10, const size_t minLeafSize=5, const <a class="el" href="bindings_2matlab_2CMakeLists_8txt.html#acb14fd14ddd837abe9630e0d8a43703b">std::string</a> unprunedTreeOutput=&quot;&quot;)</td></tr>
<tr class="memdesc:a87869f8ef3c28bc04f5cdb62bf415f17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Train the optimal decision tree using cross-validation with the given number of folds. <a href="namespacemlpack_1_1det.html#a87869f8ef3c28bc04f5cdb62bf415f17">More...</a><br /></td></tr>
<tr class="separator:a87869f8ef3c28bc04f5cdb62bf415f17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Parikshit Ram (<a href="#" onclick="location.href='mai'+'lto:'+'pra'+'m@'+'cc.'+'ga'+'tec'+'h.'+'edu'; return false;">pram@<span style="display: none;">.nosp@m.</span>cc.g<span style="display: none;">.nosp@m.</span>atech<span style="display: none;">.nosp@m.</span>.edu</a>)</dd></dl>
<p>This file implements functions to perform different tasks with the Density Tree class.</p>
<p>mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see <a href="http://www.opensource.org/licenses/BSD-3-Clause">http://www.opensource.org/licenses/BSD-3-Clause</a> for more information. </p>
<p>Definition in file <a class="el" href="dt__utils_8hpp_source.html">dt_utils.hpp</a>.</p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<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>