CS33 Foundations of AI and Machine Learning (Fall 2026)


Course Information

Schedule
Section 1: Meeden: MW 10:30-11:45 Sci 204
Section 2: Mitchell: TR 11:20-12:35 Sci 199
Lab A: Meeden R 1:05-2:35 Martin 213
Lab B: Mitchell R 1:05-2:35 Martin 313
Lab C: Kazer F 2:00-3:30 Martin 313
Lab D: Kazer F 3:45 - 5:15 Martin 313

Contact Information
Professor: Lisa Meeden
Email: lmeeden at swarthmore.edu
Office: Martin 208
Office Hours: Tuesdays 1:30 - 3:30 PM
Professor: Ben Mitchell
Email: mitchell at cs.swarthmore.edu
Office: Martin 334
Office Hours: Wednesdays 1:30-3:30 PM
Lab Instructor: Charlie Kazer
Email: ckazer at cs.swarthmore.edu
Office: Martin 330
Office Hours: Mondays 1:30 - 3:30 PM

Introduction

This course provides a broad introduction to the foundations of modern artificial intelligence (AI) and will also develop advanced programming and data processing skills essential for upper-level courses in computer science. Topics will include advanced Python programming, mathematical foundations, data processing, machine learning methodology, neural networks, and large language models. Throughout the course, students will examine the ethical issues that arise in AI and its societal impacts. The course culminates in a final project. Students will gain core skills that will prepare them for a deeper examination of these issues in both later courses and independent projects.

The course is suitable for any student interested in gaining a deeper understanding of AI regardless of their intended major.

Prerequisite: Completion of CPSC 21 or its equivalent.

Goals for student learning


Grading

Grade weighting
5%Class Participation
30%Labs
20%Exam 1
20%Exam 2
25%Final Project

Reading

Rather than using a single textbook, we will be using materials from a variety of sources. All of the materials will be available online.

Our class meetings will be a combination of lecture and discussion. To be ready to participate in the discussion will require some preparation on your part. We recommend that you complete the week's reading prior to the first class meeting that week. We expect that you will typically need to spend only about 30 minutes per week on the reading.


Policies

Labs

Labs will be available on Thursdays at noon, and will be due by the following Wednesday before midnight. Even if you do not fully complete a lab, you should submit what you have done to receive partial credit.

You will work solo on the first few labs, and then with a partner for the remainder of the labs.

You have two late days that you may use on any lab, for any reason. If you are using a late day, you must contact your lab instructor by email or private message on EdStem to let them know.

Your late days will be counted at the granularity of full days and will be tracked on a per-student (NOT per-partnership) basis. That is, if you turn in an assignment five minutes after the deadline, it counts as using one day. For partnered labs, using a late day counts towards the late days for each partner. In the rare cases in which only one partner has unused late days, that partner's late days may be used, barring a consistent pattern of abuse.

If you feel that you need an extension on an assignment or that you are unable to attend class for two or more meetings due to a medical condition or other extenuating circumstance, please let your instructor know as soon as possible.

Academic Integrity

The general ethos of this policy is that actions which shortcut or avoid the learning process are forbidden, while actions which promote learning are encouraged.

For example: studying lecture materials or discussing readings together provides an additional avenue for learning and is encouraged. Using a classmate’s solution, however, is prohibited because it avoids the process of doing the work; since doing the work is how much of the learning takes place, avoiding the work inherently means avoiding the learning as well. Note that this applies to generative AI tools (e.g. chatGPT, GitHub CoPilot, etc.) just the same way it does to any other resource.

If you have any questions about what is or is not permissible, please contact your instructor.

Academic honesty is required in all of your work. Under no circumstances may you hand in work done with (or by) someone else under your own name. Your code should never be shared with anyone; you may not examine or use code belonging to someone else, nor may you let anyone else look at or make a copy of your code. The only exception to this policy, is that you may freely share code with your lab partner. Also, you may not share solutions after the due date of the assignment.

Failure to abide by these rules constitutes academic dishonesty and will lead to a hearing of the College Judiciary Committee. According to the Faculty Handbook: "Because plagiarism is considered to be so serious a transgression, it is the opinion of the faculty that for the first offense, failure in the course and, as appropriate, suspension for a semester or deprivation of the degree in that year is suitable; for a second offense, the penalty should normally be expulsion."

Discussing ideas and approaches to problems with others on a general level is fine (in fact, we encourage you to discuss general strategies with each other), but you should never read any other student's code or let another student read your code. All code you submit must be your own with the following permissible exceptions: code distributed in class and code given in the readings. Regardless of the source, you should always include comments that indicate on which parts of the assignment you received help, and what your sources were. You may not share your solutions even after the due date of the assignment.

Any code, text, or content not created exclusively by you and used without attribution is plagiarism. This is true regardless of whether the original source was a scholarly text, another student, an online platform (e.g. StackOverflow), or a generative model (e.g. ChatGPT). Using resources such as these may be appropriate under some circumstances, and not under others, but regardless you must always properly acknowledge and cite the source of the information. When in doubt, add a statement of attribution! In addition, when using any type of generative AI, you must also describe how it was used, e.g. by giving the prompt.

The use of generative AI tools (e.g. chatGPT, GitHub CoPilot, etc.) without permission is also considered to be unauthorized collaboration with an outside source and is a violation of our academic integrity policy. If you feel these tools would be appropriate in a given context, feel free to ask the instructor. Note that even if permission is granted, these sources must be properly attributed.

Here are some examples of what this might look like:

"The outline for this essay was generated by ChatGPT 4.1 from the prompt, 'give me an outline for a 5-paragraph personal essay about an octopus.' The rest of the essay was written by me, then edited based on feedback from Grammarly. My roommate Ada Lovelace proofread it, and after that, a WA helped me edit the final draft."
"My partner and I used GitHub Copilot 1.108 to generate the file I/O code in `readFile.py` (lines 17-34). Our initial prompt was, 'Write a function to read a PPM image from a file', but the solution was ugly, and we had to add, 'in the style of an intermediate programming student' to get something we were happy with."
"The cover image was produced by Adobe Firefly Image 4 using the prompt, 'a spiral galaxy', and using the 'Synthwave' style."

Academic Accommodations

If you believe you need accommodations for a disability or a chronic medical condition, please visit the Student Disability Services website for details about the accommodations process. Since accommodations require early planning and are not retroactive, contact Student Disability Services as soon as possible. You are also welcome to contact the instructional staff privately to discuss your academic needs. However, all disability-related accommodations must be arranged, in advance, through Student Disability Services.


Support

Students are strongly encouraged to attend office hours.

Feel free to attend any office hours that are convenient for you.

Office hours
DayTimeLocationInstructor
Mon.1:30-3:30Martin 330Charlie Kazer
Tue.1:30-3:30Martin 208Lisa Meeden
Wed.1:30-3:30Martin 334Ben Mitchell

Ninja support

The CS Ninjas will assist us in our lab sessions and will also run study sessions in the evenings. Students are also strongly encouraged to attend the evening study sessions for extra help in completing labs.


Ninja Sessions
DayTimeLocationNinjas
Mon.7:00-9:00pmMartin 313Bohou, Lye
Tue.7:00-9:00pmMartin 313Hannah, Betsy

Ninjas are instructed to help guide you through any topics, but will not provide solutions/direct answers to programming problems. If you are having troubles with your programming assignment, please be prepared to describe what steps you have already taken to solve the problem. (The same goes for seeking help during office hours and/or on ed). While our ninjas are dedicated, please do not ask for their help outside of lab and ninja sessions--they are students just like you who need some off time to finish their own course work!

Ed Stem

To provide additional help we have established a class discussion forum through Ed Stem. If you have questions outside of ninja sessions and office hours, you can post the question to the class and/or privately to the instructors through ed. This allows students to see common problems and to also engage in discussions about course topics. Students are expected to regularly check the discussion page and use this in place of emailing the instructors directly about course content and labs.



Schedule - M/W

WEEK DAY ANNOUNCEMENTS TOPIC & READING LAB
1

Aug 31

 

Overview of AI and Machine Learning

Lab 1: Critiquing generative AI models

Sep 02

 
2

Sep 07

Labor Day

Sep 09

 

Data Science

  • Pre-processing data
  • Feature engineering
  • Data visualization
  • Basic statistics

Lab 2: Advanced Python

3

Sep 14

 

Introduction to Modeling

Lab 3: Data cleanup and analysis using pandas

Sep 16

 
4

Sep 21

 

Classification, Logistic Regression

  • Basic Linear Algebra primer/refresher (videos) Essense of Linear Algebra playlist; focus on Chapter 1 (vectors) and the first 4 minutes of Chapter 9 (dot products) for this week

Lab 4: Logistic Regression

Sep 23

 
5

Sep 28

 

Neural Networks

Lab 5: Implementing Backprop

Sep 30

 
6

Oct 05

 

Ethical issues that arise with data

  • How big data is unfair Medium, 2014
  • Data provenance
  • Data diversity
  • Data imbalance
  • How data is applied to solve problems

Exam 1 in lab

Oct 07

 
 

Oct 12

Fall Break

Oct 14

7

Oct 19

 

Dimensionality Reduction

  • Principal components analysis
  • Visualizing hidden layers

Lab 6: Use PCA on models

Oct 21

 
8

Oct 26

 

Evaluating Models

  • Machine Bias, ProPublica, 2016
  • Overfitting and Underfitting
  • Hyperparameter tuning
  • Possible harms

Lab 7: Evaluating models

Oct 28

 
9

Nov 02

 

Advanced Neural Networks that Process Text

Lab 8: Sentiment analysis

Nov 04

 
10

Nov 09

 

Advanced Neural Networks that Process Images

  • Generative Models

Lab 9: Image generation

Nov 11

 
11

Nov 16

 

Project Development

  • Provide limited set of possibilities
  • Staged development plan
  • Deliverables (paper and poster)

Project Proposal

Nov 18

 
12

Nov 23

 

Societal Implications of ML Models

  • Disparate Impact
  • Transparency/explainability
  • Stakeholders

No lab Thanksgiving break

Nov 25

 
13

Nov 30

 

More on Societal Implications

Project Continues

Dec 02

Exam 2

14

Dec 07

Last lecture meeting

TBD

Finish Project

Dec 09

Follows a Friday schedule


Schedule - T/Th

WEEK DAY ANNOUNCEMENTS TOPIC & READING LAB
1

Sep 01

 

Overview of AI and Machine Learning

Lab 1: Critiquing generative AI models

Sep 03

 
2

Sep 08

 

Data Science

  • Pre-processing data
  • Feature engineering
  • Data visualization
  • Basic statistics

Lab 2: Advanced Python

Sep 10

 
3

Sep 15

 

Introduction to Modeling

Lab 3: Data cleanup and analysis using pandas

Sep 17

 
4

Sep 22

 

Classification, Logistic Regression

  • Basic Linear Algebra primer/refresher (videos) Essense of Linear Algebra playlist; focus on Chapter 1 (vectors) and the first 4 minutes of Chapter 9 (dot products) for this week

Lab 4: Logistic Regression

Sep 24

 
5

Sep 29

 

Neural Networks

Lab 5: Implementing Backprop

Oct 01

 
6

Oct 06

 

Ethical issues that arise with data

  • How big data is unfair Medium, 2014
  • Data provenance
  • Data diversity
  • Data imbalance
  • How data is applied to solve problems

Exam 1 in lab

Oct 08

 
 

Oct 13

Fall Break

Oct 15

7

Oct 20

 

Dimensionality Reduction

  • Principal components analysis
  • Visualizing hidden layers

Lab 6: Use PCA on models

Oct 22

 
8

Oct 27

 

Evaluating Models

  • Machine Bias, ProPublica, 2016
  • Overfitting and Underfitting
  • Hyperparameter tuning
  • Possible harms

Lab 7: Evaluating models

Oct 29

 
9

Nov 03

 

Advanced Neural Networks that Process Text

Lab 8: Sentiment analysis

Nov 05

 
10

Nov 10

 

Advanced Neural Networks that Process Images

  • Generative Models

Lab 9: Image generation

Nov 12

 
11

Nov 17

 

Project Development

  • Provide limited set of possibilities
  • Staged development plan
  • Deliverables (paper and poster)

Project Proposal

Nov 19

 
12

Nov 24

 

Societal Implications of ML Models

  • Disparate Impact
  • Transparency/explainability
  • Stakeholders

No lab Thanksgiving break

Nov 26

Thanksgiving Break

13

Dec 01

 

More on Societal Implications

Project Continues

Dec 03

Exam 2

14

Dec 08

Follows a Thursday schedule

TBD

Finish Project