<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>undesigned &#187; recommender</title>
	<atom:link href="http://www.joelduffin.com/blog/category/recommender/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joelduffin.com/blog</link>
	<description>life is a rum go guv’nor, and that’s the truth</description>
	<lastBuildDate>Thu, 30 Sep 2010 07:08:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OER Recommender at RecSysTEL</title>
		<link>http://www.joelduffin.com/blog/2010/09/30/oer-recommender-at-recsystel/</link>
		<comments>http://www.joelduffin.com/blog/2010/09/30/oer-recommender-at-recsystel/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 07:08:21 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[conferences]]></category>
		<category><![CDATA[recommender]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://www.joelduffin.com/blog/?p=488</guid>
		<description><![CDATA[I&#8217;m presenting OER Recommender at RecSysTEL today

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m presenting <a href="http://oerrecommender.org">OER Recommender</a> at <a href="http://adenu.ia.uned.es/workshops/recsystel2010/">RecSysTEL</a> today</p>
<p><iframe src="https://docs.google.com/present/embed?id=ddfznmqr_199dcm9q6kb" frameborder="0" width="410" height="342"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joelduffin.com/blog/2010/09/30/oer-recommender-at-recsystel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Hadoop on Amazon&#8217;s elastic mapreduce</title>
		<link>http://www.joelduffin.com/blog/2010/09/08/getting-started-with-hadoop-on-amazons-elastic-mapreduce/</link>
		<comments>http://www.joelduffin.com/blog/2010/09/08/getting-started-with-hadoop-on-amazons-elastic-mapreduce/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 15:23:54 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[recommender]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.joelduffin.com/blog/?p=474</guid>
		<description><![CDATA[After playing with Hadoop a bit in the past, I&#8217;m now trying out some things on Amazon&#8217;s Elastic MapReduce.
I signed up for a new AWS account and ran their sample LogAnalyzer Job Flow using the AWS console. That was easy enough. Next I attempted to run the same sample from the command line using the [...]]]></description>
			<content:encoded><![CDATA[<p>After playing with Hadoop a bit in the past, I&#8217;m now trying out some things on <a href="http://aws.amazon.com/elasticmapreduce/">Amazon&#8217;s Elastic MapReduce</a>.</p>
<p>I signed up for a new AWS account and ran their <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2440">sample LogAnalyzer Job Flow</a> using the AWS console. That was easy enough. Next I attempted to run the same sample from the command line using the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2264">Amazon Elastic MapReduce Ruby Client</a>.</p>
<p><strong>Note</strong>: The <a href="http://github.com/tc/elastic-mapreduce-ruby/blob/master/README">Ruby Client README</a> turns out to be very helpful.</p>
<p>Next I downloaded the source and looked at. Seems simple enough. I notice that this sample uses a library called <a href="http://www.cascading.org/">Cascading</a>, which appears to be a way to simplify common job flow tasks.</p>
<p>After adding the elastic-mapreduce app to my path and setting up my credentials file, I ran:</p>
<p>elastic-mapreduce &#8211;create &#8211;jar  s3n://elasticmapreduce/samples/cloudfront/logprocessor.jar &#8211;args  &#8220;-input,s3n://elasticmapreduce/samples/cloudfront/input,-output,s3n://folksemantic.com/cloudfront/log-reports,-start,any,-end,2010-09-07-21,-timeBucket,300,-overallVolumeReport&#8221;</p>
<p>It produced:</p>
<p>INFO Exception Retriable invalid response returned from RunJobFlow: {&#8221;Error&#8221;=&gt;{&#8221;Details&#8221;=&gt;#&lt;SocketError: getaddrinfo: nodename nor servname provided, or not known&gt;, &#8220;Code&#8221;=&gt;&#8221;InternalFailure&#8221;, &#8220;Type&#8221;=&gt;&#8221;Sender&#8221;}} while calling RunJobFlow on Amazon::Coral::ElasticMapReduceClient, retrying in 3.0 seconds.</p>
<p>After some poking around, I realized that I specified &#8220;west-1&#8243; as my region when it should have been &#8220;us-west-1&#8243;. This resulted in the client trying to contact a non-existent server I&#8217;m guessing.</p>
<p>So now, my jobs started, but failed immediately. I logged into the AWS console and clicked on one of the failed job flows to see the reason for the failure (Last State Change Reason):</p>
<p><span>The given SSH key name was invalid</span></p>
<p><span>Googling found: </span>http://developer.amazonwebservices.com/connect/message.jspa?messageID=166768</p>
<p>Which at first confused me, then I went ahead and followed <a href="https://console.aws.amazon.com/ec2/home#c=EC2&amp;s=KeyPairs">the link</a> (while logged in) and did what it said to. (Amazing how that works sometimes <img src='http://www.joelduffin.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) It prompted me to create a new key and to assign it a name.</p>
<p>After I had generated the key and put its name in the credentials.json, things worked like a charm. It turns out that if you run a job from scratch, it has to fire up an EC2 instance in order to run the job, and that can take a while. To avoid that start up time, you can run:</p>
<p>elastic-mapreduce &#8211;create &#8211;alive &#8211;log-uri s3://my-example-bucket/logs</p>
<p>As mentioned in the README.TXT</p>
<p>My next steps are to:</p>
<ol>
<li>Modify the job flow and run that job flow.</li>
<li>Run the job flow locally.</li>
<li>Debug the MapReduce portion of the job flow.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.joelduffin.com/blog/2010/09/08/getting-started-with-hadoop-on-amazons-elastic-mapreduce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solving aggregation problems</title>
		<link>http://www.joelduffin.com/blog/2010/09/02/hadoop-based-aggregation-and-recommendation/</link>
		<comments>http://www.joelduffin.com/blog/2010/09/02/hadoop-based-aggregation-and-recommendation/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 23:27:21 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[recommender]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.joelduffin.com/blog/?p=456</guid>
		<description><![CDATA[In Folksemantic, we run into the following problems:

Duplicate entries. Search and recommendation results that list multiple entries for the same resource.
Catalog pages. Search and recommendation results that link to catalog pages for resources (people would rather go directly to the resource, but the metadata providers want people to go to their catalog entry for the [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.folksemantic.com">Folksemantic</a>, we run into the following problems:</p>
<ul>
<li><strong>Duplicate entries</strong>. Search and recommendation results that list multiple entries for the same resource.</li>
<li><strong>Catalog pages</strong>. Search and recommendation results that link to catalog pages for resources (people would rather go directly to the resource, but the metadata providers want people to go to their catalog entry for the resource).</li>
<li><strong>Dead links</strong>. Results that link to resources that no longer exist.</li>
<li><strong>Urls without metadata</strong>. When someone shares a resource or inserts the recommender widget in a page for which we don&#8217;t have metadata, we need to be able to generate metadata.</li>
</ul>
<p>Duplicate entries show up because:</p>
<ul>
<li>Two feeds specify entries with the same permalink.</li>
<li>The same feed gets added twice (maybe different formats for the same feed, eg. RSS, Atom)</li>
<li>Multiple catalogs provide metadata for the same resource.</li>
</ul>
<h3>Dealing With Duplicate Feeds</h3>
<p><strong>Problem</strong>: In folksemantic a user can enter the url of their blog and we will detect the feeds from the page and add them. We use the feeds to generate personal recommendations. The problem is, a blog typically has 3 or more feeds all of which contain the same content, just provided in different formats (e.g. RSS, Atom etc). So we really don&#8217;t want all of the feeds to be generated.</p>
<p><strong>Solution 1</strong>: One approach to solving this is to try to detect the duplicate feed the first time we harvest it, don&#8217;t add its entries to the index, and then flag the feed as &#8220;duplicate&#8221; so that we don&#8217;t harvest it again. Store in the feed the id of the feed it duplicates. One potential problem with this is that if someone registers a feed that has just the entries tagged a certain way (e.g. all of the entries tagged apple on the gizmodo feed), then if the main feed is already registered, all of the entries on the filtered feeds duplicate the entries in the main feed, so the entries are duplicate, but the feed is not. If we want to use the feed as a basis for making recommendations to the user, we don&#8217;t want to use the main feed.</p>
<p><strong>Solution 2</strong>: Another approach to the problem is to just add the feed, and harvest it, but then flag the entries as duplicates. Our thought about doing this is to store in each entry a list all of the feeds that the entry belongs to. We need to verify that this won&#8217;t slow down our Lucene queries.</p>
<p><strong> </strong>It seems that Solution 2 may be best and make it up to the app to avoid adding duplicate feeds (like the 4 feeds for the same blog that Folksemantic does).</p>
<h3>Dealing with Catalog Entries</h3>
<p><strong> </strong>A number of NSDL and other projects such as OER Commons  have created large catalogs of online resources. Sometimes their metadata is harvested directly from the resource websites. Sometimes they enhance that metadata with new information. Sometimes they create metadata for resources that don&#8217;t provide their own metadata. The catalog websites often provide services such as rating, discussion, and other valuable services and so they want people to come to their websites and use them. While, these services are nice, when people are searching for resources, they likely want to look at the resource first and make their own judgement if that is possible, and then read more about it if they are interested. I think this is because the cost of looking at an online resource is minimal (as compared to buying something or attending a course, for example). So the catalog issue leads to two problems:</p>
<p><strong>Problem</strong>: When people see search results, they likely want to go directly to the resource instead of to a catalog page.</p>
<p><strong>Solution</strong>: When a catalog page is the only entry for a resource, that entry is flagged &#8220;primary&#8221;. As soon as we create an entry that goes directly to the resource, we flag that new entry primary, and the catalog entry as not primary; we also store the id of the catalog entry in the list of duplicate entries that we store in the new entry. When searching, by default return only primary entries unless the application explicitly requests all entries. Return a flag indicating that an entry has catalog entries. Provide an API for requesting catalog entries for a specific entry.</p>
<p><strong>Problem</strong>: In most cases, catalog metadata does not provide the url of the resource it is cataloging.</p>
<p><strong>Solution</strong>: Initially flag the entry as &#8220;primary&#8221; so it will show up in search results. Later, asynchronously crawl the catalog pages to find the url of the catalogued resource. Once the direct url is known, create a new entry for the resource and store the id of the catalog entry in the  list of &#8220;related entries&#8221; that we store for the new entry. Flag the catalog entry as not primary and the new entry as primary. Copy the metadata from the catalog entry into the new entry. Use the resource domain as the key for the feed to add the new entry to. If the feed does not already exist, create one for it.</p>
<p><strong>Problem</strong>: If there are multiple entries (catalog etc for a resource), which metadata should we use to calculate the recommendation for the resource?</p>
<p><strong>Solution</strong>: Options might be: (a) the metadata provided by the resource, (b) metadata generated by a crawl of the resource &#8211; I think this is bad because frequently metadata is more descriptive than the page itself, (c) the first catalog entry found for the resource, (d) the largest set of metadata for the resource. My thought it to always use the largest set of metadata for the resource unless there is no catalog entries (like in the case of where we crawl a website), in which case we must use the metadata generated by the crawl. In order to facilitate this approach, we: (1) for entries, we store whether or not the metadata came from that resource itself or not, (2) whenever we detect a new catalog entry for a resource that already has an entry, we look to see if the metadata in the existing entry was copied from a catalog entry; if it was, compare the size of the metadata from the two entries and update the metadata with the new catalog entry metadata if it is larger. For the purpose of calculating recommendations it might make sense to use all of the metadata from all of the sources.</p>
<p><strong>Problem</strong>: When a website requests recommendations for a url, normally we want to return non-catalog entries, but when a catalog requests recommendations for one of its urls, they likely want their own catalog entries back if they exist.</p>
<p><strong>Solution</strong>: When generating recommendations, for recommended entries that have catalog entries, check those and recommend those catalog entries instead.</p>
<h3>Detecting and Handling Feed Entry Deletions</h3>
<p><strong>Problem</strong>: OAI has a way to tell you that an entry has been deleted, but RSS does not. How can you detect when an entry has been deleted, and what should you do when it is deleted?</p>
<p><strong>Solution</strong>: My thought is that this is just part of what our dead link handler does. It finds entries with dead links and flags them deleted or actually deletes them. When we re-index we remove items from the index that have been flagged deleted.</p>
<h3>Dealing with Dead Links</h3>
<p><strong>Problem</strong>: Many times the resources in our indexes get taken down or moved without notification (the source of the metadata doesn&#8217;t get updated or it doesn&#8217;t get updated for a while). What should we do in that situation?</p>
<p><strong>Solution</strong>: We will write a bot that will flag entries dead. Once entries are dead they won&#8217;t show up in search or recommendation results. Should they still be used as the basis for recommendations? Probably not. Maybe we create another process that looks for the new location of the dead entries?</p>
<h3>Generating Metadata for a URL</h3>
<p><strong>Problem</strong>: When someone adds an entry but doesn&#8217;t provide metadata, we need to be able to generate metadata for the entry. We also need to know which feed to put it into.</p>
<p><strong>Solution</strong>: The application should give us a feed id, or a display url for the feed along with the entry URL. If it does not send a feed ID, we will look for feed using the host portion of the entry permalink. If one does not exist, it will create one and specify the host the display url for the feed, that way future entries for that feed will always go into that feed.</p>
<h3>Generating Recommendations for Web Pages We Haven&#8217;t Indexed Yet</h3>
<p>This is similar to the previous issue, we want people to be able to add the OER Recommender widget to their pages and have them just start working, removing the requirement that they add their resources to our index before we can provide recommendations. We can analyze and provide recommendations in real time, but that tends to bury our server if it gets a bunch of requests for real time recommendations  all at once.</p>
<p><strong>Problem</strong>: Provide recommendations for URLs that haven&#8217;t been indexed yet.</p>
<p><strong>Solution</strong>: When the recommendation is requested, add an entry for the URL, flagging it needing to be scraped. Flag the feed as being not-recommendable. If we don&#8217;t have a domain feed for the URL, add a domain feed for the entry and specify it as the feed for the entry. Queue the feed for approval by site admins.</p>
<p>This brings up the issue of being able to narrow the scope of the space into which recommendations are made. Depending on the context, we want to consider different sets of items to recommend. For example, in folksemantic, for personal recommendations we let users add feeds they produce, but we don&#8217;t necessarily want to include their stuff in recommendations that we make to other people.</p>
<p><strong>Problem</strong>: Narrow the scope of the space that we recommend items from.</p>
<p><strong>Solution</strong>: Define recommendation tasks by specifying the aggregation of feeds that we are recommending from and the aggregation of feeds that we are recommending into. Store those ids in the recommendation table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joelduffin.com/blog/2010/09/02/hadoop-based-aggregation-and-recommendation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting personal recommendations</title>
		<link>http://www.joelduffin.com/blog/2009/11/23/presenting-personal-recommendations/</link>
		<comments>http://www.joelduffin.com/blog/2009/11/23/presenting-personal-recommendations/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 18:31:37 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[recommender]]></category>

		<guid isPermaLink="false">http://www.joelduffin.com/blog/?p=374</guid>
		<description><![CDATA[Generating personal recommendations is one thing, presenting them to the user in a way that they find them useful is something else. Here are our plans for folksemantic.com:

Personal recommendations page &#8211; For each user, provide a personal recommendations page. Visually separate recommendations that they have already clicked on.
Personal recommendations tool &#8211; Include a personal recommendations [...]]]></description>
			<content:encoded><![CDATA[<p>Generating personal recommendations is one thing, presenting them to the user in a way that they find them useful is something else. Here are our plans for <a href="http://www.folksemantic.com/">folksemantic.com</a>:</p>
<ul>
<li><strong>Personal recommendations page</strong> &#8211; For each user, provide a personal recommendations page. Visually separate recommendations that they have already clicked on.</li>
<li><strong>Personal recommendations tool</strong> &#8211; Include a personal recommendations button on our folksemantic bar that when clicked on will display their recommendations in the right panel. Linking to the recommendations from that panel will refresh the content in the iframe (not do a full page refresh).</li>
<li><strong>Personal recommendations action link</strong> &#8211; Include a link to the user&#8217;s recommendations page on their dashboard.</li>
<li><strong>Inject recommendations into activity feeds</strong> &#8211; Whenever we generate new personal recommendations, inject them into a user&#8217;s activity feed that is displayed on their dashboard.</li>
<li><strong>Email personal recommendations</strong> &#8211; Email personal recommendations to users as often as they would like (controllable in their account settings).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.joelduffin.com/blog/2009/11/23/presenting-personal-recommendations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A personal recommendation algorithm</title>
		<link>http://www.joelduffin.com/blog/2009/11/23/a-personal-recommendation-algorithm/</link>
		<comments>http://www.joelduffin.com/blog/2009/11/23/a-personal-recommendation-algorithm/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 18:23:21 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[recommender]]></category>

		<guid isPermaLink="false">http://www.joelduffin.com/blog/?p=364</guid>
		<description><![CDATA[We&#8217;re in the process of building out personal recommendations for folksemantic.com. The basis for the recommendations is user attention metadata. The data we use includes:

Identity feeds &#8211; RSS feeds that users register that represent their interests. For example, their blog or their delicious account.
Clicks &#8211; The articles that the user clicks on.
Shares &#8211; The articles [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re in the process of building out personal recommendations for <a href="http://www.folksemantic.com/">folksemantic.com</a>. The basis for the recommendations is user attention metadata. The data we use includes:</p>
<ul>
<li><strong>Identity feeds</strong> &#8211; RSS feeds that users register that represent their interests. For example, their blog or their delicious account.</li>
<li><strong>Clicks</strong> &#8211; The articles that the user clicks on.</li>
<li><strong>Shares</strong> &#8211; The articles that the user shares to others.</li>
<li><strong>Comments</strong> &#8211; Articles that the user comments on.</li>
<li><strong>Time on page</strong> &#8211; Amount of time that a user spends on an article before moving on.</li>
<li><strong>Searches</strong> &#8211; Searches the user executes.</li>
</ul>
<h2>Recommendation Assumptions</h2>
<p>Some of our assumptions are:</p>
<ul>
<li><strong>Semantic relatedness</strong> &#8211; The more semantically similar an article is to articles that a user has paid attention to, the more interesting to the user.</li>
<li><strong>Attention types</strong> &#8211; Different types of attention should be given different weights. For example, following a link to an article should not give it as much weight as writing the article.</li>
<li><strong>Attention details</strong> &#8211; The particulars of a given type of attention might make it more important than another attention of the same type. For example, if a person shares an article with 100 people, it might be reasonable to infer that it is more important than an article that they share with one person.</li>
<li><strong>Entry recency</strong> &#8211; The more recently an article has been added to the system, the more interesting to the user (they probably haven&#8217;t seen it before).</li>
<li><strong>Attention recency</strong> &#8211; The more recently a user has showed attention to an article, the more weight that should be given to it.</li>
<li><strong>Attention frequency</strong> &#8211; The more frequently a user has showed attention to an article, the more weight that should be given to it.</li>
</ul>
<p>Stating these assumptions reminds me of the difference between relevance and certainty. So while an item that a user clicks on may be more relevant than an blog article they have written, it is harder to be certain of that. Our approach is to give the click less weight than the article.</p>
<h2>Recommendation Score</h2>
<p>Right now, we score articles using the formula:</p>
<p><strong>(relevance)(attention type)(attention details)(attention recency)(article recency)</strong></p>
<p>For all articles that a user has paid attention to, we score the 20 &#8220;related articles&#8221; using this algorithm; rank the scores and cache the top 20 (that the user hasn&#8217;t already clicked on) to recommend to the user. There are obvious weaknesses to this approach, but we are going to start there and see where to go next.</p>
<h2>Possible Extensions / Improvements</h2>
<p>We are considering:</p>
<ul>
<li><strong>Collaborative Filtering, Bipartite Graph, and Discriminative Weight Algorithms</strong> &#8211; Putting into production, the <a href="http://www.folksemantic.com/papers/descriminative_weights.pdf">algorithm that combines discriminative weights with a novel sparse matrix clustering method</a> we conducted research on.</li>
<li><strong>Modeling user interests separately</strong> &#8211; <a href="http://www.joelduffin.com/blog/2009/11/18/modeling-users-to-provide-recommendations/">Modeling users interests using multiple term vectors</a> (one for each interest) by extracting vectors from closely related (clustered documents) that users have paid attention to.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.joelduffin.com/blog/2009/11/23/a-personal-recommendation-algorithm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

