Giter Site home page Giter Site logo

primalcr's Introduction

Large-scale Collaborative Ranking in Near-Linear Time

Announcement:

Wu, Liwei, Cho-Jui Hsieh, and James Sharpnack. "Large-scale Collaborative Ranking in Near-Linear Time." Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 2017.

Description

The code is modified from LIBPMF (https://www.cs.utexas.edu/~rofuyu/libpmf/). We extend the codebase for LIBPMF to collaborative ranking.

Platform

Unix system with g++.

Compilation

$ make

Quick start

$ ./omp-pmf-train ml1m model $ ./omp-pmf-predict ml1m/test.ratings model predicted_result

Data format

The input format is the same with LIBPMF. The input format of the training data is a directory containing a file called "meta", a file storing training ratings, and a file storing test ratings.

"meta" file contains three lines:
      1st: m n
      2nd: num_training_ratings training_file_name
      3rd: num_test_ratings test_file_name

See ml1m/ for a concrete example.

Instructions on how to run the code:

Run each program without arguments to show the detailed usage:

$ ./omp-pmf-train

Usage: omp-pmf-train [options] data_dir [model_filename]
options:
    -s type : set type of solver (default 2)
	     1 -- PirmalCR
         2 -- PrimalCR++
    -k rank : set the rank (default 10)
	-n threads : set the number of threads (default 4)
	-l lambda : set the regularization parameter lambda (default 5000)
	-t max_iter: set the number of iterations (default 10)
	-p do_predict: compute training/testing error & NDCG at each iteration or not (default 1)

$ ./omp-pmf-predict

Usage: omp-pmf-predict test_file model output_file

primalcr's People

Contributors

cjhsieh avatar wuliwei9278 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

primalcr's Issues

Calculation takes forever on cygwin on Windows

Built code on cygwin (had to change c++ flag to -std=gnu++11, otherwise it didn't build), application started but never finished (waited over 10 mins), spark ALS would calculate this small example in 10-20 seconds from my experience:

image

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.