Skip to content

Commit 90fe681

Browse files
committed
update
1 parent 5b1b582 commit 90fe681

40 files changed

+175
-77
lines changed

08_PracticalMachineLearning/001predictionMotivation/index.Rmd

+1-1
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}

08_PracticalMachineLearning/001predictionMotivation/index.html

+127-71
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,46 @@
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>Motivation and pre-requisites</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>Motivation and pre-requisites</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>About this course</h2>
5449
</hgroup>
55-
<article>
50+
<article data-timings="">
5651
<ul>
5752
<li>This course covers the basic ideas behind machine learning/prediction
5853

@@ -80,11 +75,11 @@ <h2>About this course</h2>
8075
<!-- Presenter Notes -->
8176
</slide>
8277

83-
<slide class="" id="slide-2" style="background:;">
78+
<slide class="" id="slide-2" style="background:;">
8479
<hgroup>
8580
<h2>Who predicts?</h2>
8681
</hgroup>
87-
<article>
82+
<article data-timings="">
8883
<ul>
8984
<li>Local governments -&gt; pension payments</li>
9085
<li>Google -&gt; whether you will click on an ad</li>
@@ -97,11 +92,11 @@ <h2>Who predicts?</h2>
9792
<!-- Presenter Notes -->
9893
</slide>
9994

100-
<slide class="" id="slide-3" style="background:;">
95+
<slide class="" id="slide-3" style="background:;">
10196
<hgroup>
10297
<h2>Why predict? Glory!</h2>
10398
</hgroup>
104-
<article>
99+
<article data-timings="">
105100
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/volinsky.png height=450></p>
106101

107102
<p><a href="http://www.zimbio.com/photos/Chris+Volinsky">http://www.zimbio.com/photos/Chris+Volinsky</a></p>
@@ -110,11 +105,11 @@ <h2>Why predict? Glory!</h2>
110105
<!-- Presenter Notes -->
111106
</slide>
112107

113-
<slide class="" id="slide-4" style="background:;">
108+
<slide class="" id="slide-4" style="background:;">
114109
<hgroup>
115110
<h2>Why predict? Riches!</h2>
116111
</hgroup>
117-
<article>
112+
<article data-timings="">
118113
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/heritage.png height=450></p>
119114

120115
<p><a href="http://www.heritagehealthprize.com/c/hhp">http://www.heritagehealthprize.com/c/hhp</a></p>
@@ -123,11 +118,11 @@ <h2>Why predict? Riches!</h2>
123118
<!-- Presenter Notes -->
124119
</slide>
125120

126-
<slide class="" id="slide-5" style="background:;">
121+
<slide class="" id="slide-5" style="background:;">
127122
<hgroup>
128123
<h2>Why predict? For sport!</h2>
129124
</hgroup>
130-
<article>
125+
<article data-timings="">
131126
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/kaggle.png height=350></p>
132127

133128
<p><a href="http://www.kaggle.com/">http://www.kaggle.com/</a></p>
@@ -136,11 +131,11 @@ <h2>Why predict? For sport!</h2>
136131
<!-- Presenter Notes -->
137132
</slide>
138133

139-
<slide class="" id="slide-6" style="background:;">
134+
<slide class="" id="slide-6" style="background:;">
140135
<hgroup>
141136
<h2>Why predict? To save lives!</h2>
142137
</hgroup>
143-
<article>
138+
<article data-timings="">
144139
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/oncotype.png height=350></p>
145140

146141
<p><a href="http://www.oncotypedx.com/en-US/Home">http://www.oncotypedx.com/en-US/Home</a></p>
@@ -149,11 +144,11 @@ <h2>Why predict? To save lives!</h2>
149144
<!-- Presenter Notes -->
150145
</slide>
151146

152-
<slide class="" id="slide-7" style="background:;">
147+
<slide class="" id="slide-7" style="background:;">
153148
<hgroup>
154149
<h2>A useful (if a bit advanced) book</h2>
155150
</hgroup>
156-
<article>
151+
<article data-timings="">
157152
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/elemlearn.png height=350></p>
158153

159154
<p><a href="http://statweb.stanford.edu/%7Etibs/ElemStatLearn/">The elements of statistical learning</a></p>
@@ -162,11 +157,11 @@ <h2>A useful (if a bit advanced) book</h2>
162157
<!-- Presenter Notes -->
163158
</slide>
164159

165-
<slide class="" id="slide-8" style="background:;">
160+
<slide class="" id="slide-8" style="background:;">
166161
<hgroup>
167162
<h2>A useful package</h2>
168163
</hgroup>
169-
<article>
164+
<article data-timings="">
170165
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/caret.png height=350></p>
171166

172167
<p><a href="http://caret.r-forge.r-project.org/">http://caret.r-forge.r-project.org/</a></p>
@@ -175,11 +170,11 @@ <h2>A useful package</h2>
175170
<!-- Presenter Notes -->
176171
</slide>
177172

178-
<slide class="" id="slide-9" style="background:;">
173+
<slide class="" id="slide-9" style="background:;">
179174
<hgroup>
180175
<h2>Machine learning (more advanced material)</h2>
181176
</hgroup>
182-
<article>
177+
<article data-timings="">
183178
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/machinelearning.png height=350></p>
184179

185180
<p><a href="https://www.coursera.org/course/ml">https://www.coursera.org/course/ml</a></p>
@@ -188,11 +183,11 @@ <h2>Machine learning (more advanced material)</h2>
188183
<!-- Presenter Notes -->
189184
</slide>
190185

191-
<slide class="" id="slide-10" style="background:;">
186+
<slide class="" id="slide-10" style="background:;">
192187
<hgroup>
193188
<h2>Even more resources</h2>
194189
</hgroup>
195-
<article>
190+
<article data-timings="">
196191
<ul>
197192
<li><a href="http://www.quora.com/Machine-Learning/What-are-some-good-resources-for-learning-about-machine-learning-Why">List of machine learning resources on Quora</a></li>
198193
<li><a href="http://www.sciencemag.org/site/feature/data/compsci/machine_learning.xhtml">List of machine learning resources from Science</a></li>
@@ -207,34 +202,95 @@ <h2>Even more resources</h2>
207202

208203
<slide class="backdrop"></slide>
209204
</slides>
210-
211-
<!--[if IE]>
205+
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
206+
<ul>
207+
<li>
208+
<a href="#" target="_self" rel='tooltip'
209+
data-slide=1 title='About this course'>
210+
1
211+
</a>
212+
</li>
213+
<li>
214+
<a href="#" target="_self" rel='tooltip'
215+
data-slide=2 title='Who predicts?'>
216+
2
217+
</a>
218+
</li>
219+
<li>
220+
<a href="#" target="_self" rel='tooltip'
221+
data-slide=3 title='Why predict? Glory!'>
222+
3
223+
</a>
224+
</li>
225+
<li>
226+
<a href="#" target="_self" rel='tooltip'
227+
data-slide=4 title='Why predict? Riches!'>
228+
4
229+
</a>
230+
</li>
231+
<li>
232+
<a href="#" target="_self" rel='tooltip'
233+
data-slide=5 title='Why predict? For sport!'>
234+
5
235+
</a>
236+
</li>
237+
<li>
238+
<a href="#" target="_self" rel='tooltip'
239+
data-slide=6 title='Why predict? To save lives!'>
240+
6
241+
</a>
242+
</li>
243+
<li>
244+
<a href="#" target="_self" rel='tooltip'
245+
data-slide=7 title='A useful (if a bit advanced) book'>
246+
7
247+
</a>
248+
</li>
249+
<li>
250+
<a href="#" target="_self" rel='tooltip'
251+
data-slide=8 title='A useful package'>
252+
8
253+
</a>
254+
</li>
255+
<li>
256+
<a href="#" target="_self" rel='tooltip'
257+
data-slide=9 title='Machine learning (more advanced material)'>
258+
9
259+
</a>
260+
</li>
261+
<li>
262+
<a href="#" target="_self" rel='tooltip'
263+
data-slide=10 title='Even more resources'>
264+
10
265+
</a>
266+
</li>
267+
</ul>
268+
</div> <!--[if IE]>
212269
<script
213270
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
214271
</script>
215272
<script>CFInstall.check({mode: 'overlay'});</script>
216273
<![endif]-->
217274
</body>
218-
<!-- Grab CDN jQuery, fall back to local if offline -->
219-
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
220-
<script>window.jQuery || document.write('<script src="../../libraries/widgets/quiz/js/jquery-1.7.min.js"><\/script>')</script>
221-
<!-- Load Javascripts for Widgets -->
222-
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
223-
<script type="text/x-mathjax-config">
224-
MathJax.Hub.Config({
225-
tex2jax: {
226-
inlineMath: [['$','$'], ['\\(','\\)']],
227-
processEscapes: true
228-
}
229-
});
230-
</script>
231-
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
232-
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
233-
</script> -->
234-
<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>')
275+
<!-- Load Javascripts for Widgets -->
276+
277+
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
278+
<script type="text/x-mathjax-config">
279+
MathJax.Hub.Config({
280+
tex2jax: {
281+
inlineMath: [['$','$'], ['\\(','\\)']],
282+
processEscapes: true
283+
}
284+
});
285+
</script>
286+
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
287+
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
288+
</script> -->
289+
<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>')
235290
</script>
236291
<!-- LOAD HIGHLIGHTER JS FILES -->
237-
<script src="../../libraries/highlighters/highlight.js/highlight.pack.js"></script>
238-
<script>hljs.initHighlightingOnLoad();</script>
239-
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
240-
</html>
292+
<script src="../../librariesNew/highlighters/highlight.js/highlight.pack.js"></script>
293+
<script>hljs.initHighlightingOnLoad();</script>
294+
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
295+
296+
</html>

08_PracticalMachineLearning/001predictionMotivation/index.md

+1-1
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}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

08_PracticalMachineLearning/makefile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
DELAY = 1000
2+
RMD_FILES = $(wildcard */index.Rmd)
3+
HTML_FILES = $(patsubst %.Rmd, %.html, $(RMD_FILES))
4+
PDF_FILES = $(patsubst %.html, %.pdf, $(HTML_FILES))
5+
PDF_FILES2 = $(patsubst %/index.pdf, lectures/%.pdf, $(PDF_FILES))
6+
7+
lectures: $(PDF_FILES2)
8+
lectures/%.pdf: %/index.pdf
9+
cp $< $@
10+
11+
files:
12+
@echo $(RMD_FILES)
13+
@echo $(HTML_FILES)
14+
@echo $(PDF_FILES)
15+
16+
html: $(HTML_FILES)
17+
pdf: $(PDF_FILES)
18+
all: html pdf
19+
20+
zip: $(PDF_FILES)
21+
zip all_pdf_files.zip $^
22+
23+
%/index.pdf: %/index.html
24+
casperjs makepdf.js $< $@ $(DELAY)
25+
26+
%/index.html: %/index.Rmd
27+
cd $(dir $<) && Rscript -e "slidify::slidify('index.Rmd')" && cd ..
28+
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var casper = require('casper').create({viewportSize:{width:1500,height:1000}});
2+
var args = casper.cli.args;
3+
var imgfile = (args[1] || Math.random().toString(36).slice(2))
4+
casper.start(args[0], function() {
5+
this.wait(args[2], function(){
6+
this.captureSelector(imgfile, "slides");
7+
});
8+
});
9+
10+
casper.run();
2.54 MB
Binary file not shown.
Binary file not shown.
2.25 MB
Binary file not shown.
Binary file not shown.
2.34 MB
Binary file not shown.
2.84 MB
Binary file not shown.
2.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)