Teaching
SOC591: Intro to Computational Social Science
You can check the syllabus here
Week 1
Week 2
Mini-Lecture 2. Basic Intro to Text Analysis.
You can download our slides here
Lab Part 1. Basic Intro to Python and Web-sraping
You can download Lab2a.py and Lab2a.ipynb.
Lab Part 2. Basic Intro to R and Text Preprocessing
You can download Lab2b.rmd and lab2b.html
Announcement
Here is our lab training problem set:
You need to submit a script showing you are able to run the selenium and actually gather the data
You need to scrape the original news articles using “blm-data.tsv” dataset (it has source urls) and make a structured textual data set. (Optional)
If you want to earn these extra credits, you need to turn in your scripts and dataset before Sept 8th, 6:00 PM EST
Week 3
Mini-Lecture 3. Topic Modeling in Social Science
You can download our slides here
Implementing Topic Models in R
You can download Lab3.html and model visualization example. You can download the rmarkdown file here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Charles Gomez from CUNY Sociology Department.
Week 4
Mini-Lecture 4. Word Embedding in Social Science
You can download our slides here
Train your own word2vec in Python Gensim
You can download Lab4.html. You can download the ipynb file here and py script here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Yongren Shi from IOWA Sociology and Criminology Department.
Week 5
Mini-Lecture 5. More on Word Vectors and Text Viz
You can download our slides here
Basic Text Viz in R
You can download Lab5.html. You can download the Rmarkdown file here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Dustin Stoltz from Lehigh University.
Week 6
Mini-Lecture 6. Image as Data
You can download our slides here
Basic Image Processing in Python
You can download Lab6.html. You can download the ipynb file here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Han Zhang from Hong Kong University of Science and Technology.
Week 7
No mini-lecture this week, but …
You can download the Jean et al.’s 2016 artcile slides here. I did a presentation in 2019.
Basics or More on Numpy and Tensors in Python
You can download Lab7.html. You can download the ipynb file here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Alex Hanna from Google .
Week 8
No mini-lecture this week, but we will briefly go through…
You can download the Jean et al.’s 2016 artcile slides here. I did a presentation in 2019.
Basics on Tensorflow and Keras in Python
You can download the ipynb file here.
Week 9
Mini-lecture this week with lab tutorial on GCP:
You can download the Slides here. You can download the python script for BigQuery demo here.
Week 10
Mini-lecture and lab tutorial:
You can download the Slides here. You can download the python script and ipython file here.
Week 11
Mini-lecture:
You can download the Slides here.
Week 12
Mini-lecture:
You can download the Slides here.
You can download Lab12.html. You can download the Rmarkdown file here.
Announcement
We have a guest speaker today. You can check here for more info about Dr. Thomas Davidson from the Sociology Department at Rutgers University in New Brunswick.