CS 370 - Spring 2025. 3/31/2025


[Home]

Welcome to CS 370!

Video of the Day

robot ping pong vs human. Pretty chill.

I hereby solicit suggestions for the video of the day. Please email me your ideas with explanations. Selected entries will win 5 homework points. If your video is played at the beginning of class, you must also briefly explain something about the video and something about yourself - in person.

Canvas Quiz of the Day (need daily password)

Most days, there will be a simple canvas quiz related to the lecture. You need a password to activate the quiz, which I will provide in class. These quizzes will count toward your class participation grade. The quiz is available only during class. You get full credit for class participation by completing half of the quizzes.

Click for today's quiz.

Lecture 18: Learning

Announcements

  • Information Society Project Yale Law School. Weekly Events

  • Yale Pitchbook Mixer, Thursday April 3rd, 8:30pm - 10:30pm, HQ Room 131 (Student Lounge)
    Yale Undergraduate Capital Partners (YUCP) is officially launching YalePitchbook.com - the first platform connecting Yale startups with investors, talent, and resources, and building a robust ecosystem of founders, investors, operators, and startup service providers in New Haven & beyond! The platform is backed by Yale Ventures, Yale School of Management, and Tsai Center for Innovative Thinking at Yale (Tsai CITY).

    To celebrate the launch, YUCP and YES are hosting a launch party and entrepreneurship mixer, sponsored by Xfund, from 8:30-10:30 pm on Thursday, April 3, at the HQ Lounge, with free drinks and food!

    Expect founders, VCs, angels, joiners, current students, alumni, and friends of the Yale startup ecosystem all in one room - plus a chance to explore the startups shaping the future from within Yale’s walls. Whether you're looking to invest, collaborate, or just get inspired, this is the event to be at.

    RSVP now: https://lu.ma/5d47dx6x. Flyer attached!

  • Job posting.
    Prof. Qingyu Chen from Yale Medical School is looking for a Yale CS student to collaborate on a project involving large language models (LLMs) in the medical domain. The work mainly involves instruction tuning, so familiarity with that would be great.

    Interested students can reach out to Prof. Chen directly at qingyu.chen@yale.edu.

  • Call for Proposals - Envisioning Artificial Intelligence at Yale: An Interdisciplinary Symposium - deadline to submit a presentation is March 31.
    An Interdisciplinary Symposium based on previous work you have done in this area. We aspire to make this a truly interdisciplinary event by offering a variety of formats including panels, lightning talks, posters, art works, performances, and demonstrations (robots welcome).

    o Event Date and Location: May 9, 2025, Kline Tower

    o Submit Proposals

    o Visit the Symposium Website

    o Deadline: Submit a 150- to 250-word proposal abstract by March 31, 2025.

    Administrivia

  • I have office hours Wednesdays from 4-6 p.m. via Zoom, meeting ID 459 434 2854.

  • The TF's office hours are posted on Ed Discussion.

  • I am available for lunch on Mondays at 1 pm in Morse.

  • Homework assignments: [Assignments]. hw6 is now available. See Ed Discussions for links to other Titanic video tutorials. Also, see Tyler's post about using FastX on the zoo for running jupyter notebooks remotely.

    Asides from previous lectures

    AI in the news

  • Interview-bypassing AI tool lands student developer in hot water submitted by Vimbisai Basvi.

  • Access to the Atlantic
  • Access to Economist (Economist.com)
  • Access to Financial Times
  • Access to Wall Street Journal from Yale.
  • Q and AI Bloomberg.
  • Access to Bloomberg.com from Yale.

    Lecture: Goal-based Decision Making

  • An Intentional Arithmetic for Qualitative Decision Making

    Lecture: Learning

    Irises, Vincent Van Gogh.

  • Readings: chapters 19-21
  • 2019 Scassellati Slides:
  • AIMA Slides:

  • 0324.ipynb 0324.html Perceptron ***
  • Ensemble learning
  • Boosting

  • Machine learning with SciKit Learn ***
    pip install scikit-learn
    
  • compare various sklearn algorithms jupyter notebook HTML file. ***
  • sklcompare.py Used in previous. Error in numpy versions. Sigh.

  • learning_apps.ipynb learning_apps.html See MNIST data (Modified National Institute of Standards and Technology.) Combines census and high school student samples. ***

    Neural Networks

  • Boolean Functions with Perceptrons
  • Like Boolean circuits (from CS 201). A feed-forward neural network is like a combinational circuit or a directed acyclic graph, with designated input and output nodes. However, instead of Boolean values of 0 or 1, there is a continuous value between 0 and 1. The usual activation functions include logistic (sigmoid), tanh, ReLU (rectified linear unit), or linear. (See table). All are monotonically nondecreasing, which means that their derivatives are nonnegative.
  • A recurrent neural network is like a sequential circuit, which includes feedback. It is a dynamic system with internal state or memory.
  • A Transformer architecture is derived from the 2017 paper Attention is all you need from Google researchers, which lead to the LLM development.
  • neural_nets.ipynb neural_nets.html

  • Neural Network playground

    Future topics: NLP and LLMs

  • Moore's Law vs the More Law.
  • Hands-on large language models : language understanding and generation Jay Alammar, O'Reilly, 2024. (Yale library online book).
  • NLP Progress Repository to track the progress in Natural Language Processing (NLP), including the datasets and the current state-of-the-art for the most common NLP tasks.
  • C4 (Colossal Clean Crawled Corpus)
  • Efficient Estimation of Word Representations in Vector Space the word2vec paper, by Jeff Dean and the Google guys. 2011.
    [Home]