-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.html
475 lines (444 loc) · 17.3 KB
/
slides.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="author"
content="Unstructured Data Into Your Feature Set" />
<title>Get Out of My Dreams and Into My Model</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="reveal.js/css/reveal.min.css"/>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet" href="reveal.js/css/theme/sky.css" id="theme">
<link rel="stylesheet" media="print" href="reveal.js/css/print/pdf.css" />
<!--[if lt IE 9]>
<script src="reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section class="titleslide slide level1">
<h1 class="title">Get Out of My Dreams...</h1>
</section>
<section class="slide level2">
<h1 class="title">...and Into My Model.</h1>
</section>
<section class="slide level2">
<h2 class="title">Incorporating Unstructured Data Into Your Feature Set</h2>
</section>
<section class="slide level2">
<h2 class="author">Rob Mealey</h2>
<h3> Machine Learning @ <a href='http://www.newbrandanalytics.com'>NewBrand</a></h3>
<h3 class="date">Nov 20, 2014 </h3>
</section>
</section>
<section>
<section id="assumptions-1" class="slide level1">
<h2>Making it easy for myself...</h2>
</section>
<section id="assumptions-2" class="slide level2">
<h2>meaning at minimum I will definitely annoy the PhD's in the room...</h2>
</section>
<section id="assumptions-3" class="slide level2">
<h2>just a <em>smidge</em> of false advertising...</h2>
</section>
</section>
<section>
<section id="some-questions" class="titleslide slide level1">
<h1>First, a Few Questions...</h1>
</section>
</section>
<section>
<section id="reasons-1" class="titleslide slide level1">
<h1> What's your goal here? </h1>
</section>
<section id="reasons-2" class="slide level2">
<img src="img/fortuneteller.jpg">
</section>
<section id="reasons-3" class="level2">
<table style="margin-left:auto; margin-right:auto; font-size: 40px; width:80%;">
<tbody>
<tr> <td > "MALE" </td>
<td style="text-align:right;"> 22 </td> </tr>
<tr> <td > "FEMALE" </td>
<td style="text-align:right;"> 35 </td> </tr>
<tr> <td > "Female" </td>
<td style="text-align:right;"> 40 </td> </tr>
<tr> <td > "male" </td>
<td style="text-align:right;"> 212 </td> </tr>
<tr> <td > "malEe" </td>
<td style="text-align:right;"> 10 </td> </tr>
<tr> <td > "Emale" </td>
<td style="text-align:right;"> 191 </td> </tr>
<tr> <td > "f" </td>
<td style="text-align:right;"> 142 </td> </tr>
<tr> <td > "m" </td>
<td style="text-align:right;"> 220 </td> </tr>
<tr> <td > "Unknown" </td>
<td style="text-align:right;"> 10040 </td> </tr>
<tr> <td > "XXXX" </td>
<td style="text-align:right;"> 8020 </td> </tr>
<tr> <td > "Michigan" </td>
<td style="text-align:right;"> 20 </td> </tr>
</tbody>
</table>
</section>
<section id="reasons-4" class="slide level2">
<img src='img/dag.png' style="width:100%">
</section>
<section id="reasons-5" class="slide level2">
<h1>What does your boss care about?</h1>
</section>
</section>
<section>
<section id="what-does-your-structured-data-look-like" class="titleslide slide level1">
<h1>What do your structured data look like?</h1>
</section>
<section id="what-does-your-structured-data-look-like-1" class="slide level2">
<h1>What <b>does</b> your structured data look like?</h1>
</section>
<section id="how-much-of-it-you-got" class="slide level2">
<h1>How much of it you got?</h1>
</section>
<section id="sparse-dense" class="slide level2">
<h1>Sparse? Dense?</h1>
</section>
</section>
<section>
<section id="what-does-your-corpus-look-like" class="titleslide slide level1">
<h1>What does your corpus look like?</h1>
</section>
<section id="whats-the-link" class="slide level2">
<h1>What's the link?</h1>
</section>
<section id="how-much-of-it-you-got-1" class="slide level2">
<h1>big data? data stream? data lake?</h1>
</section>
<section id="got-labels" class="slide level2">
<h1>Got labels?</h1>
<h1>how'd you get em?</h1>
</section>
<section id="there-is-some-there-there..." class="slide level2">
<h1> There is some there there, right? </h1>
</section>
</section>
<section>
<section id="last-question-model-evaluation" class="titleslide slide level1">
<h1>Last question: Model evaluation?</h1>
</section>
<section id="how-do-you-feel-about-p-values" class="slide level2">
<img src="img/Jelly-beans-p-value.png">
</section>
<section id="precision-recall" class="slide level2">
<img src="img/Recall-precision.svg.png">
</section>
</section>
<section>
<section id="preprocessing" class="titleslide slide level1">
<h1>Preprocessing</h1>
</section>
<section id="bag-of-ngrams" class="slide level2">
<h1>bag-of-ngrams</h1>
</section>
<section id="chunking" class="slide level2">
<h1>chunking</h1>
</section>
<section id="stopwords" class="slide level2">
<h1>stopword filtering</h1>
</section>
</section>
<section>
<section id="pure-prediction-1" class="titleslide slide level1">
<img src='img/kitchen-sink.jpg' style='width:75%' >
</section>
<section id="pure-prediction-2" class="slide level2">
<h1> What do you mean, specification? </h1>
</section>
<section id="pure-prediction-3" class="slide level2">
<img src='img/regularization.jpg' style='width:75%' >
</section>
<section id="pure-prediction-4" class="slide level2">
<img src='img/deep-learning.jpg' style='width:75%' >
</section>
<section id="pure-prediction-4" class="slide level2">
<img src='img/black-box.jpg' style='width:75%' >
</section>
</section>
<section>
<section id="heuristics-1" class="titleslide slide level1">
<h1> Heuristics </h1>
</section>
<section id="heuristics-2" class="slide level2">
<img src='img/making-the-rules.jpg' style='width:75%' >
</section>
<section id="heuristics-3" class="slide level2">
<h2>"dirty" vs "clean"</h2>
<h2>"rust"</h2>
<h2>"rude"</h2>
</section>
<section id="heuristics-4" class="slide level2">
<table style='border-collapse: collapse; text-size:30px; width:80%; margin-right:auto; margin-left:auto;'>
<thead>
<tr style="border-bottom: 1px solid black;">
<th style="text-align:center;">DocId</th>
<th style="text-align:center;">DIRTY</th>
<th style="text-align:center;">RUDE</th>
<th style="text-align:center;">CLEAN</th>
<th style="text-align:center;">...</th>
</tr>
</thead>
<tbody style="border-bottom: 1px solid black;">
<tr >
<td style="text-align:center;">DOC1</td>
<td style="text-align:right;">0</td>
<td style="text-align:right;">1</td>
<td style="text-align:right;">0</td>
<td style="text-align:center;">...</td>
</tr>
<tr >
<td style="text-align:center;">DOC2</td>
<td style="text-align:right;">0</td>
<td style="text-align:right;">1</td>
<td style="text-align:right;">0</td>
<td style="text-align:center;">...</td>
</tr>
<tr >
<td style="text-align:center;">DOC2</td>
<td style="text-align:right;">1</td>
<td style="text-align:right;">0</td>
<td style="text-align:right;">1</td>
<td style="text-align:center;">...</td>
</tr>
</tbody>
</table>
</section>
<section id="heuristics-4" class="slide level2">
<h2>"OMFG, is that a quadruple negative?"</h2>
</section>
</section>
<section>
<section id="full-generative-model-1" class="titleslide slide level1">
<h1>Total. Probability.</h1>
</section>
<section id="full-generative-model-3" class="slide level2">
<img src='img/hierarchical.png' style='width:100%;'>
</section>
<section id="full-generative-model-4" class="slide level2">
<img src='img/everything.gif' style='width:100%;'>
</section>
<section id="full-generative-model-5" class="slide level2">
<h2> You should check if you've been fired. </h2>
</section>
<section id="full-generative-model-6" class="slide level2">
<h2> Also, it is 2037 now. </h2>
</section>
<section id="full-generative-model-7" class="slide level2">
<h2> PyMC, BUGS/JAGS, STAN </h2>
</section>
</section>
<section>
<section id="middle-1" class="titleslide slide level1">
<h1> the middle roads... </h1>
</section>
</section>
<section>
<section id="middle-2" class="titleslide slide level1">
<h1> sub-classifiers </h1>
</section>
<section id="middle-3" class="slide level2">
<h1> need good labels... </h1>
<h3> inter-annotator agreement? </h3>
</section>
<section id="middle-4" class="slide level2">
<h1> use the uncertainty... </h1>
</section>
<section id="middle-5" class="slide level2">
<h1> GIGO! </h1>
<h3> Also YOLO. </h3>
</section>
</section>
<section>
<section id="feature-learning-1" class="titleslide slide level1">
<h1> semi- or unsupervised methods </h1>
</section>
<section id="feature-learning-4" class="slide level2">
<h1> dimensionality reduction </h1>
</section>
<section id="feature-learning-2" class="slide level2">
<h1> clustering </h1>
</section>
<section id="feature-learning-3" class="slide level2">
<h1> topic modeling </h1>
<h2> probabilistic or otherwise </h2>
</section>
<section id="feature-learning-3" class="slide level2">
<h1> need lots of the data... </h1>
</section>
</section>
<section>
<section id="gotchas-1" class="titleslide slide level1">
<h1>Gotchas</h1>
</section>
<section id="gotchas-2" class="slide level2">
<h1> "endogeneity" </h1>
<h3> If you are an econometrician,</h3>
<h3> read this paper: </h3>
<a href='http://ftp.cs.ucla.edu/pub/stat_ser/r395.pdf'>
<p>Regression and Causation:</p>
<p>A Critical Examination of Six Econometrics Textbooks by Bryant Chen and Judea Pearl</p></a>
</section>
<section id="gotchas-2" class="slide level2">
<h1> mind your betas... </h1>
</section>
<section id="gotchas-3" class="slide level2">
<h1>you thought they were hard to interpret before?</h1>
</section>
</section>
<section>
<section id="some examples" class="titleslide slide level1">
<img src='img/real-world.jpg' style='width:80%;'>
</section>
</section>
<section>
<section id="promotion-targeting-1" class="titleslide slide level1">
<h1>Task:</h1>
<h2>predict receptiveness of potential targets for a promotional campaign.</h2>
</section>
<section id="promotion-targeting-2" class="slide level2">
<img src='img/what-to-do.jpg'>
</section>
<section id="promotion-targeting-3" class="slide level2">
<h2>Structured Data:</h2>
<ol>
<li>demographics</li>
<li>purchase history</li>
<li>?</li>
</ol>
</section>
<section id="promotion-targeting-3" class="slide level2">
<h2>Unstructured Data:</h2>
<h2>Streams of "Chirps"</h2>
</section>
<section id="promotion-targeting-4" class="slide level2">
<h2>Links: one "row" of structured data to many "documents"</h2>
</section>
<section id="promotion-targeting-5" class="slide level2">
<h2>Links: classifying document/content authors</h2>
</section>
<section id="promotion-targeting-6" class="slide level2">
<h2> Kitchen sink approach... </h2>
<h2> also can fill in demographic holes, as mentioned before </h2>
</section>
</section>
<section>
<section id="location-comparison-1" class="titleslide slide level1">
<h1>Task:</h1>
<h2>predict operational metrics at different locations of a service business</h2>
</section>
<section id="location-comparison-2" class="slide level2">
<img src='img/explain.png'>
</section>
</section>
<section>
<section id="daily-deal-success-1" class="titleslide slide level1">
<h1>Task:</h1>
<h2>predict merchant upside for participating in a "daily deal" promotion</h2>
</section>
<section id="daily-deal-success-2" class="slide level2">
<h2> What AND why. </h2>
</section>
<section id="daily-deal-success-2" class="slide level2">
<img src='img/deal.jpg' style='width:80%'>
</section>
</section>
<section>
<section id="tools-matter-1" class="titleslide slide level1">
<h1> tools matter... </h1>
</section>
<section id="tools-matter-2" class="slide level2">
<h1> because you're probably going to need some help... </h1>
</section>
<section id="tools-matter--3" class="slide level2">
<h1> How many SASonistas we got in the house? </h1>
</section>
<section id="tools-matter-4" class="slide level2">
<h1> What about Stataniacs? </h1>
</section>
</section>
<section>
<section id="python-0" class="titleslide slide level1">
<img src="img/python.jpg">
</section>
<section id="python-1" class="slide level2">
<h2> numpy/scipy </h2>
</section>
<section id="python-2" class="slide level2">
<img src="img/nltk.jpg" style='width:40%;'>
</section>
<section id="python-3" class="slide level2">
<a href="http://scikit-learn.org"><img src="img/sklearn.png"></a>
<h2><a href='http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html'>
CountVectorizer</a></h2>
<h2><a href='http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.HashingVectorizer.html'>
HashingVectorizer</a></h2>
</section>
<section id="python-3" class="slide level2">
<img src="img/gensim.png">
</section>
<section id="python-4" class="slide level2">
<a href='http://www.deeplearning.net/tutorial/'>
<img src="img/theano.png">
</a>
</section>
</section>
<section>
<section id="rstats-1" class="titleslide slide level1">
<img src="img/rlogo.jpg">
</section>
<section id="rstats-2" class="slide level2">
<h2> "tm" package </h2>
<a href="http://cran.r-project.org/web/views/NaturalLanguageProcessing.html" >
CRAN Task View: Natural Language Processing</a>
</section>
<section id="rstats-3" class="slide level2">
<a href='http://had.co.nz/'><img src='img/hadley.jpg'></a>
<h3> "I'm so much more than just ggplot2." </h3>
<h4> (Disclaimer: No way he has ever said that.) </h4>
</section>
</section>
<section>
<section id="questions" class="titleslide slide level1">
<h1>Questions?</h1>
<h2>www.obscureanalytics.com</h2>
</section>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// { src: 'reveal.js/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; }, }
// { src: 'reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]});
</script>
</body>
</html>