Giter VIP home page Giter VIP logo

fmfm's Introduction

FM^2: Field-matrixed Factorization Machines for Recommender Systems

Table of Contents

Background

This is the code to implement the algorithm of FM^2 (Field-matrixed Factorization Machines), it can run a quick benchmark among the LR, FM, FFM, FwFM, FvFM, FmFM and DCN, it also support data process and feature extraction from public data set Criteo and Avazu.

Install

First you will need to have TensorFlow (v1.15 with a GPU is preferred) and numpy, pandas, pickle and tqdm installed.

You may need to login and download the Criteo and Avazu from their websites respectively. The unzipped raw data files should be placed at folder data/criteo/ and data/avazu/ respectively.

Usage

This project has the following content

  1. train.py The main function to train the model
  2. features.py Functions to process the data file and generate features
  3. models.py The core functions to describe those models, include the new proposed FmFM and FvFM, as well as other baseline models like LR, FM, FFM, FwFM

The folder bash contains individual training task with hyper-parameters, and the start_train.sh can schedule multiple task in one bash file.

AUC vs FLOP comparison

Contribute

Please refer to the contributing.md file for information about how to get involved. We welcome issues, questions, and pull requests.

Maintainers

Yang Sun, [email protected]

License

This project is licensed under the terms of the MIT open source license. Please refer to LICENSE for the full terms.

fmfm's People

Contributors

ashleywolf avatar dr-sun 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.