You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Shannon Hicks <sh...@pintley.com> on 2009/11/04 18:42:34 UTC
Recommender with filtering
In my recommender, my items are grouped into categories. I'd like to
end up getting recommendations filtered by a specific category.
Are there any examples or suggestions out there on how we might go
about this? I'm thinking the way to go would be to do a JOIN query
somewhere in the GenericJDBCDataModel when needed.
Shan
Re: Recommender with filtering
Posted by Sean Owen <sr...@gmail.com>.
The easiest way to do this by far is with a Rescorer object, passed to
the recommend() method. The implementation should simply look at the
item ID it's given, and return NaN if it's *not* from the given
category, otherwise return the original score. It'll make sense if you
look at the interface but post back with questions here.
On Wed, Nov 4, 2009 at 5:42 PM, Shannon Hicks <sh...@pintley.com> wrote:
> In my recommender, my items are grouped into categories. I'd like to end up
> getting recommendations filtered by a specific category.
>
> Are there any examples or suggestions out there on how we might go about
> this? I'm thinking the way to go would be to do a JOIN query somewhere in
> the GenericJDBCDataModel when needed.
>
> Shan
>