Machine Learning APIs
by Example
Gabriela D'Ávila Ferrara
Developer Advocate
@gabidavila | gabi.dev
What is Machine
Learning?
@gabidavila
Solving problems without
specific rules.
Learning by example and
experience.
@gabidavila
"Machine learning is a
thing-labeler, essentially"
@gabidavila
Exercise
@gabidavila
How would you identify
the following images?
@gabidavila
@gabidavila
@gabidavila
Dog or
muffin?
source: boredpanda.com
And this?
source: boredpanda.com
@gabidavila
ML is/helps with...
Solving problems
without explicitly
knowing the solution
Loosely based on
how the human
brain learns
Enable systems
that improve
over time
Available ML APIs
Cloud Natural
Language
Cloud
Vision
Cloud
Translation
Cloud
Speech
Cloud Video
Intelligence
#WOCinTech
@gabidavila
14
@SRobTweets
Cloud Vision
Complex image detection
with a simple REST request.
@gabidavila
Label & web detection OCR Logo detection
Explicit content detectionCrop hintsLandmark detection
Demo
@gabidavila
Cloud
Vision
API call using Python
@gabidavila
Cloud Vision
in production:
GIPHY
Access for more information:
Engineering.giphy.com
@GIPHYEng
@gabidavila
Cloud
Translation
Translate text into 100+
languages.
@gabidavila
Translate text Detect language
Cloud Vision & Cloud Translation
Demo
@gabidavila
Cloud
Translate
API call using Python
@gabidavila
Cloud
Natural
Language
Understand text with a
simple REST API request.
@gabidavila
Extract entities Detect
sentiment
Analyze syntax Classify content
Entities
I went to the ⟨restaurant⟩2
and ordered
⟨sushi⟩1
. The ⟨food⟩3
was really good.
Localization
2. restaurant
Consumer Good
1. sushi
Other
3. food
@gabidavila
Sentiment
score magnitude
Document 0.3 0.9
I went to the restaurant and ordered sushi. -0.1 0.1
The food was really good. 0.8 0.8
Score Range -1.0 — -0.25 -0.25 — 0.25 0.25 — 1.0
Negative Neutral Positive
@gabidavila
Syntax Analysis
@gabidavila
@gabidavila
Content Classification
Rafael Montero Shines in Mets’ Victory Over the Reds. Montero, who
was demoted at midseason, took a one-hitter into the ninth inning as
the Mets continued to dominate Cincinnati with a win at Great
American Ball Park.
{ categories:
[
{
name: '/Sports/Team
Sports/Baseball',
confidence: 0.99
}
]
}
@gabidavila
Demo
@gabidavila
Get to know
more about
the APIs
Vision: cloud.google.com/vision
Video: cloud.google.com/video-intelligence
Speech: cloud.google.com/speech
Translation: cloud.google.com/translation
Natural Language: cloud.google.com/natural-language
Thank you!
@gabidavila
gabi.dev
@gabidavila

PyTexas - Machine learning APIs by Example