Hi Mouthgalya,
If you use ItembasedRecommender.mostSimilarItems() to query the similar
items ("recommendations for an item"), then you can provide a
Rescorer<LongPair> to filter out items that should not be returned
(e.g., by checking the categories to which they belong).
--sebastian
On 21.06.2013 21:42, Mouthgalya Ganapathy wrote:
> Hi,
> For item based recommendations in Mahout, is there a way to get
> recommendations from a selected Product category?
> For example:
> Product category A: Product1, Product2, Product3
> Product Category B: Product4, Product5, Product6
>
> Recommendations for product 2 should be only from category A i.e. Product 1
> and 3.So recommendations should be only within the product category.
> Is this possible?
>
>
> Thanks,
> Mouthgalya
>