Skip to content

Commit a9e28e1

Browse files
committed
update
1 parent dbb0985 commit a9e28e1

File tree

429 files changed

+9843
-3111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+9843
-3111
lines changed

08_PredictionAndMachineLearning/002whatIsPrediction/index.Rmd

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
88
highlighter : highlight.js # {highlight.js, prettify, highlight}
99
hitheme : tomorrow #
1010
url:
11-
lib: ../../libraries
11+
lib: ../../librariesNew
1212
assets: ../../assets
1313
widgets : [mathjax] # {mathjax, quiz, bootstrap}
1414
mode : selfcontained # {standalone, draft}
@@ -34,7 +34,16 @@ knit_hooks$set(plot = knitr:::hook_plot_html)
3434

3535
## The central dogma of prediction
3636

37-
<img class=center src=../../assets/img/08_PredictionAndMachineLearning/centraldogma.png height=450>
37+
<img class="center" src=../../assets/img/08_PredictionAndMachineLearning/centraldogma.png height=450>
38+
39+
---
40+
41+
## What can go wrong
42+
43+
<img class="center" src=../../assets/img/08_PredictionAndMachineLearning/googleflu.png height=450>
44+
45+
46+
http://www.sciencemag.org/content/343/6176/1203.full.pdf
3847

3948
---
4049

08_PredictionAndMachineLearning/002whatIsPrediction/index.html

+156-75
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,70 @@
88
<meta name="generator" content="slidify" />
99
<meta name="apple-mobile-web-app-capable" content="yes">
1010
<meta http-equiv="X-UA-Compatible" content="chrome=1">
11-
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/default.css" media="all" >
12-
<link rel="stylesheet" href="../../libraries/frameworks/io2012/phone.css"
11+
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/default.css" media="all" >
12+
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/phone.css"
1313
media="only screen and (max-device-width: 480px)" >
14-
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/slidify.css" >
15-
<link rel="stylesheet" href="../../libraries/highlighters/highlight.js/css/tomorrow.css" />
16-
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->
17-
<script data-main="../../libraries/frameworks/io2012/js/slides"
18-
src="../../libraries/frameworks/io2012/js/require-1.0.8.min.js">
14+
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/slidify.css" >
15+
<link rel="stylesheet" href="../../librariesNew/highlighters/highlight.js/css/tomorrow.css" />
16+
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->
17+
18+
<!-- Grab CDN jQuery, fall back to local if offline -->
19+
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
20+
<script>window.jQuery || document.write('<script src="../../librariesNew/widgets/quiz/js/jquery.js"><\/script>')</script>
21+
<script data-main="../../librariesNew/frameworks/io2012/js/slides"
22+
src="../../librariesNew/frameworks/io2012/js/require-1.0.8.min.js">
1923
</script>
2024

21-
<link rel="stylesheet" href = "../../assets/css/custom.css">
22-
<link rel="stylesheet" href = "../../assets/css/custom.css.BACKUP.546.css">
23-
<link rel="stylesheet" href = "../../assets/css/custom.css.BASE.546.css">
24-
<link rel="stylesheet" href = "../../assets/css/custom.css.LOCAL.546.css">
25-
<link rel="stylesheet" href = "../../assets/css/custom.css.orig">
26-
<link rel="stylesheet" href = "../../assets/css/custom.css.REMOTE.546.css">
27-
<link rel="stylesheet" href = "../../assets/css/ribbons.css">
25+
2826

2927
</head>
3028
<body style="opacity: 0">
3129
<slides class="layout-widescreen">
3230

3331
<!-- LOGO SLIDE -->
34-
<!-- END LOGO SLIDE -->
32+
<slide class="title-slide segue nobackground">
33+
<aside class="gdbar">
34+
<img src="../../assets/img/bloomberg_shield.png">
35+
</aside>
36+
<hgroup class="auto-fadein">
37+
<h1>What is prediction?</h1>
38+
<h2></h2>
39+
<p>Jeffrey Leek<br/>Johns Hopkins Bloomberg School of Public Health</p>
40+
</hgroup>
41+
<article></article>
42+
</slide>
3543

3644

37-
<!-- TITLE SLIDE -->
38-
<!-- Should I move this to a Local Layout File? -->
39-
<slide class="title-slide segue nobackground">
40-
<aside class="gdbar">
41-
<img src="../../assets/img/bloomberg_shield.png">
42-
</aside>
43-
<hgroup class="auto-fadein">
44-
<h1>What is prediction?</h1>
45-
<h2></h2>
46-
<p>Jeffrey Leek<br/>Johns Hopkins Bloomberg School of Public Health</p>
47-
</hgroup>
48-
</slide>
49-
5045
<!-- SLIDES -->
51-
<slide class="" id="slide-1" style="background:;">
46+
<slide class="" id="slide-1" style="background:;">
5247
<hgroup>
5348
<h2>The central dogma of prediction</h2>
5449
</hgroup>
55-
<article>
56-
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/centraldogma.png height=450></p>
50+
<article data-timings="">
51+
<p><img class="center" src=../../assets/img/08_PredictionAndMachineLearning/centraldogma.png height=450></p>
5752

5853
</article>
5954
<!-- Presenter Notes -->
6055
</slide>
6156

62-
<slide class="" id="slide-2" style="background:;">
57+
<slide class="" id="slide-2" style="background:;">
58+
<hgroup>
59+
<h2>What can go wrong</h2>
60+
</hgroup>
61+
<article data-timings="">
62+
<p><img class="center" src=../../assets/img/08_PredictionAndMachineLearning/googleflu.png height=450></p>
63+
64+
<p><a href="http://www.sciencemag.org/content/343/6176/1203.full.pdf">http://www.sciencemag.org/content/343/6176/1203.full.pdf</a></p>
65+
66+
</article>
67+
<!-- Presenter Notes -->
68+
</slide>
69+
70+
<slide class="" id="slide-3" style="background:;">
6371
<hgroup>
6472
<h2>Components of a predictor</h2>
6573
</hgroup>
66-
<article>
74+
<article data-timings="">
6775
<p></br></p>
6876

6977
<p><center> question -&gt; input data -&gt; features -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -72,11 +80,11 @@ <h2>Components of a predictor</h2>
7280
<!-- Presenter Notes -->
7381
</slide>
7482

75-
<slide class="" id="slide-3" style="background:;">
83+
<slide class="" id="slide-4" style="background:;">
7684
<hgroup>
7785
<h2>SPAM Example</h2>
7886
</hgroup>
79-
<article>
87+
<article data-timings="">
8088
<p></br></p>
8189

8290
<p><center> <redtext>question</redtext> -&gt; input data -&gt; features -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -95,11 +103,11 @@ <h2>SPAM Example</h2>
95103
<!-- Presenter Notes -->
96104
</slide>
97105

98-
<slide class="" id="slide-4" style="background:;">
106+
<slide class="" id="slide-5" style="background:;">
99107
<hgroup>
100108
<h2>SPAM Example</h2>
101109
</hgroup>
102-
<article>
110+
<article data-timings="">
103111
<p></br></p>
104112

105113
<p><center> question -&gt; <redtext>input data </redtext> -&gt; features -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -112,11 +120,11 @@ <h2>SPAM Example</h2>
112120
<!-- Presenter Notes -->
113121
</slide>
114122

115-
<slide class="" id="slide-5" style="background:;">
123+
<slide class="" id="slide-6" style="background:;">
116124
<hgroup>
117125
<h2>SPAM Example</h2>
118126
</hgroup>
119-
<article>
127+
<article data-timings="">
120128
<p></br></p>
121129

122130
<p><center> question -&gt; input data -&gt; <redtext>features</redtext> -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -137,11 +145,11 @@ <h2>SPAM Example</h2>
137145
<!-- Presenter Notes -->
138146
</slide>
139147

140-
<slide class="" id="slide-6" style="background:;">
148+
<slide class="" id="slide-7" style="background:;">
141149
<hgroup>
142150
<h2>SPAM Example</h2>
143151
</hgroup>
144-
<article>
152+
<article data-timings="">
145153
<p></br></p>
146154

147155
<p><center> question -&gt; input data -&gt; <redtext>features</redtext> -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -167,11 +175,11 @@ <h2>SPAM Example</h2>
167175
<!-- Presenter Notes -->
168176
</slide>
169177

170-
<slide class="" id="slide-7" style="background:;">
178+
<slide class="" id="slide-8" style="background:;">
171179
<hgroup>
172180
<h2>SPAM Example</h2>
173181
</hgroup>
174-
<article>
182+
<article data-timings="">
175183
<p></br></p>
176184

177185
<p><center> question -&gt; input data -&gt; <redtext>features</redtext> -&gt; algorithm -&gt; parameters -&gt; evaluation </center></p>
@@ -222,11 +230,11 @@ <h2>SPAM Example</h2>
222230
<!-- Presenter Notes -->
223231
</slide>
224232

225-
<slide class="" id="slide-8" style="background:;">
233+
<slide class="" id="slide-9" style="background:;">
226234
<hgroup>
227235
<h2>SPAM Example</h2>
228236
</hgroup>
229-
<article>
237+
<article data-timings="">
230238
<p><center> question -&gt; input data -&gt; features -&gt; <redtext>algorithm</redtext> -&gt; parameters -&gt; evaluation </center></p>
231239

232240
<pre><code class="r">plot(density(spam$your[spam$type==&quot;nonspam&quot;]),
@@ -240,11 +248,11 @@ <h2>SPAM Example</h2>
240248
<!-- Presenter Notes -->
241249
</slide>
242250

243-
<slide class="" id="slide-9" style="background:;">
251+
<slide class="" id="slide-10" style="background:;">
244252
<hgroup>
245253
<h2>SPAM Example</h2>
246254
</hgroup>
247-
<article>
255+
<article data-timings="">
248256
<p><center> question -&gt; input data -&gt; features -&gt; <redtext>algorithm</redtext> -&gt; parameters -&gt; evaluation </center></p>
249257

250258
<p></br></br></p>
@@ -260,11 +268,11 @@ <h2>SPAM Example</h2>
260268
<!-- Presenter Notes -->
261269
</slide>
262270

263-
<slide class="" id="slide-10" style="background:;">
271+
<slide class="" id="slide-11" style="background:;">
264272
<hgroup>
265273
<h2>SPAM Example</h2>
266274
</hgroup>
267-
<article>
275+
<article data-timings="">
268276
<p><center> question -&gt; input data -&gt; features -&gt; algorithm -&gt; <redtext>parameters</redtext> -&gt; evaluation </center></p>
269277

270278
<pre><code class="r">plot(density(spam$your[spam$type==&quot;nonspam&quot;]),
@@ -279,11 +287,11 @@ <h2>SPAM Example</h2>
279287
<!-- Presenter Notes -->
280288
</slide>
281289

282-
<slide class="" id="slide-11" style="background:;">
290+
<slide class="" id="slide-12" style="background:;">
283291
<hgroup>
284292
<h2>SPAM Example</h2>
285293
</hgroup>
286-
<article>
294+
<article data-timings="">
287295
<p><center> question -&gt; input data -&gt; features -&gt; algorithm -&gt; parameters -&gt; <redtext>evaluation</redtext></center></p>
288296

289297
<pre><code class="r">prediction &lt;- ifelse(spam$your &gt; 0.5,&quot;spam&quot;,&quot;nonspam&quot;)
@@ -296,42 +304,115 @@ <h2>SPAM Example</h2>
296304
spam 0.1469 0.2923
297305
</code></pre>
298306

299-
<p>\(Accuracy \approx 0.459 + 0.292 = 0.751\)</p>
307+
<p>Accuracy$ \approx 0.459 + 0.292 = 0.751$</p>
300308

301309
</article>
302310
<!-- Presenter Notes -->
303311
</slide>
304312

305313
<slide class="backdrop"></slide>
306314
</slides>
307-
308-
<!--[if IE]>
315+
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
316+
<ul>
317+
<li>
318+
<a href="#" target="_self" rel='tooltip'
319+
data-slide=1 title='The central dogma of prediction'>
320+
1
321+
</a>
322+
</li>
323+
<li>
324+
<a href="#" target="_self" rel='tooltip'
325+
data-slide=2 title='What can go wrong'>
326+
2
327+
</a>
328+
</li>
329+
<li>
330+
<a href="#" target="_self" rel='tooltip'
331+
data-slide=3 title='Components of a predictor'>
332+
3
333+
</a>
334+
</li>
335+
<li>
336+
<a href="#" target="_self" rel='tooltip'
337+
data-slide=4 title='SPAM Example'>
338+
4
339+
</a>
340+
</li>
341+
<li>
342+
<a href="#" target="_self" rel='tooltip'
343+
data-slide=5 title='SPAM Example'>
344+
5
345+
</a>
346+
</li>
347+
<li>
348+
<a href="#" target="_self" rel='tooltip'
349+
data-slide=6 title='SPAM Example'>
350+
6
351+
</a>
352+
</li>
353+
<li>
354+
<a href="#" target="_self" rel='tooltip'
355+
data-slide=7 title='SPAM Example'>
356+
7
357+
</a>
358+
</li>
359+
<li>
360+
<a href="#" target="_self" rel='tooltip'
361+
data-slide=8 title='SPAM Example'>
362+
8
363+
</a>
364+
</li>
365+
<li>
366+
<a href="#" target="_self" rel='tooltip'
367+
data-slide=9 title='SPAM Example'>
368+
9
369+
</a>
370+
</li>
371+
<li>
372+
<a href="#" target="_self" rel='tooltip'
373+
data-slide=10 title='SPAM Example'>
374+
10
375+
</a>
376+
</li>
377+
<li>
378+
<a href="#" target="_self" rel='tooltip'
379+
data-slide=11 title='SPAM Example'>
380+
11
381+
</a>
382+
</li>
383+
<li>
384+
<a href="#" target="_self" rel='tooltip'
385+
data-slide=12 title='SPAM Example'>
386+
12
387+
</a>
388+
</li>
389+
</ul>
390+
</div> <!--[if IE]>
309391
<script
310392
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
311393
</script>
312394
<script>CFInstall.check({mode: 'overlay'});</script>
313395
<![endif]-->
314396
</body>
315-
<!-- Grab CDN jQuery, fall back to local if offline -->
316-
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
317-
<script>window.jQuery || document.write('<script src="../../libraries/widgets/quiz/js/jquery-1.7.min.js"><\/script>')</script>
318-
<!-- Load Javascripts for Widgets -->
319-
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
320-
<script type="text/x-mathjax-config">
321-
MathJax.Hub.Config({
322-
tex2jax: {
323-
inlineMath: [['$','$'], ['\\(','\\)']],
324-
processEscapes: true
325-
}
326-
});
327-
</script>
328-
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
329-
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
330-
</script> -->
331-
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="../../libraries/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')
397+
<!-- Load Javascripts for Widgets -->
398+
399+
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
400+
<script type="text/x-mathjax-config">
401+
MathJax.Hub.Config({
402+
tex2jax: {
403+
inlineMath: [['$','$'], ['\\(','\\)']],
404+
processEscapes: true
405+
}
406+
});
407+
</script>
408+
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
409+
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
410+
</script> -->
411+
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="../../librariesNew/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')
332412
</script>
333413
<!-- LOAD HIGHLIGHTER JS FILES -->
334-
<script src="../../libraries/highlighters/highlight.js/highlight.pack.js"></script>
335-
<script>hljs.initHighlightingOnLoad();</script>
336-
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
337-
</html>
414+
<script src="../../librariesNew/highlighters/highlight.js/highlight.pack.js"></script>
415+
<script>hljs.initHighlightingOnLoad();</script>
416+
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
417+
418+
</html>

0 commit comments

Comments
 (0)