slimrec 0.1.0
talegari / slimrec Goto Github PK
View Code? Open in Web Editor NEWSparse Linear Method to Predict Ratings and Top-N Reccomendations
Sparse Linear Method to Predict Ratings and Top-N Reccomendations
slimrec 0.1.0
Integrate with recommenderlab
Consider implicit feedback dataset. Randomly(or deterministically) change a few 1's to 0's. After slim ouputs a matrix, check RMSE at those positions only.
library("slimrec")
data(ft_small)
# making 10 percent of 1s as zeros
index_ones <- which(as.matrix(ft_small) == 1)
set.seed(1)
index <- sample(index_ones, length(index_ones)/10)
ft_small2 <- ft_small
ft_small2[index] <- 0
# 777 1's are converted to zeroes
temp <- slim(mat = as(ft_small2, "dgCMatrix"), returnMat = TRUE, nonNegCoeff = FALSE)
ModelMetrics::rmse(temp$ratingMat[index], ft_small[index])
# gives me an RMSE around 0.6453588
Thanks to Kevin Hao for suggesting this.
A source: Solving the apparent diversity-accuracy dilemma of recommender systems, by Tao Zhou et al 2010.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.