Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View yoshiki146's full-sized avatar

Yoshiki Nakajima yoshiki146

View GitHub Profile
## Collaborative Filtering by R
This post impliments user-based collaborative filtering using R. Idea comes from [the blog post by Salem](http://www.salemmarafi.com/code/collaborative-filtering-r/). I vectorise the code thus significantly reducing the runtime. Visit his blog for more information. (http://www.salemmarafi.com/)
(\*Output is not visible for Rmarkdown file in Github. Please find [markdown version](https://gist.github.com/yoshiki146/31d4a46c3d8e906c3cd24f425568d34e) or download and knit in your environment)
#### Import library and dataset
```{r, message=F}
library(magrittr)
```