SlideShare a Scribd company logo
SCALABLE DATA SCIENCE AND
DEEP LEARNING WITH H2O
Arno Candel, H2O.ai
O P E N
D A T A
S C I E N C E
C O N F E R E N C E_ BOSTON 2015
@opendatasci
H2O.ai

Machine Intelligence
Who Am I?
Arno Candel
Chief Architect,
Physicist & Hacker at H2O.ai
PhD Physics, ETH Zurich 2005
10+ yrs Supercomputing (HPC)
6 yrs at SLAC (Stanford Lin. Accel.)
3.5 yrs Machine Learning
1.5 yrs at H2O.ai
Fortune Magazine
Big Data All Star 2014
Follow me @ArnoCandel 2
H2O.ai

Machine Intelligence
Outline
• Introduction
• H2O Deep Learning Architecture
• Live Demos:
Flow GUI - Airline Dataset
R - MNIST World Record + Anomaly Detection
Flow GUI - Higgs Boson Classification
Sparkling Water - Chicago Crime Prediction
iPython - CitiBike Demand Prediction
Scoring Engine - Million Songs Classification
• Outlook
3
H2O.ai

Machine Intelligence
See All Demos In Full Tomorrow!
4
http://www.meetup.com/bostonml/events/222464750/
H2O.ai

Machine Intelligence
In-Memory ML
Distributed
Open Source
APIs
5
Memory-Efficient Data Structures
Cutting-Edge Algorithms
Use all your Data (No Sampling)
Accuracy with Speed and Scale
Ownership of Methods - Apache V2
Easy to Deploy: Bare, Hadoop, Spark, etc.
Java, Scala, R, Python, JavaScript, JSON
NanoFast Scoring Engine (POJO)
H2O - Product Overview
H2O.ai

Machine Intelligence
25,000 commits / 3yrs
H2O World Conference 2014
Team Work @ H2O.ai
6
Join H2O World 2015!
H2O.ai

Machine Intelligence
103 634 2789
463 2,887 13,237
Companies
Users
Mar 2014 July 2014 Mar 2015
Active Users
150+
7
Strong Community & Growth
5/25/15 @kdnuggets t.co/4xSgleSIdY
H2O.ai

Machine Intelligence
8
HDFS
S3
SQL
NoSQL
Classification
Regression
Feature
Engineering
Distributed In-Memory
Map Reduce/Fork Join
Columnar Compression
GLM, Deep Learning
K-Means, PCA, NB,
Cox
Random Forest / GBM
Ensembles
Fast Modeling Engine
Streaming
Nano Fast Java Scoring Engines
(POJO code generation)
Matrix
Factorization Clustering
Munging
Unsupervised
Supervised
Accuracy with Speed and Scale
Most code is written
in-house from scratch
H2O.ai

Machine Intelligence
9
Ad Optimization (200% CPA Lift with H2O)
P2B Model Factory (60k models,
15x faster with H2O than before)
Fraud Detection (11% higher accuracy with
H2O Deep Learning - saves millions)
…and many large insurance and financial
services companies!
Real-time marketing (H2O is 10x faster than
anything else)
Actual Customer Use Cases
H2O.ai

Machine Intelligence
10
h2o.ai/download & Run!
H2O.ai

Machine Intelligence
11
Airline Data: Predict Delayed Departure
Predict dep. delay Y/N
116M rows
31 colums
12 GB CSV
4 GB compressed
20 years of domestic
airline flight data
H2O.ai

Machine Intelligence
12
Results in Seconds on Big Data
Logistic Regression: ~20s
elastic net, alpha=0.5, lambda=1.379e-4 (auto)
Deep Learning: ~70s
4 hidden ReLU layers of 20 neurons, 2 epochs
8-node EC2 cluster: 64 virtual cores, 1GbE
Year, Month, Sched.
Dep. Time have
non-linear impact
Chicago, Atlanta,
Dallas:

often delayed
All cores maxed out
+9% AUC
+--+++
H2O.ai

Machine Intelligence
Multi-layer feed-forward Neural Network

Trained with back-propagation (SGD, ADADELTA)
+ distributed processing for big data
(fine-grain in-memory MapReduce on distributed data)
+ multi-threaded speedup
(async fork/join worker threads operate at FORTRAN speeds)
+ smart algorithms for fast & accurate results
(automatic standardization, one-hot encoding of categoricals, missing value imputation, weight &
bias initialization, adaptive learning rate, momentum, dropout/l1/L2 regularization, grid search, 

N-fold cross-validation, checkpointing, load balancing, auto-tuning, model averaging, etc.)
= powerful tool for (un)supervised machine
learning on real-world data
13
H2O Deep Learning
all 320 cores maxed out
H2O.ai

Machine Intelligence
threads: async
14
H2O Deep Learning Architecture
K-V
K-V
HTTPD
HTTPD
nodes/JVMs: sync
communication
w
w w
w w w w
w1
w3 w2
w4
w2+w4
w1+w3
w* = (w1+w2+w3+w4)/4
map:

each node trains a copy of
the weights and biases with
(some* or all of) its local
data with asynchronous F/J
threads
initial model: weights and biases w
updated model: w*
H2O in-memory non-
blocking hash map:

K-V store
reduce:

model averaging: average weights
and biases from all nodes,
speedup is at least #nodes/
log(#rows)
http://arxiv.org/abs/1209.4129
Keep iterating over the data (“epochs”), score at user-given times
Query & display the
model via JSON, WWW
2
2 4
31
1
1
1
4
3 2
1 2
1
i
*auto-tuned (default) or user-
specified number of rows per
MapReduce iteration
Main Loop:
H2O.ai

Machine Intelligence
15
H2O Deep Learning beats MNIST
MNIST: Handwritten digits: 28^2=784 gray-scale pixel values
full run: 10 hours on 10-node cluster
2 hours on desktop gets to 0.9% test set error
Just supervised training
on original 60k/10k dataset:
No data augmentation
No distortions
No convolutions
No pre-training
No ensemble
0.83% test set error:

current world record
1-liner: call h2o.deeplearning() in R
H2O.ai

Machine Intelligence
16
Unsupervised Anomaly Detection
The good The bad The ugly
Try it yourself!
Auto-Encoder learns
“Compressed Identity”
H2O.ai

Machine Intelligence
17
Images courtesy CERN / LHC
Higgs

vs

Background
Large Hadron Collider: Largest experiment of mankind!
$13+ billion, 16.8 miles long, 120 MegaWatts, -456F, 1PB/day, etc.
Higgs boson discovery (July ’12) led to 2013 Nobel prize!
Higgs Boson - Classification Problem
H2O.ai

Machine Intelligence
18
UCI Higgs Dataset: 11M rows, 29 cols
C2-C22: 21 low-level features

(detector data)
7 high-level features

(physics formulae)
Assume we don’t know Physics…
H2O.ai

Machine Intelligence
19
? ? ?
Former CERN baseline for AUC: 0.733 and 0.816
H2O Algorithm low-level H2O AUC all features H2O AUC
Generalized Linear Model 0.596 0.684
Random Forest 0.764 0.840
Gradient Boosted Trees 0.753 0.839
Neural Net 1 hidden layer 0.760 0.830
H2O Deep Learning ?
add
derived
features
Deep Learning for Higgs Detection?
Q: Can Deep Learning learn Physics for us?
H2O.ai

Machine Intelligence
20
EC2 Demo Cluster: 8 nodes, 64 cores
H2O Deep Learning:
Expect good cluster
utilization :)
H2O.ai

Machine Intelligence
21
Deep DL model on

low-level features
only
valid 500k rows
test 500k rows
train 10M rows
H2O Deep Learning Higgs Demo
H2O: same results as Nature paper
Deep Learning just learned Particle Physics!
8 EC2 nodes:
AUC = 0.86 after 100 mins
AUC = 0.87+ overnight
H2O.ai

Machine Intelligence
22
http://www.slideshare.net/0xdata/crime-deeplearningkey
http://www.datanami.com/2015/05/07/what-police-can-learn-from-deep-learning/
H2O Deep Learning in the News
Alex, Michal,
et al.
H2O.ai

Machine Intelligence
23
Weather + Census + Crime Data
H2O.ai

Machine Intelligence 24
Spark + H2O = Sparkling Water
H2O.ai

Machine Intelligence
25
Sparkling Water Demo
Instructions at h2o.ai/download
H2O.ai

Machine Intelligence
26
Parse & Munge with H2O, Convert to RDD
H2O Parser: Robust & Fast
Simple Column Selection
H2O.ai

Machine Intelligence
27
Parse & Munge with H2O, Convert to RDD
Munging: Date Manipulations
Conversion to DataFrame
H2O.ai

Machine Intelligence
28
Join RDDs with SQL, Convert to H2O
Spark SQL Query Execution
Convert back to H2OFrame
Split into Train 80% / Test 20%
H2O.ai

Machine Intelligence
29
Build H2O Deep Learning Model
Train a H2O Deep Learning
Model on Data obtained by
Spark SQL Query
Predict whether Arrest will be
made with AUC of 0.90+
H2O.ai

Machine Intelligence
30
Visualize Results with Flow
Using Flow to interactively plot
Arrest Rate (blue)
vs
Relative Occurrence (red)
per crime type.
H2O.ai

Machine Intelligence
31
Predict Rental Bike Demand in NYC
Cliff et al.
H2O.ai

Machine Intelligence
iPython
Notebook Demo
32
Group-By Aggregation
H2O.ai

Machine Intelligence
iPython
Notebook Demo
33
Model Building And Scoring
91% AUC baseline
H2O.ai

Machine Intelligence
34
Joining Bikes-Per-Day with Weather
H2O.ai

Machine Intelligence
35
Improved Models with Weather Data
93% AUC after joining
bike and weather data
H2O.ai

Machine Intelligence
36
Example: First GBM tree
Fast and easy path to Production (batch or real-time)!
POJO Scoring Engine
Standalone Java scoring code is auto-generated!
Note:
no heap allocation,
pure decision-making
H2O.ai

Machine Intelligence
More Info in H2O Booklets
https://leanpub.com/u/h2oai
http://learn.h2o.ai
37
H2O.ai

Machine Intelligence
38
Kaggle - H2O Starter Scripts
H2O.ai

Machine Intelligence
39
Kaggle - Active H2O Community
18k+ views in 2 weeks
H2O.ai

Machine Intelligence
40
Hyper-Parameter Tuning
93 numerical features
9 output classes
62k training set rows
144k test set rows
Ensemble of H2O DL + GBM => Top 10%
R script by DataGeek
H2O.ai

Machine Intelligence
41
Mastering Kaggle with H2O
DL + GBM
GBM
GBM + GLM
DRF + GLM
Stay tuned: Kaggle Master
@Mark_A_Landry recently
joined H2O as Competitive
Data Scientist!
www.meetup.com/Silicon-
Valley-Big-Data-Science/
events/222303884/
H2O.ai

Machine Intelligence
42
R’s data.table now in H2O!
H2O.ai

Machine Intelligence
Outlook - Algorithm Roadmap
• Ensembles (Erin LeDell et al.)
• Automated Hyper-Parameter Tuning
• Convolutional Layers for Deep Learning
• Natural Language Processing: tf-idf, Word2Vec, …
• Generalized Low Rank Models
• PCA, SVD, K-Means, Matrix Factorization
• Recommender Systems
And many more!
43
Public JIRAs - Join H2O!
H2O.ai

Machine Intelligence
Key Take-Aways
H2O is an open source predictive analytics
platform for data scientists and business analysts
who need scalable, fast and accurate machine
learning.
H2O Deep Learning is ready to take your
advanced analytics to the next level.
Try it on your data!
44
https://github.com/h2oai
H2O Google Group
http://h2o.ai
@h2oai
Thank You!

More Related Content

PDF
H2O Deep Water - Making Deep Learning Accessible to Everyone
PDF
Webinar: Deep Learning with H2O
PDF
Sparkling Water 5 28-14
PDF
H20: A platform for big math
PDF
H2O Big Join Slides
PDF
High Performance Machine Learning in R with H2O
PDF
Introduction to Data Science with H2O- Mountain View
PDF
H2O with Erin LeDell at Portland R User Group
H2O Deep Water - Making Deep Learning Accessible to Everyone
Webinar: Deep Learning with H2O
Sparkling Water 5 28-14
H20: A platform for big math
H2O Big Join Slides
High Performance Machine Learning in R with H2O
Introduction to Data Science with H2O- Mountain View
H2O with Erin LeDell at Portland R User Group

What's hot (20)

PPTX
Project "Deep Water"
PPTX
Big Data Science with H2O in R
PDF
Intro to H2O in Python - Data Science LA
PDF
Scalable Ensemble Machine Learning @ Harvard Health Policy Data Science Lab
PDF
New Developments in H2O: April 2017 Edition
PDF
Scalable Machine Learning in R and Python with H2O
PDF
Introduction to H2O and Model Stacking Use Cases
PPTX
AI Development with H2O.ai
PDF
Introduction to GPUs for Machine Learning
PDF
Automatic and Interpretable Machine Learning with H2O and LIME
PDF
Deep Learning with MXNet - Dmitry Larko
PDF
Deep Water - Bringing Tensorflow, Caffe, Mxnet to H2O
PDF
H2O Deep Water - Making Deep Learning Accessible to Everyone
PPTX
Machine Learning for Smarter Apps - Jacksonville Meetup
PDF
H2O 3 REST API Overview
PDF
Intro to H2O Machine Learning in R at Santa Clara University
PPTX
From Kaggle to H2O - The True Story of a Civil Engineer Turned Data Geek
PDF
Microservices, containers, and machine learning
PDF
Spark streaming
PDF
Sparkling Water 2.0 - Michal Malohlava
Project "Deep Water"
Big Data Science with H2O in R
Intro to H2O in Python - Data Science LA
Scalable Ensemble Machine Learning @ Harvard Health Policy Data Science Lab
New Developments in H2O: April 2017 Edition
Scalable Machine Learning in R and Python with H2O
Introduction to H2O and Model Stacking Use Cases
AI Development with H2O.ai
Introduction to GPUs for Machine Learning
Automatic and Interpretable Machine Learning with H2O and LIME
Deep Learning with MXNet - Dmitry Larko
Deep Water - Bringing Tensorflow, Caffe, Mxnet to H2O
H2O Deep Water - Making Deep Learning Accessible to Everyone
Machine Learning for Smarter Apps - Jacksonville Meetup
H2O 3 REST API Overview
Intro to H2O Machine Learning in R at Santa Clara University
From Kaggle to H2O - The True Story of a Civil Engineer Turned Data Geek
Microservices, containers, and machine learning
Spark streaming
Sparkling Water 2.0 - Michal Malohlava
Ad

Viewers also liked (20)

PPTX
Data Science, Machine Learning, and H2O
PDF
H2O Big Data Environments
PDF
Build Your Own Recommendation Engine
PDF
Intro to Machine Learning with H2O and AWS
PDF
Arno candel scalabledatascienceanddeeplearningwithh2o_odsc_boston2015
PPTX
Classification of Crime
PDF
Introduction to data science with H2O-Chicago
PPTX
San Francisco Crime Classification
PDF
H2O Machine Learning and Kalman Filters for Machine Prognostics
PPTX
Hadoop cluster os_tuning_v1.0_20170106_mobile
PDF
Formal methods 8 - category theory (last one)
PDF
Building Machine Learning Applications with Sparkling Water
PDF
Applied Machine learning using H2O, python and R Workshop
PDF
MLconf - Distributed Deep Learning for Classification and Regression Problems...
PDF
H2O World - Top 10 Deep Learning Tips & Tricks - Arno Candel
PDF
H2O World - Sparkling Water - Michal Malohlava
PPTX
H2O.ai - Road Ahead - keynote presentation by Sri Ambati
PDF
GBM in H2O with Cliff Click: H2O API
PDF
Building Random Forest at Scale
PDF
Deep Water - GPU Deep Learning for H2O - Arno Candel
Data Science, Machine Learning, and H2O
H2O Big Data Environments
Build Your Own Recommendation Engine
Intro to Machine Learning with H2O and AWS
Arno candel scalabledatascienceanddeeplearningwithh2o_odsc_boston2015
Classification of Crime
Introduction to data science with H2O-Chicago
San Francisco Crime Classification
H2O Machine Learning and Kalman Filters for Machine Prognostics
Hadoop cluster os_tuning_v1.0_20170106_mobile
Formal methods 8 - category theory (last one)
Building Machine Learning Applications with Sparkling Water
Applied Machine learning using H2O, python and R Workshop
MLconf - Distributed Deep Learning for Classification and Regression Problems...
H2O World - Top 10 Deep Learning Tips & Tricks - Arno Candel
H2O World - Sparkling Water - Michal Malohlava
H2O.ai - Road Ahead - keynote presentation by Sri Ambati
GBM in H2O with Cliff Click: H2O API
Building Random Forest at Scale
Deep Water - GPU Deep Learning for H2O - Arno Candel
Ad

Similar to Scalable Data Science and Deep Learning with H2O (20)

PDF
Arno candel scalabledatascienceanddeeplearningwithh2o_reworkboston2015
PDF
ArnoCandelScalabledatascienceanddeeplearningwithh2o_gotochg
PDF
Deep Learning in the Wild with Arno Candel
PDF
Intro to H2O Machine Learning in Python - Galvanize Seattle
PDF
Python and H2O with Cliff Click at PyData Dallas 2015
PDF
H2O at Poznan R Meetup
PDF
Introduction to Machine Learning with H2O and Python
PPTX
Applying Machine Learning using H2O
PPTX
Applying Machine Learning using H2O
PDF
Introducción al Machine Learning Automático
PDF
H2O Deep Learning at Next.ML
PDF
Arno candel h2o_a_platform_for_big_math_hadoop_summit_june2016
PDF
Start Getting Your Feet Wet in Open Source Machine and Deep Learning
PDF
H2O for Medicine and Intro to H2O in Python
PDF
H2O at Berlin R Meetup
PDF
Berlin R Meetup
PDF
H2O Overview with Amy Wang at useR! Aalborg
PDF
Introduction to Machine Learning with H2O - Jo-Fai (Joe) Chow, H2O
PDF
Belgrade R - Intro to H2O and Deep Water
PDF
H2O at BelgradeR Meetup
Arno candel scalabledatascienceanddeeplearningwithh2o_reworkboston2015
ArnoCandelScalabledatascienceanddeeplearningwithh2o_gotochg
Deep Learning in the Wild with Arno Candel
Intro to H2O Machine Learning in Python - Galvanize Seattle
Python and H2O with Cliff Click at PyData Dallas 2015
H2O at Poznan R Meetup
Introduction to Machine Learning with H2O and Python
Applying Machine Learning using H2O
Applying Machine Learning using H2O
Introducción al Machine Learning Automático
H2O Deep Learning at Next.ML
Arno candel h2o_a_platform_for_big_math_hadoop_summit_june2016
Start Getting Your Feet Wet in Open Source Machine and Deep Learning
H2O for Medicine and Intro to H2O in Python
H2O at Berlin R Meetup
Berlin R Meetup
H2O Overview with Amy Wang at useR! Aalborg
Introduction to Machine Learning with H2O - Jo-Fai (Joe) Chow, H2O
Belgrade R - Intro to H2O and Deep Water
H2O at BelgradeR Meetup

More from odsc (20)

PPT
Understanding the Chief Data Officer
PPTX
Machine-In-The-Loop for Knowledge Discovery
PPT
API Driven Development
PPTX
Mobile technology Usage by Humanitarian Programs: A Metadata Analysis
PPTX
Productionizing Deep Learning From the Ground Up
PPT
Big Data Infrastructure: Introduction to Hadoop with MapReduce, Pig, and Hive
PPTX
Think Breadth, Not Depth
PPT
Data Science at Dow Jones: Monetizing Data, News and Information
PDF
Spark, Python and Parquet
PPTX
Building a Predictive Analytics Solution with Azure ML
PPT
Beyond Names
PPT
How Woman are Conquering the S&P 500
PPTX
Domain Expertise and Unstructured Data
PPTX
Kaggle The Home of Data Science
PPT
Open Source Tools & Data Science Competitions
PPT
Machine Learning with scikit-learn
PPT
Bridging the Gap Between Data and Insight using Open-Source Tools
PDF
Top 10 Signs of the Textpocalypse
PPTX
The Art of Data Science
PPTX
Frontiers of Open Data Science Research
Understanding the Chief Data Officer
Machine-In-The-Loop for Knowledge Discovery
API Driven Development
Mobile technology Usage by Humanitarian Programs: A Metadata Analysis
Productionizing Deep Learning From the Ground Up
Big Data Infrastructure: Introduction to Hadoop with MapReduce, Pig, and Hive
Think Breadth, Not Depth
Data Science at Dow Jones: Monetizing Data, News and Information
Spark, Python and Parquet
Building a Predictive Analytics Solution with Azure ML
Beyond Names
How Woman are Conquering the S&P 500
Domain Expertise and Unstructured Data
Kaggle The Home of Data Science
Open Source Tools & Data Science Competitions
Machine Learning with scikit-learn
Bridging the Gap Between Data and Insight using Open-Source Tools
Top 10 Signs of the Textpocalypse
The Art of Data Science
Frontiers of Open Data Science Research

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Cloud computing and distributed systems.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
CIFDAQ's Market Insight: SEC Turns Pro Crypto
MYSQL Presentation for SQL database connectivity
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
Digital-Transformation-Roadmap-for-Companies.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Scalable Data Science and Deep Learning with H2O