Giter VIP home page Giter VIP logo

recommender's Introduction

Recommender Build Status

GitHub stars GitHub license Language grade: C/C++

A C library for product recommendations/suggestions using collaborative filtering (CF).

Recommender analyzes the feedback of some users (implicit and explicit) and their preferences for some items. It learns patterns and predicts the most suitable products for a particular user.

Features

  • Collaborative Filtering
  • User and Item based recommenders
  • No external dependencies
  • Fast running time ~ 81 seconds for 10 million ratings (on MovieLens Data Sets)
  • Memory footprint under 160 MB for 10 million ratings

Webpage

http://ghamrouni.github.com/Recommender/

Building

To compile Recommender:

make

The compilation will produce libRecommender.a

To compile an example:

gcc test/test.c src/libRecommender.a -lm -o test/t1 -I src/

Alternatively you can use clang

clang test/test.c src/libRecommender.a -lm -o test/t1 -I src/

Keywords

Collaborative filtering, recommender system

References

  1. http://en.wikipedia.org/wiki/Recommendation_system
  2. http://public.research.att.com/~volinsky/netflix/kdd08koren.pdf
  3. http://research.yahoo.com/files/ieeecomputer.pdf

recommender's People

Contributors

csarkosh avatar ghamrouni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recommender's Issues

Invalid arguments in test.c

Function call in test.c

estimate_rating_from_factors(0, 0, learned, model)

gives the following error

test.c: In function ‘main’:
test.c:80:4: error: incompatible type for argument 2 of ‘estimate_rating_from_factors’
estimate_rating_from_factors(0, 0, learned, model));

Function prototype from recommender.h

double
estimate_rating_from_factors(rating_estimator_parameters_t* estim_param,
struct learning_model model);

Comment from above prototype has 4 arguments while you have only defined 2.

make failed

error: format specifies type 'unsigned int *' but the argument has
      type 'size_t *' (aka 'unsigned long *') [-Werror,-Wformat]
                if (fscanf (file, "%u %u", &i, &j) != 2)
                                      ~~       ^~

The usage of srand is incorrect

the generate_random_matrix is using srand(0) to generate random number everytime.

srand(0) sets the seed of the random number generator to 0. Calling it again with the same parameter sets the seed to 0 again, and will cause the random generator to create the same output.

e.g.
srand(0);
for(int i = 0; i<5; i++)
printf(" %d ", rand());
return 0;

prints 1804289383 846930886 1681692777 1714636915 1957747793 all the time (should use something like srand(time(0)))

So the matrix is not generated randomly as it should be.

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.