| <!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 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 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 Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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"> </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 </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> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </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"> </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> </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> </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"> </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> </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 numCategories, |
| int numFeatures, |
| <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a> 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 numCategories, |
| int numFeatures, |
| <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a> prior, |
| int threadCount, |
| int poolSize)</code> </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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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><<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>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getBest--">getBest</a></span>()</code> </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><<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getBuffer--">getBuffer</a></span>()</code> </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><<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>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getEp--">getEp</a></span>()</code> </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> </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> </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> </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> </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> </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> </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><<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>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.html#getSeed--">getSeed</a></span>()</code> </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 recordNumber)</code> </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> in)</code> </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> auc)</code> </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 averagingWindow)</code> </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><<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>> best)</code> </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><<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>> buffer)</code> </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><<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>> ep)</code> </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 freezeSurvivors)</code> </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 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 minInterval, |
| int 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 poolSize)</code> </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 record)</code> </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><<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>> seed)</code> </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 threadCount)</code> </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 recordNumber, |
| double multiplier)</code> </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 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> 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 trackingKey, |
| int 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> 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 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> groupKey, |
| int 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> 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> out)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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 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 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 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 AdaptiveLogisticRegression(int numCategories, |
| int numFeatures, |
| <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a> 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 AdaptiveLogisticRegression(int numCategories, |
| int numFeatures, |
| <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a> prior, |
| int threadCount, |
| int 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 void train(int 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> instance)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <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> in interface <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 void train(long trackingKey, |
| int 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> instance)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <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> in interface <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 void train(long 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> groupKey, |
| int 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> instance)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <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> in interface <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 int nextStep(int recordNumber)</pre> |
| </li> |
| </ul> |
| <a name="stepSize-int-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stepSize</h4> |
| <pre>public static int stepSize(int recordNumber, |
| double multiplier)</pre> |
| </li> |
| </ul> |
| <a name="close--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre>public void close()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <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> in interface <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> in interface <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> in interface <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 void setInterval(int 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 void setInterval(int minInterval, |
| int 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 void setPoolSize(int poolSize)</pre> |
| </li> |
| </ul> |
| <a name="setThreadCount-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setThreadCount</h4> |
| <pre>public void setThreadCount(int 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 void setAucEvaluator(<a href="../../../../../org/apache/mahout/math/stats/OnlineAuc.html" title="interface in org.apache.mahout.math.stats">OnlineAuc</a> auc)</pre> |
| </li> |
| </ul> |
| <a name="numFeatures--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numFeatures</h4> |
| <pre>public int 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 double 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 <a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a><<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>> getBest()</pre> |
| </li> |
| </ul> |
| <a name="setBest-org.apache.mahout.ep.State-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBest</h4> |
| <pre>public void setBest(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a><<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>> best)</pre> |
| </li> |
| </ul> |
| <a name="getRecord--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRecord</h4> |
| <pre>public int getRecord()</pre> |
| </li> |
| </ul> |
| <a name="setRecord-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRecord</h4> |
| <pre>public void setRecord(int record)</pre> |
| </li> |
| </ul> |
| <a name="getMinInterval--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMinInterval</h4> |
| <pre>public int getMinInterval()</pre> |
| </li> |
| </ul> |
| <a name="getMaxInterval--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMaxInterval</h4> |
| <pre>public int getMaxInterval()</pre> |
| </li> |
| </ul> |
| <a name="getNumCategories--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumCategories</h4> |
| <pre>public int getNumCategories()</pre> |
| </li> |
| </ul> |
| <a name="getPrior--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPrior</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/classifier/sgd/PriorFunction.html" title="interface in org.apache.mahout.classifier.sgd">PriorFunction</a> getPrior()</pre> |
| </li> |
| </ul> |
| <a name="setBuffer-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBuffer</h4> |
| <pre>public void 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><<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>> buffer)</pre> |
| </li> |
| </ul> |
| <a name="getBuffer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBuffer</h4> |
| <pre>public <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><<a href="../../../../../org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.TrainingExample.html" title="class in org.apache.mahout.classifier.sgd">AdaptiveLogisticRegression.TrainingExample</a>> getBuffer()</pre> |
| </li> |
| </ul> |
| <a name="getEp--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEp</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a><<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>> getEp()</pre> |
| </li> |
| </ul> |
| <a name="setEp-org.apache.mahout.ep.EvolutionaryProcess-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEp</h4> |
| <pre>public void setEp(<a href="../../../../../org/apache/mahout/ep/EvolutionaryProcess.html" title="class in org.apache.mahout.ep">EvolutionaryProcess</a><<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>> ep)</pre> |
| </li> |
| </ul> |
| <a name="getSeed--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSeed</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a><<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>> getSeed()</pre> |
| </li> |
| </ul> |
| <a name="setSeed-org.apache.mahout.ep.State-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSeed</h4> |
| <pre>public void setSeed(<a href="../../../../../org/apache/mahout/ep/State.html" title="class in org.apache.mahout.ep">State</a><<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>> seed)</pre> |
| </li> |
| </ul> |
| <a name="getNumFeatures--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumFeatures</h4> |
| <pre>public int getNumFeatures()</pre> |
| </li> |
| </ul> |
| <a name="setAveragingWindow-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAveragingWindow</h4> |
| <pre>public void setAveragingWindow(int averagingWindow)</pre> |
| </li> |
| </ul> |
| <a name="setFreezeSurvivors-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFreezeSurvivors</h4> |
| <pre>public void setFreezeSurvivors(boolean freezeSurvivors)</pre> |
| </li> |
| </ul> |
| <a name="write-java.io.DataOutput-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>write</h4> |
| <pre>public void 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> 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> in interface <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 void 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> 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> in interface <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 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 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 Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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 © 2008–2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |