Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jtleek committed May 5, 2014
1 parent 5b1b582 commit 90fe681
Show file tree
Hide file tree
Showing 40 changed files with 175 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
url:
lib: ../../libraries
lib: ../../librariesNew
assets: ../../assets
widgets : [mathjax] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
Expand Down
198 changes: 127 additions & 71 deletions 08_PracticalMachineLearning/001predictionMotivation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,46 @@
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/phone.css"
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="../../libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->
<script data-main="../../libraries/frameworks/io2012/js/slides"
src="../../libraries/frameworks/io2012/js/require-1.0.8.min.js">
<link rel="stylesheet" href="../../librariesNew/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="../../librariesNew/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. -->

<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="../../librariesNew/widgets/quiz/js/jquery.js"><\/script>')</script>
<script data-main="../../librariesNew/frameworks/io2012/js/slides"
src="../../librariesNew/frameworks/io2012/js/require-1.0.8.min.js">
</script>

<link rel="stylesheet" href = "../../assets/css/custom.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BACKUP.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BASE.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.LOCAL.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.orig">
<link rel="stylesheet" href = "../../assets/css/custom.css.REMOTE.546.css">
<link rel="stylesheet" href = "../../assets/css/ribbons.css">


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

<!-- LOGO SLIDE -->
<!-- END LOGO SLIDE -->
<slide class="title-slide segue nobackground">
<aside class="gdbar">
<img src="../../assets/img/bloomberg_shield.png">
</aside>
<hgroup class="auto-fadein">
<h1>Motivation and pre-requisites</h1>
<h2></h2>
<p>Jeffrey Leek<br/>Johns Hopkins Bloomberg School of Public Health</p>
</hgroup>
<article></article>
</slide>


<!-- TITLE SLIDE -->
<!-- Should I move this to a Local Layout File? -->
<slide class="title-slide segue nobackground">
<aside class="gdbar">
<img src="../../assets/img/bloomberg_shield.png">
</aside>
<hgroup class="auto-fadein">
<h1>Motivation and pre-requisites</h1>
<h2></h2>
<p>Jeffrey Leek<br/>Johns Hopkins Bloomberg School of Public Health</p>
</hgroup>
</slide>

<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<slide class="" id="slide-1" style="background:;">
<hgroup>
<h2>About this course</h2>
</hgroup>
<article>
<article data-timings="">
<ul>
<li>This course covers the basic ideas behind machine learning/prediction

Expand Down Expand Up @@ -80,11 +75,11 @@ <h2>About this course</h2>
<!-- Presenter Notes -->
</slide>

<slide class="" id="slide-2" style="background:;">
<slide class="" id="slide-2" style="background:;">
<hgroup>
<h2>Who predicts?</h2>
</hgroup>
<article>
<article data-timings="">
<ul>
<li>Local governments -&gt; pension payments</li>
<li>Google -&gt; whether you will click on an ad</li>
Expand All @@ -97,11 +92,11 @@ <h2>Who predicts?</h2>
<!-- Presenter Notes -->
</slide>

<slide class="" id="slide-3" style="background:;">
<slide class="" id="slide-3" style="background:;">
<hgroup>
<h2>Why predict? Glory!</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/volinsky.png height=450></p>

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

<slide class="" id="slide-4" style="background:;">
<slide class="" id="slide-4" style="background:;">
<hgroup>
<h2>Why predict? Riches!</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/heritage.png height=450></p>

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

<slide class="" id="slide-5" style="background:;">
<slide class="" id="slide-5" style="background:;">
<hgroup>
<h2>Why predict? For sport!</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/kaggle.png height=350></p>

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

<slide class="" id="slide-6" style="background:;">
<slide class="" id="slide-6" style="background:;">
<hgroup>
<h2>Why predict? To save lives!</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/oncotype.png height=350></p>

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

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

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

<slide class="" id="slide-8" style="background:;">
<slide class="" id="slide-8" style="background:;">
<hgroup>
<h2>A useful package</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/caret.png height=350></p>

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

<slide class="" id="slide-9" style="background:;">
<slide class="" id="slide-9" style="background:;">
<hgroup>
<h2>Machine learning (more advanced material)</h2>
</hgroup>
<article>
<article data-timings="">
<p><img class=center src=../../assets/img/08_PredictionAndMachineLearning/machinelearning.png height=350></p>

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

<slide class="" id="slide-10" style="background:;">
<slide class="" id="slide-10" style="background:;">
<hgroup>
<h2>Even more resources</h2>
</hgroup>
<article>
<article data-timings="">
<ul>
<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>
<li><a href="http://www.sciencemag.org/site/feature/data/compsci/machine_learning.xhtml">List of machine learning resources from Science</a></li>
Expand All @@ -207,34 +202,95 @@ <h2>Even more resources</h2>

<slide class="backdrop"></slide>
</slides>

<!--[if IE]>
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
<ul>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=1 title='About this course'>
1
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=2 title='Who predicts?'>
2
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=3 title='Why predict? Glory!'>
3
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=4 title='Why predict? Riches!'>
4
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=5 title='Why predict? For sport!'>
5
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=6 title='Why predict? To save lives!'>
6
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=7 title='A useful (if a bit advanced) book'>
7
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=8 title='A useful package'>
8
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=9 title='Machine learning (more advanced material)'>
9
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=10 title='Even more resources'>
10
</a>
</li>
</ul>
</div> <!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="../../libraries/widgets/quiz/js/jquery-1.7.min.js"><\/script>')</script>
<!-- Load Javascripts for Widgets -->
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> -->
<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>')
<!-- Load Javascripts for Widgets -->

<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> -->
<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>')
</script>
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="../../libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>
<script src="../../librariesNew/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
url:
lib: ../../libraries
lib: ../../librariesNew
assets: ../../assets
widgets : [mathjax] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
Expand Down
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.
28 changes: 28 additions & 0 deletions 08_PracticalMachineLearning/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
DELAY = 1000
RMD_FILES = $(wildcard */index.Rmd)
HTML_FILES = $(patsubst %.Rmd, %.html, $(RMD_FILES))
PDF_FILES = $(patsubst %.html, %.pdf, $(HTML_FILES))
PDF_FILES2 = $(patsubst %/index.pdf, lectures/%.pdf, $(PDF_FILES))

lectures: $(PDF_FILES2)
lectures/%.pdf: %/index.pdf
cp $< $@

files:
@echo $(RMD_FILES)
@echo $(HTML_FILES)
@echo $(PDF_FILES)

html: $(HTML_FILES)
pdf: $(PDF_FILES)
all: html pdf

zip: $(PDF_FILES)
zip all_pdf_files.zip $^

%/index.pdf: %/index.html
casperjs makepdf.js $< $@ $(DELAY)

%/index.html: %/index.Rmd
cd $(dir $<) && Rscript -e "slidify::slidify('index.Rmd')" && cd ..

10 changes: 10 additions & 0 deletions 08_PracticalMachineLearning/makepdf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var casper = require('casper').create({viewportSize:{width:1500,height:1000}});
var args = casper.cli.args;
var imgfile = (args[1] || Math.random().toString(36).slice(2))
casper.start(args[0], function() {
this.wait(args[2], function(){
this.captureSelector(imgfile, "slides");
});
});

casper.run();
Binary file added 09_DevelopingDataProducts/lectures/RPackages.pdf
Binary file not shown.
Binary file not shown.
Binary file added 09_DevelopingDataProducts/lectures/googleVis.pdf
Binary file not shown.
Binary file not shown.
Binary file added 09_DevelopingDataProducts/lectures/rCharts.pdf
Binary file not shown.
Binary file added 09_DevelopingDataProducts/lectures/shiny.pdf
Binary file not shown.
Binary file added 09_DevelopingDataProducts/lectures/slidify.pdf
Binary file not shown.
Loading

0 comments on commit 90fe681

Please sign in to comment.