1. Home
  2. Explore
  3. Other
  4. Lecture Introduction and Logistics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Lecture Introduction and Logistics

  • 24Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Logistics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the purpose of the Ed thread set up for lecture questions?

Tap to flipClick to flipspace

To allow students to ask questions during class, as the anonymous Zoom feature is no longer available.

Or swipe the card

24 cards

  1. What is the purpose of the Ed thread set up for lecture questions?

    To allow students to ask questions during class, as the anonymous Zoom feature is no longer available.

  2. What two downloads does the instructor provide before his lectures?

    Handwritten notes of what he will talk about and a template for students to follow along.

  3. What is the plan for the first three lectures according to the instructor?

    To build increasingly sophisticated machine learning models: linear regression, classification, and then the exponential family of models.

  4. What is the underlying workhorse algorithm that will be introduced in the simplest setting?

    Stochastic gradient descent.

  5. What is supervised learning?

    A type of machine learning where we have a training set of input-output pairs (xi,yi)(x_i, y_i)(xi​,yi​) and need to find a prediction function h:X→Yh: \mathcal{X} \to \mathcal{Y}h:X→Y that maps inputs to outputs.

  6. What is a training set in supervised learning?

    A set of nnn pairs (x1,y1),(x2,y2),…,(xn,yn)(x_1, y_1), (x_2, y_2), \ldots, (x_n, y_n)(x1​,y1​),(x2​,y2​),…,(xn​,yn​), where xi∈Xx_i \in \mathcal{X}xi​∈X are inputs and yi∈Yy_i \in \mathcal{Y}yi​∈Y are labels.

  7. What is the difference between classification and regression?

    Classification has discrete yyy (e.g., yes/no, categories), while regression has continuous yyy (e.g., house prices).

  8. Why does the instructor emphasize looking at data before running fancy models?

    To understand what is actually in the dataset; many engineers skip this step and start modeling without knowing their data.

  9. What is the form of a linear regression model?

    hθ(x)=θ0+θ1x1+θ2x2+⋯+θdxd=∑j=0dθjxjh_\theta(x) = \theta_0 + \theta_1 x_1 + \theta_2 x_2 + \cdots + \theta_d x_d = \sum_{j=0}^d \theta_j x_jhθ​(x)=θ0​+θ1​x1​+θ2​x2​+⋯+θd​xd​=∑j=0d​θj​xj​, with x0=1x_0 = 1x0​=1.

  10. How is the training data represented in matrix form for linear regression?

    As a design matrix XXX with nnn rows (one per example) and d+1d+1d+1 columns (features including the intercept column of ones).

  11. What is the cost function used in linear regression?

    The mean squared error: J(θ)=12∑i=1n(hθ(xi)−yi)2J(\theta) = \frac{1}{2} \sum_{i=1}^n (h_\theta(x_i) - y_i)^2J(θ)=21​∑i=1n​(hθ​(xi​)−yi​)2.

  12. What is the principle of picking a good model in supervised learning?

    We want to find θ\thetaθ that minimizes the cost function J(θ)J(\theta)J(θ).

  13. What is gradient descent?

    An iterative optimization algorithm that updates parameters in the direction of the negative gradient: θj(t+1)=θj(t)−α∂∂θjJ(θ(t))\theta_j^{(t+1)} = \theta_j^{(t)} - \alpha \frac{\partial}{\partial \theta_j} J(\theta^{(t)})θj(t+1)​=θj(t)​−α∂θj​∂​J(θ(t)).

  14. What is the gradient of the cost function for linear regression?

    ∂∂θjJ(θ)=∑i=1n(hθ(xi)−yi) xij\frac{\partial}{\partial \theta_j} J(\theta) = \sum_{i=1}^n (h_\theta(x_i) - y_i) \, x_{ij}∂θj​∂​J(θ)=∑i=1n​(hθ​(xi​)−yi​)xij​.

  15. Why is the 1/2 factor included in the cost function?

    So that when taking the derivative, the 2 from the square cancels with the 1/2, simplifying the gradient.

  16. What is batch gradient descent?

    Gradient descent where each update uses the entire training set to compute the gradient.

  17. What is stochastic gradient descent (SGD)?

    Gradient descent where each update uses a single randomly chosen training example to approximate the gradient.

  18. What is mini-batch gradient descent?

    Gradient descent where each update uses a small random subset (mini-batch) of the training data, typically of size BBB (e.g., 128).

  19. Why might mini-batch gradient descent be preferred over full batch?

    Because modern hardware can process a mini-batch almost as fast as a single example, and it reduces redundancy from near-duplicate data.

  20. What is the normal equation in linear regression?

    The closed-form solution for the optimal parameters: θ=(XTX)−1XTy\theta = (X^TX)^{-1}X^Tyθ=(XTX)−1XTy.

  21. What are the trade-offs between gradient descent and the normal equation?

    Gradient descent is iterative but scales to large data; normal equation gives an exact solution but requires inverting a matrix of size O(d3)O(d^3)O(d3).

  22. In modern machine learning, is it guaranteed that gradient descent finds the global minimum for non-convex cost functions?

    No, for non-convex functions gradient descent may find a local minimum or saddle point, and there is no guarantee of finding the global minimum.

  23. What is overfitting?

    When a model fits the training data too closely, capturing noise and failing to generalize to new data.

  24. What did a recent paper by Misha Belkin show about interpolation?

    For some models, perfectly fitting the training data (interpolation) can still lead to optimal generalization.

Card 1 of 24
Card 1 of 24

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent