blob: 522dbbc9a822c8c0323c9038de0b5482c5d79d4d [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:36 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AdaptiveLogisticRegression (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="AdaptiveLogisticRegression (Mahout Map-Reduce 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":9,"i28":10,"i29":10,"i30":10,"i31":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</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><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AdaptiveLogisticRegression.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/sgd/AbstractOnlineLogisticRegression.html" title="class in org.apache.mahout.classifier.sgd"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html" target="_top">Frames</a></li>
<li><a href="AdaptiveLogisticRegression.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>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.mahout.classifier.sgd</div>
<h2 title="Class AdaptiveLogisticRegression" class="title">Class AdaptiveLogisticRegression</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.classifier.sgd.AdaptiveLogisticRegression</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, org.apache.hadoop.io.Writable, <a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">AdaptiveLogisticRegression</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a>, org.apache.hadoop.io.Writable</pre>
<div class="block">This is a meta-learner that maintains a pool of ordinary
<a href="../../../../../org/apache/mahout/classifier/sgd/OnlineLogisticRegression.html" title="class in org.apache.mahout.classifier.sgd"><code>OnlineLogisticRegression</code></a> learners. Each
member of the pool has different learning rates. Whichever of the learners in the pool falls
behind in terms of average log-likelihood will be tossed out and replaced with variants of the
survivors. This will let us automatically derive an annealing schedule that optimizes learning
speed. Since on-line learners tend to be IO bound anyway, it doesn't cost as much as it might
seem that it would to maintain multiple learners in memory. Doing this adaptation on-line as we
learn also decreases the number of learning rate parameters required and replaces the normal
hyper-parameter search.
<p/>
One wrinkle is that the pool of learners that we maintain is actually a pool of
<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd"><code>CrossFoldLearner</code></a> which themselves contain several OnlineLogisticRegression
objects. These pools allow estimation
of performance on the fly even if we make many passes through the data. This does, however,
increase the cost of training since if we are using 5-fold cross-validation, each vector is used
4 times for training and once for classification. If this becomes a problem, then we should
probably use a 2-way unbalanced train/test split rather than full cross validation. With the
current default settings, we have 100 learners running. This is better than the alternative of
running hundreds of training passes to find good hyper-parameters because we only have to parse
and feature-ize our inputs once. If you already have good hyper-parameters, then you might
prefer to just run one CrossFoldLearner with those settings.
<p/>
The fitness used here is AUC. Another alternative would be to try log-likelihood, but it is much
easier to get bogus values of log-likelihood than with AUC and the results seem to accord pretty
well. It would be nice to allow the fitness function to be pluggable. This use of AUC means that
AdaptiveLogisticRegression is mostly suited for binary target variables. This will be fixed
before long by extending OnlineAuc to handle non-binary cases or by using a different fitness
value in non-binary cases.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a></span></code>
<div class="block">Provides a shim between the EP optimization stuff and the CrossFoldLearner.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_POOL_SIZE">DEFAULT_POOL_SIZE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_THREAD_COUNT">DEFAULT_THREAD_COUNT</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#AdaptiveLogisticRegression--">AdaptiveLogisticRegression</a></span>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#AdaptiveLogisticRegression-int-int-org.apache.mahout.classifier.sgd.PriorFunction-">AdaptiveLogisticRegression</a></span>(int&nbsp;numCategories,
int&nbsp;numFeatures,
<a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a>&nbsp;prior)</code>
<div class="block">Uses <a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_THREAD_COUNT"><code>DEFAULT_THREAD_COUNT</code></a> and <a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_POOL_SIZE"><code>DEFAULT_POOL_SIZE</code></a></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#AdaptiveLogisticRegression-int-int-org.apache.mahout.classifier.sgd.PriorFunction-int-int-">AdaptiveLogisticRegression</a></span>(int&nbsp;numCategories,
int&nbsp;numFeatures,
<a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a>&nbsp;prior,
int&nbsp;threadCount,
int&nbsp;poolSize)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#auc--">auc</a></span>()</code>
<div class="block">What is the AUC for the current best member of the population.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#close--">close</a></span>()</code>
<div class="block">Prepares the classifier for classification and deallocates any temporary data structures.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getBest--">getBest</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getBuffer--">getBuffer</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getEp--">getEp</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getMaxInterval--">getMaxInterval</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getMinInterval--">getMinInterval</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getNumCategories--">getNumCategories</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getNumFeatures--">getNumFeatures</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getPrior--">getPrior</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getRecord--">getRecord</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getSeed--">getSeed</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#nextStep-int-">nextStep</a></span>(int&nbsp;recordNumber)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#numFeatures--">numFeatures</a></span>()</code>
<div class="block">Returns the size of the internal feature vector.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#readFields-java.io.DataInput-">readFields</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setAucEvaluator-org.apache.mahout.math.stats.OnlineAuc-">setAucEvaluator</a></span>(<a href="../../../../../org/apache/mahout/math/stats/OnlineAuc.html" title="interface in org.apache.mahout.math.stats">OnlineAuc</a>&nbsp;auc)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setAveragingWindow-int-">setAveragingWindow</a></span>(int&nbsp;averagingWindow)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setBest-org.apache.mahout.ep.State-">setBest</a></span>(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;best)</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setBuffer-java.util.List-">setBuffer</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>&gt;&nbsp;buffer)</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setEp-org.apache.mahout.ep.EvolutionaryProcess-">setEp</a></span>(<a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;ep)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setFreezeSurvivors-boolean-">setFreezeSurvivors</a></span>(boolean&nbsp;freezeSurvivors)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setInterval-int-">setInterval</a></span>(int&nbsp;interval)</code>
<div class="block">How often should the evolutionary optimization of learning parameters occur?</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setInterval-int-int-">setInterval</a></span>(int&nbsp;minInterval,
int&nbsp;maxInterval)</code>
<div class="block">Starts optimization using the shorter interval and progresses to the longer using the specified
number of steps per decade.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setPoolSize-int-">setPoolSize</a></span>(int&nbsp;poolSize)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setRecord-int-">setRecord</a></span>(int&nbsp;record)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setSeed-org.apache.mahout.ep.State-">setSeed</a></span>(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;seed)</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#setThreadCount-int-">setThreadCount</a></span>(int&nbsp;threadCount)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#stepSize-int-double-">stepSize</a></span>(int&nbsp;recordNumber,
double&nbsp;multiplier)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#train-int-org.apache.mahout.math.Vector-">train</a></span>(int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</code>
<div class="block">Updates the model using a particular target variable value and a feature vector.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#train-long-int-org.apache.mahout.math.Vector-">train</a></span>(long&nbsp;trackingKey,
int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</code>
<div class="block">Updates the model using a particular target variable value and a feature vector.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#train-long-java.lang.String-int-org.apache.mahout.math.Vector-">train</a></span>(long&nbsp;trackingKey,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;groupKey,
int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</code>
<div class="block">Updates the model using a particular target variable value and a feature vector.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#write-java.io.DataOutput-">write</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DEFAULT_THREAD_COUNT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_THREAD_COUNT</h4>
<pre>public static final&nbsp;int DEFAULT_THREAD_COUNT</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.classifier.sgd.AdaptiveLogisticRegression.DEFAULT_THREAD_COUNT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_POOL_SIZE">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DEFAULT_POOL_SIZE</h4>
<pre>public static final&nbsp;int DEFAULT_POOL_SIZE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.classifier.sgd.AdaptiveLogisticRegression.DEFAULT_POOL_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="AdaptiveLogisticRegression--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AdaptiveLogisticRegression</h4>
<pre>public&nbsp;AdaptiveLogisticRegression()</pre>
</li>
</ul>
<a name="AdaptiveLogisticRegression-int-int-org.apache.mahout.classifier.sgd.PriorFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AdaptiveLogisticRegression</h4>
<pre>public&nbsp;AdaptiveLogisticRegression(int&nbsp;numCategories,
int&nbsp;numFeatures,
<a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a>&nbsp;prior)</pre>
<div class="block">Uses <a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_THREAD_COUNT"><code>DEFAULT_THREAD_COUNT</code></a> and <a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#DEFAULT_POOL_SIZE"><code>DEFAULT_POOL_SIZE</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numCategories</code> - The number of categories (labels) to train on</dd>
<dd><code>numFeatures</code> - The number of features used in creating the vectors (i.e. the cardinality of the vector)</dd>
<dd><code>prior</code> - The <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd"><code>PriorFunction</code></a> to use</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#AdaptiveLogisticRegression-int-int-org.apache.mahout.classifier.sgd.PriorFunction-int-int-"><code>AdaptiveLogisticRegression(int, int, org.apache.mahout.classifier.sgd.PriorFunction, int, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="AdaptiveLogisticRegression-int-int-org.apache.mahout.classifier.sgd.PriorFunction-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AdaptiveLogisticRegression</h4>
<pre>public&nbsp;AdaptiveLogisticRegression(int&nbsp;numCategories,
int&nbsp;numFeatures,
<a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a>&nbsp;prior,
int&nbsp;threadCount,
int&nbsp;poolSize)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numCategories</code> - The number of categories (labels) to train on</dd>
<dd><code>numFeatures</code> - The number of features used in creating the vectors (i.e. the cardinality of the vector)</dd>
<dd><code>prior</code> - The <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd"><code>PriorFunction</code></a> to use</dd>
<dd><code>threadCount</code> - The number of threads to use for training</dd>
<dd><code>poolSize</code> - The number of <a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd"><code>CrossFoldLearner</code></a> to use.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="train-int-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>train</h4>
<pre>public&nbsp;void&nbsp;train(int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-int-org.apache.mahout.math.Vector-">OnlineLearner</a></code></span></div>
<div class="block">Updates the model using a particular target variable value and a feature vector.
<p/>
There may an assumption that if multiple passes through the training data are necessary, then
the training examples will be presented in the same order. This is because the order of
training examples may be used to assign records to different data splits for evaluation by
cross-validation. Without the order invariance, records might be assigned to training and test
splits and error estimates could be seriously affected.
<p/>
If re-ordering is necessary, then using the alternative API which allows a tracking key to be
added to the training example can be used.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-int-org.apache.mahout.math.Vector-">train</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>actual</code> - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.</dd>
<dd><code>instance</code> - The feature vector for this example.</dd>
</dl>
</li>
</ul>
<a name="train-long-int-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>train</h4>
<pre>public&nbsp;void&nbsp;train(long&nbsp;trackingKey,
int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-long-int-org.apache.mahout.math.Vector-">OnlineLearner</a></code></span></div>
<div class="block">Updates the model using a particular target variable value and a feature vector.
<p/>
There may an assumption that if multiple passes through the training data are necessary that
the tracking key for a record will be the same for each pass and that there will be a
relatively large number of distinct tracking keys and that the low-order bits of the tracking
keys will not correlate with any of the input variables. This tracking key is used to assign
training examples to different test/training splits.
<p/>
Examples of useful tracking keys include id-numbers for the training records derived from
a database id for the base table from the which the record is derived, or the offset of
the original data record in a data file.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-long-int-org.apache.mahout.math.Vector-">train</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>trackingKey</code> - The tracking key for this training example.</dd>
<dd><code>actual</code> - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.</dd>
<dd><code>instance</code> - The feature vector for this example.</dd>
</dl>
</li>
</ul>
<a name="train-long-java.lang.String-int-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>train</h4>
<pre>public&nbsp;void&nbsp;train(long&nbsp;trackingKey,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;groupKey,
int&nbsp;actual,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;instance)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-long-java.lang.String-int-org.apache.mahout.math.Vector-">OnlineLearner</a></code></span></div>
<div class="block">Updates the model using a particular target variable value and a feature vector.
<p/>
There may an assumption that if multiple passes through the training data are necessary that
the tracking key for a record will be the same for each pass and that there will be a
relatively large number of distinct tracking keys and that the low-order bits of the tracking
keys will not correlate with any of the input variables. This tracking key is used to assign
training examples to different test/training splits.
<p/>
Examples of useful tracking keys include id-numbers for the training records derived from
a database id for the base table from the which the record is derived, or the offset of
the original data record in a data file.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#train-long-java.lang.String-int-org.apache.mahout.math.Vector-">train</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>trackingKey</code> - The tracking key for this training example.</dd>
<dd><code>groupKey</code> - An optional value that allows examples to be grouped in the computation of
the update to the model.</dd>
<dd><code>actual</code> - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.</dd>
<dd><code>instance</code> - The feature vector for this example.</dd>
</dl>
</li>
</ul>
<a name="nextStep-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nextStep</h4>
<pre>public&nbsp;int&nbsp;nextStep(int&nbsp;recordNumber)</pre>
</li>
</ul>
<a name="stepSize-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stepSize</h4>
<pre>public static&nbsp;int&nbsp;stepSize(int&nbsp;recordNumber,
double&nbsp;multiplier)</pre>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#close--">OnlineLearner</a></code></span></div>
<div class="block">Prepares the classifier for classification and deallocates any temporary data structures.
An online classifier should be able to accept more training after being closed, but
closing the classifier may make classification more efficient.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io">close</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html#close--">close</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/mahout/classifier/OnlineLearner.html" title="interface in org.apache.mahout.classifier">OnlineLearner</a></code></dd>
</dl>
</li>
</ul>
<a name="setInterval-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInterval</h4>
<pre>public&nbsp;void&nbsp;setInterval(int&nbsp;interval)</pre>
<div class="block">How often should the evolutionary optimization of learning parameters occur?</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>interval</code> - Number of training examples to use in each epoch of optimization.</dd>
</dl>
</li>
</ul>
<a name="setInterval-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInterval</h4>
<pre>public&nbsp;void&nbsp;setInterval(int&nbsp;minInterval,
int&nbsp;maxInterval)</pre>
<div class="block">Starts optimization using the shorter interval and progresses to the longer using the specified
number of steps per decade. Note that values < 200 are not accepted. Values even that small
are unlikely to be useful.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minInterval</code> - The minimum epoch length for the evolutionary optimization</dd>
<dd><code>maxInterval</code> - The maximum epoch length</dd>
</dl>
</li>
</ul>
<a name="setPoolSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPoolSize</h4>
<pre>public final&nbsp;void&nbsp;setPoolSize(int&nbsp;poolSize)</pre>
</li>
</ul>
<a name="setThreadCount-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setThreadCount</h4>
<pre>public&nbsp;void&nbsp;setThreadCount(int&nbsp;threadCount)</pre>
</li>
</ul>
<a name="setAucEvaluator-org.apache.mahout.math.stats.OnlineAuc-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAucEvaluator</h4>
<pre>public&nbsp;void&nbsp;setAucEvaluator(<a href="../../../../../org/apache/mahout/math/stats/OnlineAuc.html" title="interface in org.apache.mahout.math.stats">OnlineAuc</a>&nbsp;auc)</pre>
</li>
</ul>
<a name="numFeatures--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numFeatures</h4>
<pre>public&nbsp;int&nbsp;numFeatures()</pre>
<div class="block">Returns the size of the internal feature vector. Note that this is not the same as the number
of distinct features, especially if feature hashing is being used.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The internal feature vector size.</dd>
</dl>
</li>
</ul>
<a name="auc--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>auc</h4>
<pre>public&nbsp;double&nbsp;auc()</pre>
<div class="block">What is the AUC for the current best member of the population. If no member is best, usually
because we haven't done any training yet, then the result is set to NaN.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The AUC of the best member of the population or NaN if we can't figure that out.</dd>
</dl>
</li>
</ul>
<a name="getBest--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBest</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;getBest()</pre>
</li>
</ul>
<a name="setBest-org.apache.mahout.ep.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBest</h4>
<pre>public&nbsp;void&nbsp;setBest(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;best)</pre>
</li>
</ul>
<a name="getRecord--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRecord</h4>
<pre>public&nbsp;int&nbsp;getRecord()</pre>
</li>
</ul>
<a name="setRecord-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRecord</h4>
<pre>public&nbsp;void&nbsp;setRecord(int&nbsp;record)</pre>
</li>
</ul>
<a name="getMinInterval--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinInterval</h4>
<pre>public&nbsp;int&nbsp;getMinInterval()</pre>
</li>
</ul>
<a name="getMaxInterval--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxInterval</h4>
<pre>public&nbsp;int&nbsp;getMaxInterval()</pre>
</li>
</ul>
<a name="getNumCategories--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumCategories</h4>
<pre>public&nbsp;int&nbsp;getNumCategories()</pre>
</li>
</ul>
<a name="getPrior--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrior</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a>&nbsp;getPrior()</pre>
</li>
</ul>
<a name="setBuffer-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBuffer</h4>
<pre>public&nbsp;void&nbsp;setBuffer(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>&gt;&nbsp;buffer)</pre>
</li>
</ul>
<a name="getBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBuffer</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>&gt;&nbsp;getBuffer()</pre>
</li>
</ul>
<a name="getEp--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEp</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;getEp()</pre>
</li>
</ul>
<a name="setEp-org.apache.mahout.ep.EvolutionaryProcess-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEp</h4>
<pre>public&nbsp;void&nbsp;setEp(<a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;ep)</pre>
</li>
</ul>
<a name="getSeed--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeed</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;getSeed()</pre>
</li>
</ul>
<a name="setSeed-org.apache.mahout.ep.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSeed</h4>
<pre>public&nbsp;void&nbsp;setSeed(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a>&lt;<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.Wrapper.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.Wrapper</a>,<a href="../../../../../org/apache/mahout/classifier/sgd/CrossFoldLearner.html" title="class in org.apache.mahout.classifier.sgd">CrossFoldLearner</a>&gt;&nbsp;seed)</pre>
</li>
</ul>
<a name="getNumFeatures--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumFeatures</h4>
<pre>public&nbsp;int&nbsp;getNumFeatures()</pre>
</li>
</ul>
<a name="setAveragingWindow-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAveragingWindow</h4>
<pre>public&nbsp;void&nbsp;setAveragingWindow(int&nbsp;averagingWindow)</pre>
</li>
</ul>
<a name="setFreezeSurvivors-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFreezeSurvivors</h4>
<pre>public&nbsp;void&nbsp;setFreezeSurvivors(boolean&nbsp;freezeSurvivors)</pre>
</li>
</ul>
<a name="write-java.io.DataOutput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;void&nbsp;write(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>write</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.io.Writable</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="readFields-java.io.DataInput-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>readFields</h4>
<pre>public&nbsp;void&nbsp;readFields(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>readFields</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.io.Writable</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= 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><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AdaptiveLogisticRegression.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/sgd/AbstractOnlineLogisticRegression.html" title="class in org.apache.mahout.classifier.sgd"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html" target="_top">Frames</a></li>
<li><a href="AdaptiveLogisticRegression.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>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</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>