blob: f714a115f8022dd6b3a1f9407be4277c5800959d [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>GenericItemBasedRecommender (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="GenericItemBasedRecommender (Mahout Map-Reduce 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":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/GenericItemBasedRecommender.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/GenericBooleanPrefUserBasedRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.MostSimilarEstimator.html" title="class in org.apache.mahout.cf.taste.impl.recommender"><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/GenericItemBasedRecommender.html" target="_top">Frames</a></li>
<li><a href="GenericItemBasedRecommender.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>Field&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>Field&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</div>
<h2 title="Class GenericItemBasedRecommender" class="title">Class GenericItemBasedRecommender</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/AbstractRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender">org.apache.mahout.cf.taste.impl.recommender.AbstractRecommender</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender</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/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html" title="interface in org.apache.mahout.cf.taste.recommender">Recommender</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericBooleanPrefItemBasedRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender">GenericBooleanPrefItemBasedRecommender</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">GenericItemBasedRecommender</span>
extends <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender">AbstractRecommender</a>
implements <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></pre>
<div class="block"><p>
A simple <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>Recommender</code></a> which uses a given
<a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a> and
<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity"><code>ItemSimilarity</code></a> to produce recommendations. This class
represents Taste's support for item-based recommenders.
</p>
<p>
The <a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity"><code>ItemSimilarity</code></a> is the most important point to discuss
here. Item-based recommenders are useful because they can take advantage of something to be very fast: they
base their computations on item similarity, not user similarity, and item similarity is relatively static.
It can be precomputed, instead of re-computed in real time.
</p>
<p>
Thus it's strongly recommended that you use
<a href="../../../../../../../org/apache/mahout/cf/taste/impl/similarity/GenericItemSimilarity.html" title="class in org.apache.mahout.cf.taste.impl.similarity"><code>GenericItemSimilarity</code></a> with pre-computed similarities if
you're going to use this class. You can use
<a href="../../../../../../../org/apache/mahout/cf/taste/impl/similarity/PearsonCorrelationSimilarity.html" title="class in org.apache.mahout.cf.taste.impl.similarity"><code>PearsonCorrelationSimilarity</code></a> too, which computes
similarities in real-time, but will probably find this painfully slow for large amounts of data.
</p></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/cf/taste/impl/recommender/GenericItemBasedRecommender.MostSimilarEstimator.html" title="class in org.apache.mahout.cf.taste.impl.recommender">GenericItemBasedRecommender.MostSimilarEstimator</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/cf/taste/impl/recommender/GenericItemBasedRecommender.html#GenericItemBasedRecommender-org.apache.mahout.cf.taste.model.DataModel-org.apache.mahout.cf.taste.similarity.ItemSimilarity-">GenericItemBasedRecommender</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,
<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a>&nbsp;similarity)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#GenericItemBasedRecommender-org.apache.mahout.cf.taste.model.DataModel-org.apache.mahout.cf.taste.similarity.ItemSimilarity-org.apache.mahout.cf.taste.recommender.CandidateItemsStrategy-org.apache.mahout.cf.taste.recommender.MostSimilarItemsCandidateItemsStrategy-">GenericItemBasedRecommender</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,
<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a>&nbsp;similarity,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/CandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">CandidateItemsStrategy</a>&nbsp;candidateItemsStrategy,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/MostSimilarItemsCandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">MostSimilarItemsCandidateItemsStrategy</a>&nbsp;mostSimilarItemsCandidateItemsStrategy)</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>protected float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#doEstimatePreference-long-org.apache.mahout.cf.taste.model.PreferenceArray-long-">doEstimatePreference</a></span>(long&nbsp;userID,
<a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a>&nbsp;preferencesFromUser,
long&nbsp;itemID)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#estimatePreference-long-long-">estimatePreference</a></span>(long&nbsp;userID,
long&nbsp;itemID)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/MostSimilarItemsCandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">MostSimilarItemsCandidateItemsStrategy</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#getDefaultMostSimilarItemsCandidateItemsStrategy--">getDefaultMostSimilarItemsCandidateItemsStrategy</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#getSimilarity--">getSimilarity</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long:A-int-">mostSimilarItems</a></span>(long[]&nbsp;itemIDs,
int&nbsp;howMany)</code>&nbsp;</td>
</tr>
<tr id="i5" 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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long:A-int-boolean-">mostSimilarItems</a></span>(long[]&nbsp;itemIDs,
int&nbsp;howMany,
boolean&nbsp;excludeItemIfNotSimilarToAll)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-">mostSimilarItems</a></span>(long[]&nbsp;itemIDs,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer)</code>&nbsp;</td>
</tr>
<tr id="i7" 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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-boolean-">mostSimilarItems</a></span>(long[]&nbsp;itemIDs,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer,
boolean&nbsp;excludeItemIfNotSimilarToAll)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long-int-">mostSimilarItems</a></span>(long&nbsp;itemID,
int&nbsp;howMany)</code>&nbsp;</td>
</tr>
<tr id="i9" 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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#mostSimilarItems-long-int-org.apache.mahout.cf.taste.recommender.Rescorer-">mostSimilarItems</a></span>(long&nbsp;itemID,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#recommend-long-int-org.apache.mahout.cf.taste.recommender.IDRescorer-boolean-">recommend</a></span>(long&nbsp;userID,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/IDRescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">IDRescorer</a>&nbsp;rescorer,
boolean&nbsp;includeKnownItems)</code>&nbsp;</td>
</tr>
<tr id="i11" 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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#recommendedBecause-long-long-int-">recommendedBecause</a></span>(long&nbsp;userID,
long&nbsp;itemID,
int&nbsp;howMany)</code>
<div class="block">
Lists the items that were most influential in recommending a given item to a given user.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#refresh-java.util.Collection-">refresh</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common">Refreshable</a>&gt;&nbsp;alreadyRefreshed)</code>
<div class="block">
Triggers "refresh" -- whatever that means -- of the implementation.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><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></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.impl.recommender.AbstractRecommender">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.cf.taste.impl.recommender.<a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender">AbstractRecommender</a></h3>
<code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#getAllOtherItems-long-org.apache.mahout.cf.taste.model.PreferenceArray-boolean-">getAllOtherItems</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#getDataModel--">getDataModel</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#getDefaultCandidateItemsStrategy--">getDefaultCandidateItemsStrategy</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#recommend-long-int-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#recommend-long-int-boolean-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#recommend-long-int-org.apache.mahout.cf.taste.recommender.IDRescorer-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#removePreference-long-long-">removePreference</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.html#setPreference-long-long-float-">setPreference</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#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>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.recommender.Recommender">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.mahout.cf.taste.recommender.<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html" title="interface in org.apache.mahout.cf.taste.recommender">Recommender</a></h3>
<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#getDataModel--">getDataModel</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#recommend-long-int-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#recommend-long-int-boolean-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#recommend-long-int-org.apache.mahout.cf.taste.recommender.IDRescorer-">recommend</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#removePreference-long-long-">removePreference</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#setPreference-long-long-float-">setPreference</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="GenericItemBasedRecommender-org.apache.mahout.cf.taste.model.DataModel-org.apache.mahout.cf.taste.similarity.ItemSimilarity-org.apache.mahout.cf.taste.recommender.CandidateItemsStrategy-org.apache.mahout.cf.taste.recommender.MostSimilarItemsCandidateItemsStrategy-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericItemBasedRecommender</h4>
<pre>public&nbsp;GenericItemBasedRecommender(<a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a>&nbsp;similarity,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/CandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">CandidateItemsStrategy</a>&nbsp;candidateItemsStrategy,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/MostSimilarItemsCandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">MostSimilarItemsCandidateItemsStrategy</a>&nbsp;mostSimilarItemsCandidateItemsStrategy)</pre>
</li>
</ul>
<a name="GenericItemBasedRecommender-org.apache.mahout.cf.taste.model.DataModel-org.apache.mahout.cf.taste.similarity.ItemSimilarity-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GenericItemBasedRecommender</h4>
<pre>public&nbsp;GenericItemBasedRecommender(<a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a>&nbsp;dataModel,
<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a>&nbsp;similarity)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDefaultMostSimilarItemsCandidateItemsStrategy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultMostSimilarItemsCandidateItemsStrategy</h4>
<pre>protected static&nbsp;<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/MostSimilarItemsCandidateItemsStrategy.html" title="interface in org.apache.mahout.cf.taste.recommender">MostSimilarItemsCandidateItemsStrategy</a>&nbsp;getDefaultMostSimilarItemsCandidateItemsStrategy()</pre>
</li>
</ul>
<a name="getSimilarity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSimilarity</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/mahout/cf/taste/similarity/ItemSimilarity.html" title="interface in org.apache.mahout.cf.taste.similarity">ItemSimilarity</a>&nbsp;getSimilarity()</pre>
</li>
</ul>
<a name="recommend-long-int-org.apache.mahout.cf.taste.recommender.IDRescorer-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>recommend</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;recommend(long&nbsp;userID,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/IDRescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">IDRescorer</a>&nbsp;rescorer,
boolean&nbsp;includeKnownItems)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#recommend-long-int-org.apache.mahout.cf.taste.recommender.IDRescorer-boolean-">recommend</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html" title="interface in org.apache.mahout.cf.taste.recommender">Recommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>userID</code> - user for which recommendations are to be computed</dd>
<dd><code>howMany</code> - desired number of recommendations</dd>
<dd><code>rescorer</code> - rescoring function to apply before final list of recommendations is determined</dd>
<dd><code>includeKnownItems</code> - whether to include items already known by the user in recommendations</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of recommended <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>RecommendedItem</code></a>s, ordered from most strongly recommend to
least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="estimatePreference-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>estimatePreference</h4>
<pre>public&nbsp;float&nbsp;estimatePreference(long&nbsp;userID,
long&nbsp;itemID)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html#estimatePreference-long-long-">estimatePreference</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Recommender.html" title="interface in org.apache.mahout.cf.taste.recommender">Recommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>userID</code> - user ID whose preference is to be estimated</dd>
<dd><code>itemID</code> - item ID to estimate preference for</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an estimated preference if the user has not expressed a preference for the item, or else the
user's actual preference for the item. If a preference cannot be estimated, returns
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true#NaN" title="class or interface in java.lang"><code>Double.NaN</code></a></dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long&nbsp;itemID,
int&nbsp;howMany)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long-int-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemID</code> - ID of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>items most similar to the given item, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long-int-org.apache.mahout.cf.taste.recommender.Rescorer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long&nbsp;itemID,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long-int-org.apache.mahout.cf.taste.recommender.Rescorer-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemID</code> - ID of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find</dd>
<dd><code>rescorer</code> - <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>Rescorer</code></a> which can adjust item-item similarity estimates used to determine most similar
items</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>itemss most similar to the given item, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long[]&nbsp;itemIDs,
int&nbsp;howMany)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long:A-int-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemIDs</code> - IDs of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find estimates used to determine most similar items</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>items most similar to the given items, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long[]&nbsp;itemIDs,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemIDs</code> - IDs of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find</dd>
<dd><code>rescorer</code> - <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>Rescorer</code></a> which can adjust item-item similarity estimates used to determine most similar
items</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>items most similar to the given items, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long:A-int-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long[]&nbsp;itemIDs,
int&nbsp;howMany,
boolean&nbsp;excludeItemIfNotSimilarToAll)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long:A-int-boolean-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemIDs</code> - IDs of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find</dd>
<dd><code>excludeItemIfNotSimilarToAll</code> - exclude an item if it is not similar to each of the input items</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>items most similar to the given items, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mostSimilarItems</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;mostSimilarItems(long[]&nbsp;itemIDs,
int&nbsp;howMany,
<a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender">Rescorer</a>&lt;<a href="../../../../../../../org/apache/mahout/common/LongPair.html" title="class in org.apache.mahout.common">LongPair</a>&gt;&nbsp;rescorer,
boolean&nbsp;excludeItemIfNotSimilarToAll)
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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#mostSimilarItems-long:A-int-org.apache.mahout.cf.taste.recommender.Rescorer-boolean-">mostSimilarItems</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>itemIDs</code> - IDs of item for which to find most similar other items</dd>
<dd><code>howMany</code> - desired number of most similar items to find</dd>
<dd><code>rescorer</code> - <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/Rescorer.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>Rescorer</code></a> which can adjust item-item similarity estimates used to determine most similar
items</dd>
<dd><code>excludeItemIfNotSimilarToAll</code> - exclude an item if it is not similar to each of the input items</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>items most similar to the given items, ordered from most similar to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="recommendedBecause-long-long-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>recommendedBecause</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/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender">RecommendedItem</a>&gt;&nbsp;recommendedBecause(long&nbsp;userID,
long&nbsp;itemID,
int&nbsp;howMany)
throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#recommendedBecause-long-long-int-">ItemBasedRecommender</a></code></span></div>
<div class="block"><p>
Lists the items that were most influential in recommending a given item to a given user. Exactly how this
is determined is left to the implementation, but, generally this will return items that the user prefers
and that are similar to the given item.
</p>
<p>
This returns a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>RecommendedItem</code></a> which is a little misleading since it's returning
recommend<strong>ing</strong> items, but, I thought it more natural to just reuse this class since it
encapsulates an item and value. The value here does not necessarily have a consistent interpretation or
expected range; it will be higher the more influential the item was in the recommendation.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html#recommendedBecause-long-long-int-">recommendedBecause</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.html" title="interface in org.apache.mahout.cf.taste.recommender">ItemBasedRecommender</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>userID</code> - ID of user who was recommended the item</dd>
<dd><code>itemID</code> - ID of item that was recommended</dd>
<dd><code>howMany</code> - maximum number of items to return</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of <a href="../../../../../../../org/apache/mahout/cf/taste/recommender/RecommendedItem.html" title="interface in org.apache.mahout.cf.taste.recommender"><code>RecommendedItem</code></a>, ordered from most influential in recommended the given
item to least</dd>
<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> - if an error occurs while accessing the <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a></dd>
</dl>
</li>
</ul>
<a name="doEstimatePreference-long-org.apache.mahout.cf.taste.model.PreferenceArray-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doEstimatePreference</h4>
<pre>protected&nbsp;float&nbsp;doEstimatePreference(long&nbsp;userID,
<a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a>&nbsp;preferencesFromUser,
long&nbsp;itemID)
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="refresh-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>refresh</h4>
<pre>public&nbsp;void&nbsp;refresh(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common">Refreshable</a>&gt;&nbsp;alreadyRefreshed)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html#refresh-java.util.Collection-">Refreshable</a></code></span></div>
<div class="block"><p>
Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any
<a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common"><code>Refreshable</code></a> should always leave itself in a consistent, operational state, and that the refresh
atomically updates internal state from old to new.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html#refresh-java.util.Collection-">refresh</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common">Refreshable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>alreadyRefreshed</code> - <a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common"><code>Refreshable</code></a>s that are known to have already been
refreshed as a result of an initial call to a {#refresh(Collection)} method on some
object. This ensure that objects in a refresh dependency graph aren't refreshed twice
needlessly.</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<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;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><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></code>&nbsp;in class&nbsp;<code><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></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/GenericItemBasedRecommender.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/GenericBooleanPrefUserBasedRecommender.html" title="class in org.apache.mahout.cf.taste.impl.recommender"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.MostSimilarEstimator.html" title="class in org.apache.mahout.cf.taste.impl.recommender"><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/GenericItemBasedRecommender.html" target="_top">Frames</a></li>
<li><a href="GenericItemBasedRecommender.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>Field&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>Field&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>