Top Banner
What, How and Why BigML Predictions and other adventures
44

Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Jun 11, 2018

Download

Documents

hakiet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

What, How and Why BigML

Predictions and other adventures

Page 2: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 3: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

observations

theory

predictions

Page 4: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

problem

conjecture

explanation

observations

predictions

Page 5: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 6: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

models

observations

theory

predictions

datasets

datasources

predictions

Page 7: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 8: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 9: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Large DatasetsLarge Datasets

ParallelismParallelism

AnytimeAnytime

DATA STREAMING

Page 10: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Large DatasetsLarge Datasets

ParallelismParallelism

AnytimeAnytime

Streaming Streaming HistogramsHistograms

Page 11: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 12: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Streaming Streaming TreesTrees

Page 13: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Accuracy = (TP + TN) / (TP + TN + FP + FN)

Recall = TP / (TP + FN)

Precision = TP / (TP + FP)

F1 = 2 Precison Recall / (Precision + Recall)

Page 14: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

I program, therefore I am ...

Page 15: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

REST

POSTGETDELETEPUT

application/json

Page 16: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

REST+

queued finishedin-progress

Page 17: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

REST-

queued errorin-progress

Page 18: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

nginxnginx nginxnginx

apianapian apianapian apianapian

API service

nginxnginx

RESTish JSON over HTTPS

. . .. . .

Page 19: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

nginxnginx nginxnginx

apianapian apianapian apianapian

nginxnginx

RESTish JSON over HTTPS

. . .. . .

Page 20: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

nginxnginx nginxnginx

apianapian apianapian apianapian

nginxnginx

RESTish JSON over HTTPS

. . .. . .

pymongo

pymongo

Page 21: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

nginxnginx nginxnginx

apianapian apianapian apianapian

nginxnginx

RESTish JSON over HTTPS

. . .. . .

pymongo

pymongo

Page 22: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Front-end webapp

Page 23: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

RESTish JSON over HTTPS

nginxnginx nginxnginx

skysky skysky skysky

nginxnginx

HTTPS + AJAX/JSON

. . .. . .

Browser

curious yellow

Page 24: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Backend

Page 25: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

RESTish JSON over HTTP

wintermutewintermute

. . .

Page 26: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

curious yellow(front-end)

apian(middle-end, API)

wintermute(back-end)

Page 27: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

apian(middle-end, API)

Page 28: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

apian(middle-end, API)

Page 29: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

apian(middle-end, API)

NoNoSQL?

Page 30: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 31: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

wintermute wintermute

transactional eventual consistency

Page 32: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

wintermute

eventual consistency

“It's better to ask for

forgivenessthan for

permission.”

“Better safethan sorry.”

Page 33: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

wintermute(back-end)

storm

Page 34: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

Not quite real-time

Not quite map-reduce-able

Too rigid

Too complex

Page 35: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

HTTP/JSONHTTPCache-Control: max-age=300, must-revalidateLast-Modified: Tue, 2 Oct 2012 11:00:00 GMT

Page 36: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

store

schema freeexternal JSON schema

Page 37: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

The datasets saga

Page 38: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 39: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 40: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 41: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

a b c d e f

columns: { a: [ ] b: [ ] c: [ ] d: [ ] e: [ ] f: [ ]}

MR

Page 42: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations
Page 43: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations

store

Page 44: Predictions and other adventures - Jordi Torres · What, How and Why BigML Predictions and other adventures. observations theory predictions. problem conjecture explanation observations