blob: f11b8fe81053869cb662d0a1d05fbc9ab3670ff9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:11:37 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.apache.mahout.classifier.df.mapreduce.inmem (Mahout Map-Reduce 0.13.0 API)</title>
<meta name="date" content="2017-04-14">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.mahout.classifier.df.mapreduce.inmem (Mahout Map-Reduce 0.13.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/partial/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/mahout/classifier/df/mapreduce/inmem/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package&nbsp;org.apache.mahout.classifier.df.mapreduce.inmem</h1>
<div class="docSummary">
<div class="block">In-memory mapreduce implementation of Random Decision Forests</div>
</div>
<p>See:&nbsp;<a href="#package.description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemBuilder.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem">InMemBuilder</a></td>
<td class="colLast">Deprecated</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemInputFormat.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem">InMemInputFormat</a></td>
<td class="colLast">Deprecated</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemInputFormat.InMemInputSplit.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem">InMemInputFormat.InMemInputSplit</a></td>
<td class="colLast">
<div class="block">Custom InputSplit that indicates how many trees are built by each mapper</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemInputFormat.InMemRecordReader.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem">InMemInputFormat.InMemRecordReader</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemMapper.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem">InMemMapper</a></td>
<td class="colLast">Deprecated</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package.description">
<!-- -->
</a>
<h2 title="Package org.apache.mahout.classifier.df.mapreduce.inmem Description">Package org.apache.mahout.classifier.df.mapreduce.inmem Description</h2>
<div class="block"><h2>In-memory mapreduce implementation of Random Decision Forests</h2>
<p>Each mapper is responsible for growing a number of trees with a whole copy of the dataset loaded in memory,
it uses the reference implementation's code to build each tree and estimate the oob error.</p>
<p>The dataset is distributed to the slave nodes using the <code>DistributedCache</code>.
A custom <code>InputFormat</code>
(<a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemInputFormat.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem"><code>InMemInputFormat</code></a>) is configured with the
desired number of trees and generates a number of <code>InputSplit</code>s
equal to the configured number of maps.</p>
<p>There is no need for reducers, each map outputs (the trees it built and, for each tree, the labels the
tree predicted for each out-of-bag instance. This step has to be done in the mapper because only there we
know which instances are o-o-b.</p>
<p>The Forest builder (<a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/inmem/InMemBuilder.html" title="class in org.apache.mahout.classifier.df.mapreduce.inmem"><code>InMemBuilder</code></a>) is responsible
for configuring and launching the job.
At the end of the job it parses the output files and builds the corresponding
<a href="../../../../../../../org/apache/mahout/classifier/df/DecisionForest.html" title="class in org.apache.mahout.classifier.df"><code>DecisionForest</code></a>.</p></div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../../../org/apache/mahout/classifier/df/mapreduce/partial/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/mahout/classifier/df/mapreduce/inmem/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>