saket saurabh at ai frontiers: data operations or: how i learned to stop data wrangling and love...

16
Data Operations: Or How I learned to stop data wrangling and love machine learning

Upload: ai-frontiers

Post on 24-Jan-2017

375 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

Data Operations: Or How I learned to stop data

wrangling and love machine learning

Page 2: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

Gentlemen, you can’t be data wrangling in here. This is a machine learning company.

Page 3: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

Nexla solves the challenges of data operations, to enable greater focus on Machine Learning & Analytics

Page 4: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

IN-HOUSE DATA

DATA PARTNERS

PUBLIC DATA

SOURCES

Format: JSON, XML,

CSV, SQL, ZIP, AVRO,

PARQUET

FTP

S3

API

Database

HDFS

HTTP

?

R E A D Y T O U S E

Page 5: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

D ATA O P S : P I L L A R S

D ATA O P E R AT I O N S

Connect & Move

Inter-company, multi-cloud and hybrid cloud

Transform

Serverless compute to format data from partners in your

preferred manner

Monitor & Manage

Dependable data flow from hundreds of

sources. Data dictionary management. Alerts.

Security

Rights management, compliance, auditability,

access management

Page 6: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

D ATA O P S : C O M P L E X I T Y D R I V E R S

D ATA O P E R AT I O N S

Connect & Move

Inter-company, multi-cloud and hybrid cloud

Transform

Formatting data from partners in your

preferred manner

Monitor & Manage

Security

Rights management, compliance, auditability,

access management

Data Sources

Datasets FrequencyDependable data flow

from hundreds of sources. Data dictionary

management. Alerts.

Page 7: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

D ATA O P S : M A C H I N E L E A R N I N G

D ATA O P E R AT I O N S

Monitor & Manage

• Source uptime

• Data Frequency

• Data Volume

• Schema Changes

• Data Changes

• Auditability

Dependable data flow from hundreds of

sources. Data dictionary management. Alerts.

Page 8: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

D ATA O P S M O N I T O R I N G : S I G N A L S

Filesize

#RecordsTimestamp

Schema HashSchema Delta

Meta Data

Record Level

Data Values

Data error pool

Page 9: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

IN-HOUSE DATA

DATA PARTNERS

PUBLIC DATA

SOURCES

Format: JSON, XML,

CSV, SQL, ZIP, AVRO,

PARQUET

FTP

S3

API

Database

HDFS

HTTP

?

R E A D Y T O U S E

Page 10: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

D ATA S TA C K

Nexla Source Connector

Data Sampler

Schema Detection

Data Analysis

Change Detection

Data checker

Outgoing Transforms & Filters

Incoming Transforms & Filters

Destination Connector

R E A D Y T O U S EError Pool

User Notifications

Halt pipeline if needed

IN-HOUSE DATA

DATA PARTNERS

PUBLIC DATA

SOURCES

Format: JSON, XML,

CSV, SQL, ZIP, AVRO,

PARQUET

FTP

S3

API

Database

HDFS

HTTP

?

Page 11: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

Timestamp Filename # of rows Schema Hash2016-11-17 06:00:00 events_2016_11_17_6 5653 4b2c83bf78746a086dde0144f91d1ac82016-11-17 07:00:00 events_2016_11_17_7 5103 4b2c83bf78746a086dde0144f91d1ac82016-11-17 08:00:00 events_2016_11_17_8 5123 4b2c83bf78746a086dde0144f91d1ac82016-11-17 09:00:00 events_2016_11_17_9 9506 4b2c83bf78746a086dde0144f91d1ac82016-11-17 10:00:00 events_2016_11_17_10 5975 4b2c83bf78746a086dde0144f91d1ac82016-11-17 11:00:00 events_2016_11_17_11 5998 4b2c83bf78746a086dde0144f91d1ac82016-11-17 12:00:00 events_2016_11_17_12 6284 4b2c83bf78746a086dde0144f91d1ac82016-11-17 12:00:00 events_2016_11_17_12 3716 622adc13abd0fccd00e27a0659f8f1d42016-11-17 13:00:00 events_2016_11_17_13 8290 622adc13abd0fccd00e27a0659f8f1d42016-11-17 14:00:00 events_2016_11_17_14 9717 622adc13abd0fccd00e27a0659f8f1d42016-11-17 15:00:00 events_2016_11_17_15 8465 622adc13abd0fccd00e27a0659f8f1d4

Page 12: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

res = AnomalyDetectionTs(data, direction='both', plot=TRUE,max_anoms=0.02,alpha=0.01)

Page 13: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

S U P E R V I S E D C L A S S I F I C AT I O N

• Build a classification model for normal and outliers based on a training data

• Customers upload a training set with labeled data

• Typically training set has > 99.99% valid data and < 0.01 invalid data

• Classification algorithms don’t work very well with imbalanced classes

• To solve this, we create a new dataset as follows:

• Only select invalid data

• Resample the original dataset to add (3-4x valid data items)

• The new dataset is more balanced and is used as a training set

• Pros-Cons

• Very accurate when training sets are available. Not usually the case.

• Doesn’t work very well for frequently evolving data (stock market prices)

Page 14: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

K - M E A N S C L U S T E R I N G

• Unsupervised detection without a training set

• Use K means algorithm to identify clusters

• Identify cluster boundaries

• Using percentiles (95th percentile from all distances between data points and their respective cluster centers)

• Outliers are further away from cluster centres

• For each new data point,

• Compute the distance of the data point from each cluster center

• For Closest cluster, if the distance >boundary, the data point is an outlier

Page 15: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

L O O K I N G F U R T H E R …

• We will continue to explore other techniques

• Markov Chains; Hierarchical Temporal Memory Networks; Half space trees; Combination of algorithms

Page 16: Saket Saurabh at AI Frontiers: Data Operations or: How I Learned to Stop Data Wrangling and Love Machine Learning

We are Hiring s Running closed Betas s Launching in March 2017