GithubHelp home page GithubHelp logo

aloha-vw-jni-perf's Introduction

Aloha VW JNI performance benchmark

Prediction Performance Results

It appears that, as expected, model performance goes down as more labels are queried and seems to be (mostly) independent of the number of labels on which the model was trained.

Aloha VW JNI Performance Benchmark

VW vs Aloha Prediction Speed Comparison

It looks like as the number of labels queried increases, the amount of time spent in an Aloha prediction becomes dominated by the actual VW prediction.

Aloha vs VW JNI Performance

Benchmark Data

Benchmark data was generated on Ubuntu 16.04 on a Core i7 3930K using jmh:run -wi 10 -i 10 -t 1 -f 1. The results were reformatted but the raw numbers are the same.

Usage

sbt
> jmh:run -wi 10 -i 10
  • Warmup iterations: 10
  • Iterations: 10
  • Running throughput benchmark

Data generation

FEATURES=$(seq 1 100 | sed 's/^/f/g' | tr '\n' ' ')
CLASSES=$(seq 1 10000 | sed 's/\(.*\)/\1:-1.0 |Y _C\1_/g')

# Construct one example and feed to VW.  
# Notice the ring_size needs to be about 10 more than the number of classes.
(cat <<EOD
shared |X $FEATURES
2147483648:0.0 |y _C2147483648_
2147483649:-1 |y _C2147483649_
$CLASSES

EOD
) | $VW \
 -b 23 \
 --ring_size 10010 \
 --csoaa_ldf mc \
 --csoaa_rank \
 --loss_function logistic \
 -q YX \
 --noconstant \
 --ignore_linear X \
 --ignore y \
 --initial_weight 0.000001 \
 --invert_hash /tmp/test.1.vw.hr.model \
 -f /tmp/test.1.vw.binary.model

aloha-vw-jni-perf's People

Contributors

amirziai avatar ryan-deak-zefr avatar amir-ziai-zefr avatar

Watchers

Justin Miller avatar James Cloos avatar  avatar Guillaume Chorn avatar Daniel Dusina avatar  avatar Eric Bonilla avatar  avatar Shubham Goel avatar Manpreet Singh avatar zefr-qa avatar Ian Quah  avatar Neal Williams avatar Nick Rotondo avatar Michael (Mike) Villalobos avatar  avatar Sardhendu Mishra avatar  avatar Joseph Decker avatar  avatar  avatar Alex Luka 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.