Item-based collaborative filtering recommender system template

Created: 2011-05-05 21:07:01      Last updated: 2011-05-09 13:43:09

The workflow for item-based collaborative filtering receives a user-item matrix for its input, and the same context defined macros as the user-based recommender template, namely %{id}, %{recommendation_no}, and %{number_of_neighbors}.

Although this process is in theory very similar to user-based technique, it differs in several processing steps since we are dealing with an item-user matrix, the transposed user-item example set. The first step of the workflow, after declaring zero values missing, is transposing the user-item matrix and calculating the item to %{number_of_neighbors} nearest items similarities. The resulting example set consists of IDs of items, IDs of their most similar items and similarity values. This is joined with IDs of items which our user of interest rated. As a result we obtain an example set of item IDs, their scores, and similarities to the items our user has rated. With the next join we filter only those items that our user had no contact with. The last step is to aggregate that data; group each item ID and calculate the average of that item's rating weighted by the similarity of that item to items our user of interest did rate. The operators following this aggregation, grouped in "Postprocessing" subprocess, only format the output and trim the number of examples in the example set to %{recommendation_no}.



Bošnjak, M., Antulov-Fantulin, N. Šmuc, T. and Gamberger, D., Constructing recommender systems workflow templates in RapidMiner, Proceedings of the RapidMiner Community Meeting And Conference (RCOMM), 2011, Dublin, Ireland - In Press

Information Preview

Information Run

Not available

Information Workflow Components


Information Workflow Type


Information Uploader

Information License

All versions of this Workflow are licensed under:

Information Version 1 (of 1)

Information Credits (2)


Information Attributions (1)


Information Tags (5)

Log in to add Tags

Information Shared with Groups (0)


Information Featured In Packs (1)

Log in to add to one of your Packs

Information Attributed By (0)



Information Favourited By (0)

No one

Information Statistics


Citations (0)


Version History

In chronological order:

Reviews Reviews (0)

No reviews yet

Be the first to review!

Comments Comments (0)

No comments yet

Log in to make a comment

Workflow Other workflows that use similar services (0)

There are no workflows in myExperiment that use similar services to this Workflow.