-
Notifications
You must be signed in to change notification settings - Fork 27
/
2013-02-08-Lab.html
288 lines (218 loc) · 7.13 KB
/
2013-02-08-Lab.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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>2013-02-08-Lab</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="title" content="2013-02-08-Lab"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2013-02-08 13:51:10 PST"/>
<meta name="author" content="Jim Blomo"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<link rel="stylesheet" type="text/css" href="production/common.css" />
<link rel="stylesheet" type="text/css" href="production/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="production/projection.css" media="projection" />
<link rel="stylesheet" type="text/css" href="production/color-blue.css" media="projection" />
<link rel="stylesheet" type="text/css" href="production/presenter.css" media="presenter" />
<link href='http://fonts.googleapis.com/css?family=Lobster+Two:700|Yanone+Kaffeesatz:700|Open+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="preamble">
</div>
<div id="content">
<h1 class="title">2013-02-08-Lab</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Lab: Data Stats</a></li>
<li><a href="#sec-2">2 Data</a></li>
<li><a href="#sec-3">3 Code</a></li>
<li><a href="#sec-4">4 Stats</a></li>
<li><a href="#sec-5">5 Extra Credit</a>
<ul>
<li><a href="#sec-5-1">5.1 Overall Extra Credit</a></li>
</ul>
</li>
<li><a href="#sec-6">6 Extra Credit</a></li>
<li><a href="#sec-7">7 Git usage</a>
<ul>
<li><a href="#sec-7-1">7.1 Exceptions</a></li>
</ul>
</li>
<li><a href="#sec-8">8 Submission</a>
<ul>
<li><a href="#sec-8-1">8.1 Submission</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Lab: Data Stats <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-1">
<ul>
<li>Obtain California (CA) <a href="http://www.fec.gov/disclosurep/PDownload.do">campaign finance data</a>
</li>
<li>Decompress
</li>
<li>Manually check
</li>
<li>Run <code>code/stats.py</code>
</li>
<li>Edit <code>code/stats.py</code> to add functionality
</li>
<li>Pull Request submission
</li>
</ul>
</div>
</div>
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> Data <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-2">
<ul>
<li><a href="http://www.fec.gov/disclosurep/PDownload.do">campaign finance data</a>
</li>
<li>We'll just be using CA data
</li>
<li>Decompress and investigate using the tools we discussed
</li>
</ul>
</div>
</div>
<div id="outline-container-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> Code <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-3">
<pre class="src src-bash">$ git checkout master
$ git pull jblomo master
$ git checkout -b hw-stats
</pre>
<ul>
<li>Run and edit <code>code/stats.py</code>
</li>
</ul>
</div>
</div>
<div id="outline-container-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> Stats <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-4">
<ul>
<li>Minimum
</li>
<li>Maxiumum
</li>
<li>Mean
</li>
<li>Median
</li>
<li>Standard Deviation
</li>
<li>Candidates
</li>
<li>Normalized sample contributions
</li>
</ul>
</div>
</div>
<div id="outline-container-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> Extra Credit <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-5">
<ul>
<li>Extra credit is used to get you <b>up to 100%</b>
</li>
<li>On the <b>current assignment</b>
</li>
<li>Also helpful for learning topics more in depth
</li>
<li>You may do partial extra credit
</li>
</ul>
</div>
<div id="outline-container-5-1" class="outline-3">
<h3 id="sec-5-1"><span class="section-number-3">5.1</span> Overall Extra Credit <span class="tag"><span class="notes">notes</span></span></h3>
<div class="outline-text-3" id="text-5-1">
<ul>
<li>EC that applies to overall grade will not be assigned
</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> Extra Credit <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-6">
<ul>
<li>Stats per candidate
</li>
<li>z-score
</li>
</ul>
</div>
</div>
<div id="outline-container-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> Git usage <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-7">
<ul>
<li>All edits, commits, pushes should happen on a <code>hw-</code> or <code>project</code> branch
</li>
<li><code>git status</code>
</li>
<li>All pulls (typically from <code>jblomo</code>) should happen on <code>master</code> branch
<ul>
<li>If you use an editor connected to ischool server, make sure you are
<b>either</b> editing <b>or</b> using git
</li>
</ul>
</li>
</ul>
</div>
<div id="outline-container-7-1" class="outline-3">
<h3 id="sec-7-1"><span class="section-number-3">7.1</span> Exceptions <span class="tag"><span class="notes">notes</span></span></h3>
<div class="outline-text-3" id="text-7-1">
<ul>
<li>There are exceptions but know what you're trying to do
</li>
<li>External editors can write back files <b>after</b> you've changed git branches
</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-8" class="outline-2">
<h2 id="sec-8"><span class="section-number-2">8</span> Submission <span class="tag"><span class="slide">slide</span></span></h2>
<div class="outline-text-2" id="text-8">
<ul>
<li>GitHub pull request
</li>
<li>If something is going wrong, submit by email: jblomo@ischool,
shreyas@ischool
</li>
<li>We'll help you submit the pull request, but HW will be full credit
</li>
</ul>
</div>
<div id="outline-container-8-1" class="outline-3">
<h3 id="sec-8-1"><span class="section-number-3">8.1</span> Submission <span class="tag"><span class="notes">notes</span></span></h3>
<div class="outline-text-3" id="text-8-1">
<ul>
<li>The pull request is a way for Shreyas and I to easily see changes, grade
</li>
<li>It'll give you good experience, but it is not a fundemental skill of the
class, so I'm not too worried about it
</li>
</ul>
<script type="text/javascript" src="production/org-html-slideshow.js"></script>
</div>
</div>
</div>
</div>
<div id="postamble">
<p class="date">Date: 2013-02-08 13:51:10 PST</p>
<p class="author">Author: Jim Blomo</p>
<p class="creator">Org version 7.8.02 with Emacs version 23</p>
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
</div>
</body>
</html>