Giter Site home page Giter Site logo

pl2m's Introduction

A Parallel and Efficient Algorithm for Learning to Match (PL2M)

Build

Simply type "make" in the terminal line or follow the commands in the Makefile.

Usage

pl2m_train is used to train models based on train/test files and user/item feature matrix files, which needs 6 parameters:

 [usage] <configure-file> <user-feature-matrix> <item-feature-matrix> <train> <test> <model-output-prefix>

pl2m_infer is used to make predictions based on trained models, which needs 3 parameters:

 [usage] <test> <particular-model> <prediction-output-file>

For more details, please check the example.

Configure File

Please check the "examples/pcf.conf" for details.

Format of the Matrix File

Spare Matrix for user features and item features.

For each line, first come with the id of user/item. Then followed by the number of non-zero features. Features are described by their indices and values, separated by a colon. Here is an example for user 123, who have 5 non-zero features in total.

123 5 123:1 1:0.5 10:0.5 11:0.5 20:0.5

For more details, please check the example.

Format of Train/Test file

Classical 3/4 columns, where weight of this instance is optional (1 default). However, in one train/test files, the columns in each line should be same.

user item rate [weight]

For more details, please check the example.

Example

  1. run the buildFeatMat.py in the folder "data".

     python buildFeatMat.py
    

    which will generate 4 four files in the folder "data", which are the train/test files and user/item feature matrix files.

  2. get into the folder "example", create a folder "models".

     mkdir models
    
  3. run the predefined script.

     ./run.sh
    

which includes both training and testing procedures.

Reference

If you are using this toolkit for some research, please cite the following papers.

[1] Shang, J., Chen, T., Li, H., Lu, Z., & Yu, Y. (2014). A Parallel and Efficient Algorithm for Learning to Match. In Data Mining (ICDM), 2014 IEEE 14th International Conference. IEEE.

There is also a long version of this paper available on arXiv.

http://arxiv.org/abs/1410.6414

pl2m's People

Contributors

shangjingbo1226 avatar

Watchers

 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.