Coder Social home page Coder Social logo

demf-an-online-recommender's Introduction

DeMF: an online recommender system based on matrix factorisation

Capturing users' preferences drift is a crucial property of a successful recommender systems. Based on TeRec, proposed by Chen et al., we propose DeMF, which is an online recommender system based on matrix factorisation technique, introduced by Koren et al.. We evaluated performance of both two models on MovieLens-100k and Ciao. The results show that compared with TeRec, DeMF show its superior properties in following aspects:

  • Lower mean square error (MAE).
  • Lower trend to diverge.

Structure


Files are organised in following manner:

|-DeMF

	|-mySVD.py
	
	|-sampleInput.py
	
	|-demfNoffline.sh
	
	|-iteration.sh
	
	|-cvxMAE.sh
	
	|-reservoirSize.sh

|-TeRec

	|-mySVD.py
	
	|-sampleInput.py
	
	|-demfNoffline.sh
	
	|-iteration.sh
	
	|-cvxMAE.sh
	
	|-reservoirSize.sh

To run


Requirements:

  • Python2.7
  • NumPy
  • SciPy

sh cvxMAE.sh generates the convex figures.

sh iteration.sh generates the effects of T.

sh reservoirSize.sh generates the effects of size of reservoir.

sh demfNoffline.sh generates time and memory consumption comparison.

Experimental results will be written in following .txt file:

  • memoValueImpML.txt:
  • memory consumption of users. Offline result is shown on terminal console.
  • resultTimeImpML.txt:
  • time consumption of users. Offline result is shown on terminal console.
  • performance.txt:
    • each row has format:
      • $\alpha$, $\beta$, sizeofResv, numEpoches, iteration, pureMFmae, improvedMAE, maeImprovements
  • mae_distribution.txt:
  • MAE improvements of each user.

Please note that running a new shell file will remove results of previous experiment!

To Plot


Using MATLAB to generate all plots:

  • demfNoffline.m:
    • Comparison of memory and time consumption between online and offline
  • cvxMAE.m:
    • MAE performance with various $\alpha$ and $\beta$
  • maeDisDec.m:
    • MAE improvements for each user
  • iteration.m:
    • MAE various with iteration
  • reservoirSize.m:
    • MAE various with reservoir size

The memory and time consumption for each user is written in files memoValueImpML.txt and resultTimeImpML.txt. To run this some manual actions have to be made since every time the number of rating events could be different. However, this figure is intuitive and simple thus not included a .m file.

Following figures show MAE performance comparisons between DeMF

DeMf

and TeRec:

TeRec

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.