GithubHelp home page GithubHelp logo

c00h00g / keras-mmoe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drawbridge/keras-mmoe

0.0 0.0 0.0 9.35 MB

A TensorFlow Keras implementation of "Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts" (KDD 2018)

License: MIT License

Python 100.00%

keras-mmoe's Introduction

Keras-MMoE

This repo contains the implementation of Multi-gate Mixture-of-Experts model in TensorFlow Keras.

Here's the video explanation of the paper by the authors.

The repository includes:

  • A Python 3.6 implementation of the model in TensorFlow with Keras
    • The code is also compatible with Python 2.7
  • Example demo of running the model with the census-income dataset from UCI
    • This dataset is the same one in Section 6.3 of the paper

The code is documented and designed to be extended relatively easy. If you plan on using this in your work, please consider citing this repository (BibTeX is included below) and also the paper.

Getting Started

Requirements

  • Python 3.6
  • Other libraries such as TensorFlow and Scikit-learn listed in requirements.txt

Installation

  1. Clone the repository
  2. Install dependencies
pip install -r requirements.txt
  1. Run the example code
python census_income_demo.py

Notes

  • Due to ambiguity in the paper and time and resource constraints, we unfortunately can't reproduce the exact results in the paper

Contributing

Contributions to this repository are welcome. Examples of things you can contribute:

  • Performance improvements by re-writing the model in TensorFlow, PyTorch, or MXNet
  • Improve the census income benchmark to be as close as the one from the paper
  • Improve the synthetic benchmark to be as close as the one from the paper
  • Training on other public datasets for different benchmarks
  • Accuracy improvements
  • Visualizations

Citation

Use this BibTeX to cite the repository:

@misc{keras_mmoe_2018,
  title={Multi-gate Mixture-of-Experts model in Keras and TensorFlow},
  author={Deng, Alvin},
  year={2018},
  publisher={Github},
  journal={GitHub repository},
  howpublished={\url{https://github.com/drawbridge/keras-mmoe}},
}

Acknowledgments

The code is built upon the work by Emin Orhan.

keras-mmoe's People

Contributors

alvin319 avatar dependabot[bot] avatar colinyoyo26 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.