GithubHelp home page GithubHelp logo

xiaoanshi / xgboost-tensorflow-wide-and-deep-comparison Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bartgras/xgboost-tensorflow-wide-and-deep-comparison

0.0 1.0 0.0 346 KB

Comparison how Tensorflow Wide and Deep model performs vs. XGBoost implementation

Jupyter Notebook 99.98% Python 0.02%

xgboost-tensorflow-wide-and-deep-comparison's Introduction

Comparison of different models

  1. TFLearn based wide and deep model (code copied from https://www.tensorflow.org/tutorials/wide_and_deep and adapted to jupyter notebook format)

  2. TFLearn wide and deep re-implemented in Keras

  3. XGBoost based implementation

Results

  • TFLearn wide and deep model - similarly to results from TF tutorial has accuracy is 84.5%

  • XGBoost - best accuracy is 86.1%

  • TFLearn wide and deep re-implemented in Keras - best accuracy is 85.1%

Notes

  • If you want to test it by yourself, download the data using TFLearn notebook

  • Keras version skipped tf.contrib.layers.crossed_column features. Implementing them could further improve accuracy

Summary

  • This type of "tabular" based dataset is still easiest to implement using XGBoost

  • Keras version was implemented using one-hot encoddings and separately embeddings. Surprisingly the one-hot encoding version achieved better accuracy

  • Probably when given more data, with more options in categorical columns ("workclass", "education", "marital_status" etc.) both TFLearn wide and deep and Keras embedding versions would perform better than XGBoost version.

Check notebooks for details

xgboost-tensorflow-wide-and-deep-comparison's People

Contributors

bartgras avatar

Watchers

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