blob: 94e73528e3b2fe9e6ddada043b85118593cacbfa [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:35 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ParallelSGDFactorizer (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="ParallelSGDFactorizer (Mahout Map-Reduce 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10};
var tabs = {65535:["t0","All 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/ParallelSGDFactorizer.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/cf/taste/impl/recommender/svd/NoPersistenceStrategy.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.PreferenceShuffler.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html" target="_top">Frames</a></li>
<li><a href="ParallelSGDFactorizer.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.cf.taste.impl.recommender.svd</div>
<h2 title="Class ParallelSGDFactorizer" class="title">Class ParallelSGDFactorizer</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><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">org.apache.mahout.cf.taste.impl.recommender.svd.AbstractFactorizer</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.cf.taste.impl.recommender.svd.ParallelSGDFactorizer</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common">Refreshable</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/Factorizer.html" title="interface in org.apache.mahout.cf.taste.impl.recommender.svd">Factorizer</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ParallelSGDFactorizer</span>
extends <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">AbstractFactorizer</a></pre>
<div class="block">Minimalistic implementation of Parallel SGD factorizer based on
<a href="http://www.sze.hu/~gtakacs/download/jmlr_2009.pdf">
"Scalable Collaborative Filtering Approaches for Large Recommender Systems"</a>
and
<a href="hwww.cs.wisc.edu/~brecht/papers/hogwildTR.pdf">
"Hogwild!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent"</a></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>protected static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.PreferenceShuffler.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">ParallelSGDFactorizer.PreferenceShuffler</a></span></code>&nbsp;</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>protected double[][]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#itemVectors">itemVectors</a></span></code>
<div class="block">item features</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected double[][]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#userVectors">userVectors</a></span></code>
<div class="block">user features</div>
</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/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-">ParallelSGDFactorizer</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numEpochs)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-">ParallelSGDFactorizer</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-double-double-">ParallelSGDFactorizer</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
double&nbsp;biasMuRatio,
double&nbsp;biasLambdaRatio)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-double-double-int-">ParallelSGDFactorizer</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
double&nbsp;biasMuRatio,
double&nbsp;biasLambdaRatio,
int&nbsp;numThreads)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-int-">ParallelSGDFactorizer</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
int&nbsp;numThreads)</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="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><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/Factorization.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">Factorization</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#factorize--">factorize</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#initialize--">initialize</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html#update-org.apache.mahout.cf.taste.model.Preference-double-">update</a></span>(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/Preference.html" title="interface in org.apache.mahout.cf.taste.model">Preference</a>&nbsp;preference,
double&nbsp;mu)</code>
<div class="block">TODO: this is the vanilla sgd by Tacaks 2009, I speculate that using scaling technique proposed in:
Towards Optimal One Pass Large Scale Learning with Averaged Stochastic Gradient Descent section 5, page 6
can be beneficial in term s of both speed and accuracy.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.impl.recommender.svd.AbstractFactorizer">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.cf.taste.impl.recommender.svd.<a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">AbstractFactorizer</a></h3>
<code><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html#createFactorization-double:A:A-double:A:A-">createFactorization</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html#itemIndex-long-">itemIndex</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html#refresh-java.util.Collection-">refresh</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/AbstractFactorizer.html#userIndex-long-">userIndex</a></code></li>
</ul>
<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="userVectors">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>userVectors</h4>
<pre>protected volatile&nbsp;double[][] userVectors</pre>
<div class="block">user features</div>
</li>
</ul>
<a name="itemVectors">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>itemVectors</h4>
<pre>protected volatile&nbsp;double[][] itemVectors</pre>
<div class="block">item features</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ParallelSGDFactorizer</h4>
<pre>public&nbsp;ParallelSGDFactorizer(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numEpochs)
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ParallelSGDFactorizer</h4>
<pre>public&nbsp;ParallelSGDFactorizer(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent)
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ParallelSGDFactorizer</h4>
<pre>public&nbsp;ParallelSGDFactorizer(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
int&nbsp;numThreads)
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-double-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ParallelSGDFactorizer</h4>
<pre>public&nbsp;ParallelSGDFactorizer(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
double&nbsp;biasMuRatio,
double&nbsp;biasLambdaRatio)
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="ParallelSGDFactorizer-org.apache.mahout.cf.taste.model.DataModel-int-double-int-double-double-int-double-double-double-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ParallelSGDFactorizer</h4>
<pre>public&nbsp;ParallelSGDFactorizer(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
int&nbsp;numFeatures,
double&nbsp;lambda,
int&nbsp;numIterations,
double&nbsp;mu0,
double&nbsp;decayFactor,
int&nbsp;stepOffset,
double&nbsp;forgettingExponent,
double&nbsp;biasMuRatio,
double&nbsp;biasLambdaRatio,
int&nbsp;numThreads)
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></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="initialize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initialize</h4>
<pre>protected&nbsp;void&nbsp;initialize()
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="factorize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>factorize</h4>
<pre>public&nbsp;<a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/Factorization.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd">Factorization</a>&nbsp;factorize()
throws <a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code></dd>
</dl>
</li>
</ul>
<a name="update-org.apache.mahout.cf.taste.model.Preference-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>update</h4>
<pre>protected&nbsp;void&nbsp;update(<a href="../../../../../../../../org/apache/mahout/cf/taste/model/Preference.html" title="interface in org.apache.mahout.cf.taste.model">Preference</a>&nbsp;preference,
double&nbsp;mu)</pre>
<div class="block">TODO: this is the vanilla sgd by Tacaks 2009, I speculate that using scaling technique proposed in:
Towards Optimal One Pass Large Scale Learning with Averaged Stochastic Gradient Descent section 5, page 6
can be beneficial in term s of both speed and accuracy.
Tacaks' method doesn't calculate gradient of regularization correctly, which has non-zero elements everywhere of
the matrix. While Tacaks' method can only updates a single row/column, if one user has a lot of recommendation,
her vector will be more affected by regularization using an isolated scaling factor for both user vectors and
item vectors can remove this issue without inducing more update cost it even reduces it a bit by only performing
one addition and one multiplication.
BAD SIDE1: the scaling factor decreases fast, it has to be scaled up from time to time before dropped to zero or
caused roundoff error
BAD SIDE2: no body experiment on it before, and people generally use very small lambda
so it's impact on accuracy may still be unknown.
BAD SIDE3: don't know how to make it work for L1-regularization or
"pseudorank?" (sum of singular values)-regularization</div>
</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/ParallelSGDFactorizer.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/cf/taste/impl/recommender/svd/NoPersistenceStrategy.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.PreferenceShuffler.html" title="class in org.apache.mahout.cf.taste.impl.recommender.svd"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/mahout/cf/taste/impl/recommender/svd/ParallelSGDFactorizer.html" target="_top">Frames</a></li>
<li><a href="ParallelSGDFactorizer.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>