Skip to content

Commit 1624f41

Browse files
committed
Day 5 slides and notebook
1 parent 9fba352 commit 1624f41

File tree

7 files changed

+374
-263
lines changed

7 files changed

+374
-263
lines changed

summer2020/lectures/Random Student Picker.ipynb

Lines changed: 0 additions & 125 deletions
This file was deleted.

summer2020/lectures/day_1/day_1.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ visibility: inherit; }
149149
> - Project planning doc
150150
> - Project presentation + report
151151
152+
## Grades
153+
154+
152155
# Resources
153156

154157
## Wiki

summer2020/lectures/day_3/day_3.ipynb

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,9 @@
233233
},
234234
{
235235
"cell_type": "code",
236-
"execution_count": 62,
237-
"metadata": {},
238-
"outputs": [
239-
{
240-
"data": {
241-
"text/plain": [
242-
"[1, 3, 54]"
243-
]
244-
},
245-
"execution_count": 62,
246-
"metadata": {},
247-
"output_type": "execute_result"
248-
}
249-
],
236+
"execution_count": null,
237+
"metadata": {},
238+
"outputs": [],
250239
"source": [
251240
"# Brackets *after* a list let you slice it\n",
252241
"l = [1,3,54,7,3,3]\n",
@@ -255,41 +244,19 @@
255244
},
256245
{
257246
"cell_type": "code",
258-
"execution_count": 63,
259-
"metadata": {},
260-
"outputs": [
261-
{
262-
"data": {
263-
"text/plain": [
264-
"[3, 54, 7, 3, 3]"
265-
]
266-
},
267-
"execution_count": 63,
268-
"metadata": {},
269-
"output_type": "execute_result"
270-
}
271-
],
247+
"execution_count": null,
248+
"metadata": {},
249+
"outputs": [],
272250
"source": [
273251
"# Get the second item to the end\n",
274252
"l[1:]"
275253
]
276254
},
277255
{
278256
"cell_type": "code",
279-
"execution_count": 64,
280-
"metadata": {},
281-
"outputs": [
282-
{
283-
"data": {
284-
"text/plain": [
285-
"[54, 7, 3, 3]"
286-
]
287-
},
288-
"execution_count": 64,
289-
"metadata": {},
290-
"output_type": "execute_result"
291-
}
292-
],
257+
"execution_count": null,
258+
"metadata": {},
259+
"outputs": [],
293260
"source": [
294261
"# Get the third to sixth items\n",
295262
"l[2:6]"

summer2020/lectures/day_4/day_4.Rmd

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22
title: COM 674
3-
template: "../resources/template.html"
3+
template: "./resources/template.html"
44
output:
55
revealjs::revealjs_presentation:
66
theme: white
77
progress: true
88
transition: convex
9-
self_contained: false
10-
reveal_plugins: ["notes"]
9+
self_contained: true
1110
---
1211

1312
```{r setup, include=FALSE}
@@ -90,47 +89,31 @@ visibility: inherit; }
9089

9190
</style>
9291

92+
# Day 4: Files
93+
9394
## Weekly Dad Joke
9495

9596
- My girlfriend left me because I'm insecure...
9697

9798
> - Nevermind, she's back. She just went to the bathroom.
9899
99100
## Housekeeping
100-
> - Feedback is on Brightspace
101-
> - Self assessment reflections
102-
> - Food?
103-
> - Study/HW groups
104-
105-
## Questions from homework
106-
107101

108-
## Solution sharing
109-
> - Ch. 5: 1
110-
> - 2
111-
> - Ch. 6: 5
112-
> - Ch. 8: 5 (optional)
113-
> - 6
114-
> - Baby names
115-
> - 2
116-
> - 3
117-
> - 4
118-
> - 5
119-
> - 8
120-
> - 9
102+
> - I will give feedback today
103+
> - Grades!!!
104+
> - Two self-assessments
105+
> - Mostly based on the final project
121106
107+
## Questions from homework
122108

123-
## Paper Discussion
124-
109+
> - `=` vs. `==`
110+
> - `except`
111+
> - for vs. while
112+
> - alias
125113
126114
## Principles for this week
127115

128-
> - Importing
129-
> - Opening files
130-
131-
## Team problem
132-
133-
Day 2 challenges - #7
116+
> - Opening, reading, and writing to files
134117
135118
## Homework
136119

summer2020/lectures/day_4/day_4.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
"import csv\n",
109109
"import random\n",
110110
"\n",
111-
"with open('csv_test.csv', 'w') as fh:\n",
111+
"with open('/home/jeremy/Desktop/csv_test.csv', 'w') as fh:\n",
112112
" f = csv.writer(fh)\n",
113-
" f.writerow(['Y', 'X1'])\n",
113+
" f.writerow(['Y', 'X1', 'X2', 'X3'])\n",
114114
" for i in range(10):\n",
115115
" x1 = random.random()\n",
116116
" y = x1 + random.random()\n",

summer2020/lectures/day_5/day_5.Rmd

Lines changed: 4 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22
title: COM 674
3-
template: "../resources/template.html"
3+
template: "./resources/template.html"
44
output:
55
revealjs::revealjs_presentation:
66
theme: white
77
progress: true
88
transition: convex
9-
self_contained: false
10-
reveal_plugins: ["notes"]
9+
self_contained: true
1110
---
1211

1312
```{r setup, include=FALSE}
@@ -98,71 +97,13 @@ Brochure
9897

9998
## Housekeeping
10099

101-
> - Project proposal feedback session?
102-
103-
## Course feedback
104-
105-
> - Sharing/comparing code
106-
> - Solutions?
107-
> - Feedback
108-
> - Screencast?
109-
> - Synchronous exercises in class
110-
> - More lecture
111-
112-
## Solution sharing
113-
114-
Chapter 7: 1,2,3
115-
116-
Baby names: 1, 2, 3
117-
118-
## Paper discussion
119-
120-
Margolin, D. B., Hannak, A., & Weber, I. (2018). Political Fact-Checking on Twitter: When Do Corrections Have an Effect? Political Communication, 35(2), 196–219.
121-
122-
> - Lots of evidence that people don't act like "intuitive scientists"
123-
> - Misinformation doesn't change opinions
124-
> - Rumors propagation happens even in the face of corrections
125-
> - Key question of their study:
126-
> - What are the social conditions that encourage retraction/opinion change?
127-
128-
## Hypotheses
129-
130-
> - H1: People are more likely to accept corrections from friends
131-
> - H2: People are more likely to accept corrections from those embedded in same group (larger shared audience)
132-
> - RQ: How do audience sizes affect likelihood to accept corrections?
133-
134-
## Paper discussion
135-
136-
> - Method
137-
> - Twitter "garden hose" to identify tweets where:
138-
> - "Snopee" shares misinformation
139-
> - "Snoper" shares link to correction
140-
> - "Snopee" responds
141-
> - Coded the content of the correction and response
142-
> - Regression to predict when a correction was accepted
143-
> - H1 was accepted; no strong effect for others.
144-
145-
## Questions
146-
147-
> - What were some strengths of the research design? Weaknesses?
148-
> - What is the next study you would design to complement this study?
149-
> - How much do you think the context influenced the results?
150-
151-
## Project proposal feedback session?
152-
153-
154-
100+
> - Project idea peer feedback?
155101
156102
## Principles for this week
157103

158-
> - Jupyter Notebooks
159104
> - Dictionaries
160105
> - Tuples
161106
162-
## Team problem
163-
164-
Day 2 challenges - #7
165-
166107
## Homework
167108

168-
> - Jupyter notebook + problems from book
109+
> - Baby names project

0 commit comments

Comments
 (0)