Simple machine learning for the masses - Konstantin Davydov

17
Machine Learning for the Masses using Google Prediction API PAPIs 2015

Transcript of Simple machine learning for the masses - Konstantin Davydov

Page 1: Simple machine learning for the masses - Konstantin Davydov

Machine Learning for the Masses

using Google Prediction API

PAPIs 2015

Page 2: Simple machine learning for the masses - Konstantin Davydov

What is Google Prediction API?

- supervised machine learning service

- one-click, black-box model training and hosting

- data and model analysis

- aimed towards non-ML experts

Page 3: Simple machine learning for the masses - Konstantin Davydov

How does one use it?

Data Prediction API

Insert Model

Predict Predict

Predict

Google Cloud Storage

Upload

Page 4: Simple machine learning for the masses - Konstantin Davydov

22000,1,13000,1,0

14000,0,30000,0,1

...

Generate features from raw data

classifier: Linear Regression

parameters: ...

Select algorithm and

parameters

Why black-box?

Price,Year,Mileage,Size

22000,2012,13000,2-door

14000,2010,30000,4-door

...

22000,1,0.31,1,0

14000,0,0.65,0,1

...

Preprocess data

(scale features, PCA)

Error: 132.1

Compute performance

metrics

Typical machine learning workflow:

Page 5: Simple machine learning for the masses - Konstantin Davydov

Why black-box?

Price,Year,Mileage,Size

22000,2012,13000,2-door

14000,2010,30000,4-door

... Mean Squared Error: 132.1

Prediction API workflow:

Prediction API

Trained Model

??,2002,135000,4-door

Price: $3363.89

Page 6: Simple machine learning for the masses - Konstantin Davydov

Why black-box?

Prediction API automatically:

- Generates features from raw data

- Applies any necessary preprocessing

- Finds the optimal parameters/algorithm

- Reports the expected accuracy computed via cross-validation

Page 7: Simple machine learning for the masses - Konstantin Davydov

How can we make Machine Learning even more

accessible?

Smart Autofill Google Spreadsheets Add-on

Page 8: Simple machine learning for the masses - Konstantin Davydov

Open Smart Autofill

Page 9: Simple machine learning for the masses - Konstantin Davydov

Select column to Autofill

Page 10: Simple machine learning for the masses - Konstantin Davydov

Wait for training to complete

Page 11: Simple machine learning for the masses - Konstantin Davydov

Values are filled in

Page 12: Simple machine learning for the masses - Konstantin Davydov

Text Classification Example

● Suppose you send out a survey using Google Forms

● People respond in one of three languages - English, Spanish, or French

● You wish to only view the responses that are in English

Page 13: Simple machine learning for the masses - Konstantin Davydov

Responses of the form

Page 14: Simple machine learning for the masses - Konstantin Davydov

Label the first 100 responses

Page 15: Simple machine learning for the masses - Konstantin Davydov

Autofill the rest

Page 16: Simple machine learning for the masses - Konstantin Davydov

Filter by language

Page 17: Simple machine learning for the masses - Konstantin Davydov

Questions?