simple machine learning for the masses - konstantin davydov
TRANSCRIPT
![Page 1: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/1.jpg)
Machine Learning for the Masses
using Google Prediction API
PAPIs 2015
![Page 2: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/2.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/3.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/5.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/7.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/8.jpg)
Open Smart Autofill
![Page 9: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/9.jpg)
Select column to Autofill
![Page 10: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/10.jpg)
Wait for training to complete
![Page 11: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/11.jpg)
Values are filled in
![Page 12: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/12.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/13.jpg)
Responses of the form
![Page 14: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/14.jpg)
Label the first 100 responses
![Page 15: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/15.jpg)
Autofill the rest
![Page 16: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/16.jpg)
Filter by language
![Page 17: Simple machine learning for the masses - Konstantin Davydov](https://reader031.vdocuments.net/reader031/viewer/2022030316/58748ff71a28abc62f8b8fcf/html5/thumbnails/17.jpg)
Questions?