Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SafeDining2
Search
ahmad0510
February 12, 2016
Technology
0
24
SafeDining2
Recommender for safe restaurants
ahmad0510
February 12, 2016
Tweet
Share
More Decks by ahmad0510
See All by ahmad0510
Safe Dining Talk
ahmad0510
0
41
Safe Dining Talk
ahmad0510
0
27
Safe Dining
ahmad0510
1
24
Safe Dining
ahmad0510
0
32
Safe Dining
ahmad0510
0
30
Safe Dining
ahmad0510
0
40
Safe Dining
ahmad0510
1
30
SafeDining
ahmad0510
0
35
Safedining3
ahmad0510
0
35
Other Decks in Technology
See All in Technology
Hands-on / Kaname Frusawa / Cloud Compare Users Meetup 2024 at University of Tokyo on April 17
paraworld
2
480
プロトタイピングによる不確実性の低減 / Reducing Uncertainty through Prototyping
ohbarye
4
300
Databricks におけるデータエンジニアリング
databricksjapan
0
380
DevOpsDays History and my DevOps story
kawaguti
PRO
8
1.6k
社内勉強会運営のコツ
senoo
6
1.2k
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
710
〜小さく始めて大きく育てる〜データ分析基盤の開発から活用まで
kniino
0
2k
継続的な改善 x ⾮連続的な進化
sansantech
PRO
3
110
Discord とビルダー&チャットボットの使い方 / How to use Discord and Builder & Chatbots
ks91
PRO
0
130
アプリがつくるNOT A HOTELブランド
hokuts
1
450
o11y入門_外形監視を利用したWebアプリケーションへの最適なモニタリング_TechBrew
k5k
3
100
The CloudCompare project by Dr. Daniel Girardeau-Montaut
kentaitakura
0
510
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
318
37k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
How STYLIGHT went responsive
nonsquared
92
4.8k
Optimizing for Happiness
mojombo
370
69k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
119
39k
Documentation Writing (for coders)
carmenintech
59
3.9k
KATA
mclloyd
14
12k
Become a Pro
speakerdeck
PRO
10
4.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
15
1.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Designing with Data
zakiwarfel
95
4.8k
The Pragmatic Product Professional
lauravandoore
24
5.8k
Transcript
Ahmad Haider Insight Data Science 2016
Personal Story What if I could find which restaurants are
safe and which are not? Mugged @Parking lot ! L Hungry for Pizza! Closest pizza location
Makes Real-Time Recommendations for Safety Ratings Restaurants in a Neighborhood
SafeDining
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location
I want to eat Pizza at 3+ rated restaurant within
2 miles of my location p1 p2 p3 p4 p5 p1 p2 p3 p4 p1 p2 p1 p2 p3 p4 p5 p6 p7 p8 p1 Crime Location Crime Probability
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location p1 p2 p3 p4 p5 p1 p2 p3 p4 p1 p2 p1 p2 p3 p4 p5 p6 p7 p8 p1 Crime Location Crime Probability 1. pRest 1. pRest 1. pRest 1. pRest pRest Crime Probability at restaurant
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location p1 p2 p3 p4 p5 p1 p2 p3 p4 p1 p2 p1 p2 p3 p4 p5 p6 p7 p8 p1 Crime Location Crime Probability 1. pRest 1. pRest 1. pRest 1. pRest pRest Crime Probability at restaurant pRest pRest pRest pRest pRest pRest pRest
I want to eat Pizza at 2+ rated restaurant within
3 miles of my location p1 p2 p3 p4 p5 p1 p2 p3 p4 p1 p2 p1 p2 p3 p4 p5 p6 p7 p8 p1 Crime Location Crime Probability 1. pRest 1. pRest 1. pRest 1. pRest pRest Crime Probability at restaurant pRest pRest pRest pRest pRest pRest pRest 2. Relative Safety Index 2. Relative Safety Index 2. Relative Safety Index 2. Relative Safety Index
Workflow Crime dataset Yelp dataset Preprocessing Defining classification problem Feature
Engineering Choosing a model Validation Python Pandas Regular expr. Multiclass 24 classes (hour of day) Standardization PCA Logistic Regression scikit-learn 10-fold cross validation Log loss score 2009-2015 Yelp search API
Multiclass Classification Predict the hour at which crime
happens at given location Features: Location (lat., long.), Address, Day, Week, Month, Year Labels: 24 classes (hour of day) Logistic Regression Cross entropy loss measure = 2.95 Algorithm
Theft Residential Burglary Robbery Assault Source: mylocalcrime.com Validation My analysis
Independent source
• Ahmad Haider • PhD in “Measurement of energy landscapes
of biological interactions using boltzmann sampling” • Georgia Tech • Love hiking and reading fiction/non-fiction About Me
None