Coder Social home page Coder Social logo

cf-based-recommendation's Introduction

CF-Based-Recommendation

Recommendation System based on Collaborative Filtering

README

  1. To compile the program you need java. To create class file, execute the command

javac recommender.java

  1. Once the class file is formed, different configuration of recommender system can be run. If you want to run cross-validation you will have to mention second argument as "Best" as undermentioned, else you can specify any one type of similarity type as second argument. Also since java is row-major, both Item-based and Combined-based program became slow to ensure generality. User-based predictions with predefined similarity could take upto 45-mins on quad-core i7 system, whereas Item-based and Combined-based could take upto 2 hours. If you run cross-validation, then the code will use the entire ratings.csv file, for the entire 8,00,000 entiries and Item-based system could take upto 12 hours to run.

    2.1) User-Based I) To run user based recommender system with Pearson similarity execute -

    java recommender User Pearson

    II) To run user based recommender system with Cosine similarity execute -

    java recommender User Cosine

    III) To run user based recommender system with Jaccard similarity execute -

    java recommender User Jaccard

    IV) To run user based recommender system with Best similarity, using K-fold cross-validation execute -

    java recommender User Best

    2.2) Item-Based I) To run item based recommender system with Pearson similarity execute -

    java recommender Item Pearson

    II) To run item based recommender system with Cosine similarity execute -

    java recommender Item Cosine

    III) To run item based recommender system with Jaccard similarity execute -

    java recommender Item Jaccard

    IV) To run item based recommender system with Best similarity, using K-fold cross-validation execute -

    java recommender Item Best

    2.3) Combined User-Item Based I) To run the combined user-item based recommender system with Jaccard similarity execute -

    java recommender Combined None

cf-based-recommendation's People

Contributors

shantanudeshpande avatar

Watchers

James Cloos 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.