Coder Social home page Coder Social logo

mauriziofd / recsys_course_2017 Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 7.0 101.92 MB

DEPRECATED This is the official repository for the 2017 Recommender Systems course at Polimi.

Python 10.00% HTML 90.00%
cython slim bpr bprmf recommender-system bprslim

recsys_course_2017's Introduction

RecSys Course 2017

This is the official repository for the 2017 Recommender Systems course at Polimi.

This repo is obsolete, please refer to the updated version HERE

This repo contains a Cython implementation of:

  • SLIM BPR: Uses a Cython tree-based sparse matrix, suitable for datasets whose number of items is too big for the dense similarity matrix to fit in memory. Dense similarity is also supported.
  • MF BPR: Matrix factorization optimizing BPR
  • FunkSVD: Matrix factorization optimizing RMSE
  • AsymmetricSVD

This repo contains a Python implementation of:

  • Item-based KNN collaborative
  • Item-based KNN content
  • User-based KNN
  • SLIM_RMSE: SLIM solver using ElasticNet. The solver fits every column in the similarity matrix independently

This repo also provides an implementation of:

  • Cosine Similarity, Adjusted Cosine, Pearson Correlation, Jaccard Correlation, Tanimoto Coefficient: Implemented both in Python and Cython with the same interface, Base.cosine_similarity and Base.Cython.cosine_similarity
  • MAP, recall, precision, ROC-AUC, MRR, RR, NDCG to be used in testing
  • Movielens10MReader: reads movielens 10M rating file, splits it into three URMs for train, test and validation.

Cython code is already compiled for Linux. To recompile the code just set the recompile_cython flag to True. For other OS such as Windows the c-imported numpy interface might be different (e.g. return tipe long long insead of long) therefore the code could require modifications in oder to compile.

In "all_algorithms.py" you can see how to use every model.

recsys_course_2017's People

Contributors

mauriziofd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.