Course Schedule

Part 1: Performance

Week 1

Tue: No Class (Sep 02)
Thu: Reproducibility 1 (Sep 04)
  • Course Overview
  • Hardware, OS, Interpreters
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Slides: PDF
Assigned:

Week 2

Tue: Reproducibility 2 (Sep 09)
  • versioning
  • git commands
  • branching and merging
  • conflict resolution
Watch Fall 2025: Lecture
Watch Spring 2025: : Lecture
Watch Prerecorded: Recording
Slides: PDF
Assigned: Due:
Thu: Performance 1 (Sep 11)
  • check_output
  • time
  • identifying steps
  • counting executed steps
  • complexity analysis
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
VM Setup: Video
Git Workflow: Video
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2)
Slides: PDF
Assigned:

Week 3

Tue: Performance 2 (Sep 16)
  • big O notation
  • worksheet practice
  • large data
  • generators
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Worksheet: Question, Answer
Assigned: Due:
Thu: OOP 1 (Sep 18)
Classes
  • attributes
  • methods
  • constructors
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
GitLab: Video
Lecture notes: Code
Read: HTML (NB)
Slides: PDF
Optional Reading: Think Python 15, 16, and 17.1 - 17.5
Assigned:

Week 4

Tue: OOP 2 (Sep 23)
Special Methods
  • __str__, __repr__, _repr_html_
  • __eq__, __lt__
  • __len__, __getitem__
  • __enter__, __exit__
Inheritance
  • method resolution order
  • overriding methods
  • calling overridden methods
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2)
Slides: PDF
Optional Reading: Python Data Model
Optional Reading: Think Python 18
Assigned: Due:
Thu: Recursion and Graphs (Sep 25)
Recursion
  • functions that return something
  • functions that do something
Graphs
  • graphviz
  • types of graph
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2)
Worksheet: Question, Answer
Interactive Exercises
Assigned: Grade Released: Project 1 (10:00 pm)

Week 5

Tue: Trees (Sep 30)
  • trees
  • binary trees
  • binary search trees (BSTs)
  • BSTs: height, for sets+dicts
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Slides: PDF
Assigned: Due:
Thu: Graph Search 1 (Oct 02)
  • depth-first search
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Slides: PDF
Honorlock: Practice with Honorlock
Assigned: Grade Released: Project 2 (10:00 pm)

Week 6

Tue: Graph Search 2 (Oct 07)
  • breadth-first search
  • stacks, queues, priority queues
  • deque (for queues)
  • heapq (for priority queues)
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2)
Slides: PDF
Assigned: Due:
Thu: Web 1 (Oct 09)
Selenium
  • web intro
  • finding elements, text
  • polling
  • screenshots
  • clicking, typing
Recursive Crawl
  • more tricky pages
  • BFS for webpages
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Tricky Pages, Crawl Practice
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2)
Slides: PDF
Assigned:
Part 2: Web and Visualization

Week 7

Tue: Web 2 (Oct 14)
Flask
  • Internet overview
  • flask
  • headers, rate limiting (HTTP 429)
  • robots.txt
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Slides: PDF
Assigned: Due:
Thu: Exam 1 (Honorlock) (Oct 16)
  • Regular exam: during class time
  • McBurney exam (with 1.5 x time): during class time
  • McBurney exam (with > 1.5 x time): 5:45 pm to 7:15 pm
Assigned: Answers Released: Exam 1 (10:00 pm)

Week 8

Tue: Web 3 (Oct 21)
Flask
  • query strings
  • decorators
A/B testing
  • data collection
  • significance
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB), TechCrunch article
Slides: PDF
Assigned: Due:
Thu: Web 4 (Oct 23)
Dashboards
  • dashboards
  • POST
  • CDFs
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Lecture notes: Code
Read: HTML (NB)
Assigned: Grade Released: Project 3 (10:00 pm)

Week 9

Tue: Regex (Oct 28)
  • character classes
  • repetition
  • anchoring
  • practice
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB), DS100 Ch 13
Slides: PDF
Assigned: Due:
Thu: Visualization 1 (Oct 30)
  • matplotlib coordinate systems
  • drawing custom lines/polygons
  • coordinate reference systems
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Assigned: Grade Released: Project 4 (10:00 pm)

Week 10

Tue: Visualization 2 (Nov 04)
  • geographic maps
  • shapely
  • shapefiles, GeoJSON
  • DPI (dots per inch)
  • geocoding
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Read: HTML (NB)
Assigned: Due:
Thu: Regression 1 (Nov 06)
  • Machine Learning (ML) overview
    • regression, classification
    • clustering, decomposition
  • sklearn LinearRegression
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Watch Prerecorded: Recording
Lecture notes: Code
Assigned:
Part 3: Machine Learning

Week 11

Tue: Regression 2 (Nov 11)
  • explained variance
  • train/test split
  • PolynomialFeatures
  • OneHot Encoding
  • Pipelines
Watch Fall 2025: Lecture
Watch Spring 2025: Lecture
Lecture notes: Code
Slides: PDF
Assigned: Due:
Thu: Exam 2 (Honorlock) (Nov 13)
  • Regular exam: during class time
  • McBurney exam (with 1.5 x time): during class time
  • McBurney exam (with > 1.5 x time): 5:45 pm to 7:15 pm
Assigned: Answers Released: Exam 2 (10:00 pm)
Grade Released: Project 5 (10:00 pm)

Week 12

Tue: Linear Algebra (Nov 18)
  • numpy arrays
  • numpy images
  • multiplication
  • fit with np.linalg.solve
  • predict with np.dot
  • column perspective
  • column spaces
  • projection matrices
Watch: Lecture
Lecture notes: Code
Read: HTML1 (NB1), HTML2 (NB2), HTML3 (NB3)
Assigned: Due:
Thu: Classification 1 (Nov 20)
  • LogisticRegression
  • multiclass, proba
  • decision boundaries
Watch: Lecture
Lecture notes: Code
Slides: PDF
Assigned:

Week 13

Tue: Classification 2 (Nov 25)
  • standardization
  • confusion matrices
  • accuracy, precision, recall
Watch: Lecture
Lecture notes: Code
Slides: PDF
Due:
Thu: No Class (Nov 27)
Thanksgiving recess

Week 14

Tue: Clustering (Dec 02)
  • KMeans
  • AgglomerativeClustering
  • fit, transform, predict
  • AgglomerativeClustering
Watch: Lecture
Lecture notes: Code
Slides: PDF
Assigned: Due:
Thu: Decomposition (Dec 04)
  • Principal Component Analysis (PCA)
  • Feature Dimensionality Reduction
  • Compressing Data
Watch: Lecture
Lecture notes: Code
Read: HTML (NB)
Assigned: Grade Released: Project 6 (10:00 pm)

Week 15

Tue: Unsupervised ML Recap (Dec 09)
  • linkage
  • wrapup Dendrograms
  • when to use the following:
    • KMeans
    • AgglomerativeClustering
    • PCA
Watch: Lecture
Lecture notes: Code
Slides: PDF
Assigned: Due:
Thu: No Class (Dec 11)
Due: Grade Released: Project 7 (10:00 pm)
Grade Released: Project 8 (10:00 pm) on December 12

Week 16

Monday: Final Exam (Online Exam with Honorlock) (Dec 15)
  • Regular exam: 10:05 pm - 12:05 pm
  • McBurney exam: 10:05 pm - 1:05 pm
  • Alternate exam: 11:05 pm - 1:05 pm
Assigned: Answers Released: Final exam (10:00 pm)