• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    Python
  • Created about 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Benchmarking Gradient Boosting in TensorFlow and XGBoost

Gradient Boosting in TensorFlow vs XGBoost

TensorFlow 1.4 includes a Gradient Boosting implementation, aptly named TensorFlow Boosted Trees (TFBT). This repo contains the benchmarking code that I used to compare it XGBoost.

For more background, have a look at the article.

Getting started

# Prepare the python environment
mkvirtualenv env
source env/bin/activate
pip install -r requirements.txt

# Download the dataset
wget http://stat-computing.org/dataexpo/2009/{2006,2007}.csv.bz2
bunzip2 {2006,2007}.csv.bz2

# Prepare the dataset
python preprocess_data.py

Running the experiments

Train and run xgboost:

python do_xgboost.py

Train and run TensorFlow:

python do_tensorflow.py

Draw nice plots:

python analyze_results.py

Timing results

./do_xgboost.py --num_trees=50  42.06s user 1.82s system 1727% cpu 2.540 total

./do_tensorflow.py --num_trees=50 --examples_per_layer=1000  124.12s user 27.50s system 374% cpu 40.456 total
./do_tensorflow.py --num_trees=50 --examples_per_layer=5000  659.74s user 188.80s system 356% cpu 3:58.30 total

More Repositories

1

segmentation_keras

DilatedNet in Keras for image segmentation
Python
301
star
2

simple_slam_loop_closure

Simple loop closure for Visual SLAM
C++
142
star
3

ros-bazel

Build ROS code with Bazel
Starlark
69
star
4

vslam_evaluation

Evaluation of open-source visual SLAM packages
Python
56
star
5

robotics_for_developers

Code for my tutorial on Robotics for developers (SLAM project)
C++
43
star
6

occupancy_mapping_benchmarks

Benchmarks for occupancy mapping libraries in Robotics
C++
19
star
7

naive_bayes_tensorflow

Naive Bayes classifiers in TensorFlow
Python
18
star
8

cs61as-racket-homework

Berkeley CS61AS course homework in Racket
Racket
14
star
9

bazel-buildroot-toolchain

C++ toolchain for Bazel with modern C++ and static binaries
Python
9
star
10

bazel-benchmarks

C++ Benchmarks for the Bazel build system
Python
8
star
11

awesome-bazel

A curated list of resources for the Bazel build system
4
star
12

aria2_api

aria2 RPC client in Go
Go
3
star
13

ros_bazel

Python
3
star
14

robotics_benchmarks

Benchmark setup for some robotics algorithms
C++
3
star
15

bazel-cpp-starter

Starter project for using C++ in Bazel with good defaults.
Python
2
star
16

gazebo-headless-docker

Record videos of gazebo robot simulations
Dockerfile
2
star
17

aruco2_ros

ROS packages for ArUco fiducial markers, v2.x
C++
1
star
18

slides-template

Template for my presentations
Makefile
1
star
19

llvm-build-docker

Python
1
star
20

boost_bazel

Bazel rules for building boost
Python
1
star
21

tensorflow_cuda_benchmarks

TensorFlow CNN performance on clang vs nvcc
Shell
1
star
22

asai-dog-classifier

Python
1
star
23

slides-2019-06-15-ita-cpp-con

Makefile
1
star