Subject: Re: Solr recommender

  Pat Ferrel 2013-09-08, 17:09
  Ted Dunning 2013-10-09, 14:31
  Pat Ferrel 2013-10-09, 19:08
  Michael Sokolov 2013-10-09, 19:54
  Pat Ferrel 2013-10-09, 21:07
  Ted Dunning 2013-10-09, 23:23
  Ted Dunning 2013-10-09, 23:25
  Ted Dunning 2013-10-09, 23:27
  Ted Dunning 2013-10-09, 23:29
Excellent. From Ellen's description the first Music use may be an implicit preference based recommender using synthetic  data? I'm quickly discovering how flexible Solr use is in many of these cases.

Here's another use you may have thought of:

Shopping cart recommenders, as goes the intuition, are best modeled as recommending from similar item-sets. If you store all shopping carts as your training data (play lists, watch lists etc.) then as a user adds things to their cart you query for the most similar past carts. Combine the results intelligently and you'll have an item set recommender. Solr is built to do this item-set similarity. We tried to do this for a ecom site with pure Mahout but the similarity calc in real time stymied us. We knew we'd need Solr but couldn't devote the resources to spin it up.

On the Con-side Solr has a lot of stuff you have to work around. It also does not have the ideal similarity measure for many uses (cosine is ok but llr would probably be better). You don't want stop word filtering, stemming, white space based tokenizing or n-grams. You would like explicit weighting. A good thing about Solr is how well it integrates with virtually any doc store independent of the indexing and query. A bit of an oval peg for a round hole.

It looks like the similarity code is replaceable if not pluggable. Much of the rest could be trimmed away by config or adherence to conventions I suspect. In the demo site I'm working on I've had to adopt some slightly hacky conventions that I'll describe some day.

On Oct 1, 2013, at 10:38 PM, Ted Dunning <[EMAIL PROTECTED]> wrote:

Ellen and some folks in Britain have been working with some data I produced from synthetic music fans.
On Tue, Oct 1, 2013 at 2:22 PM, Pat Ferrel <[EMAIL PROTECTED]> wrote:
Hi Ellen,
On Oct 1, 2013, at 12:38 PM, Ted Dunning <[EMAIL PROTECTED]> wrote:
As requested,

Pat, meet Ellen.

Ellen, meet Pat.
On Tue, Oct 1, 2013 at 8:46 AM, Pat Ferrel <[EMAIL PROTECTED]> wrote:
Tunneling (rat-holing?) into the cross-recommender and Solr+Mahout version.

Things to note:
1) The pure Mahout XRecommenderJob needs a cross-LLR or a cross-similairty job. Currently there is only cooccurrence for sparsification, which is far from optimal. This might take the form of a cross RSJ with two DRMs as input. I can't commit to this but would commit to adding it to the XRecommenderJob.
2) output to Solr needs a lot of options implemented and tested. The hand-run test should be made into some junits. I'm slowly doing this.
3) the Solr query API is unimplemented unless someone else is working on that. I'm building one in a demo site but it looks to me like a static recommender API is not going to be all that useful and maybe a document describing how to do it with the Solr query interface would be best, especially for a first step. The reasoning here is that it is so tempting to mix in metadata to the recommendation query that a static API is not so obvious. For the demo site the recommender API will be prototyped in a bunch of ways using models and controllers in Rails. If I'm the one to do the a Java Solr-recommender query API it will be after experimenting a bit.

Can someone introduce me to Ellen and Tim?

On Sep 28, 2013, at 10:59 AM, Ted Dunning <[EMAIL PROTECTED]> wrote:

The one large-ish feature that I think would find general use would be a high performance classifier trainer.

Flor cleanup sort of thing it would be good to fully integrate the streaming k-means into the normal clustering commands while revamping the command line API.

Dmitriy's recent scala work would help quite a bit before 1.0. Not sure it can make 0.9.

For recommendations, I think that the demo system that pat started with the elaborations by Ellen an Tim would be very good to have.

I would be happy to collaborate with somebody on these but am not at all likely to have time to actually do them end to end.

Sent from my iPhone

On Sep 28, 2013, at 12:40, Grant Ingersoll <[EMAIL PROTECTED]> wrote:

  Michael Sokolov 2013-10-09, 13:13
  Pat Ferrel 2013-10-10, 15:59
  Dominik Hübner 2013-10-24, 23:55
  Manuel Blechschmidt 2013-10-25, 05:49
  Pat Ferrel 2013-10-26, 23:44
  Pat Ferrel 2013-09-06, 16:33
  Ken Krugler 2013-09-06, 17:33
  Pat Ferrel 2013-09-06, 18:56
  Ted Dunning 2013-09-07, 17:36
  Pat Ferrel 2013-09-07, 21:35
  Ted Dunning 2013-09-07, 22:07