mod 08: overfitting, regularization

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:38 PM on 3/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

overfitting occurs when a model fits the — data very wells but performs poorly on — data

training, test

2
New cards

underfitting occurs when a model is too — and cannot capture the — in the data

simple, pattern

3
New cards

a model that performs well on new data is said to — well

generalize

4
New cards

a linear model like f(x) = w0 + w1x can lead to — if the true relationship is more complex

underfitting

5
New cards

a high degree polynomial model may lead to — because it fits noise in the data

overfitting

6
New cards

an overfit regression model typically has very — training error and — test error

low, high

7
New cards

underfitting is associated with high —

bias

8
New cards

overfitting is associated with high —

variance

9
New cards

variance refers to how sensitive a model is to — — in the — data

small changes, training

10
New cards

bias refers to error caused by overly — assumptions

simple

11
New cards

increasing model complexity TOO MUCH leads to —

overfitting

12
New cards

decreasing model complexity TOO MUCH leads to —

underfitting

13
New cards

FIXING OVERFITTING

  • collect more —

  • selecting only important input variables: — —

data, feature selection

14
New cards

feature selection helps reduce — by — model complexity

overfitting, lowering

15
New cards

regularization helps prevent —

it works by making — —

overfitting, weights small

16
New cards
<p><strong>Regularized Cost Function</strong></p><p></p><p>the first term is the — —</p><p></p><p>the second term is the — —</p><p></p><p>the second term penalizes — —</p>

Regularized Cost Function

the first term is the — —

the second term is the — —

the second term penalizes — —

data term, regularization term, large weights

17
New cards
<p><strong>Role of lambda</strong></p><p></p><p>lambda controls the tradeoff between — the data and keeping weights —</p>

Role of lambda

lambda controls the tradeoff between — the data and keeping weights —

fitting, small

18
New cards
<ul><li><p>If λ = 0:</p><ul><li><p>No <strong>—</strong></p></li><li><p>Model may <strong>—</strong></p></li></ul></li><li><p>If λ is very large:</p><ul><li><p>Weights go to <strong>—</strong></p></li><li><p>Model becomes too —</p></li></ul></li></ul><p></p><p>When λ is extremely large:</p><ul><li><p>Model becomes: f(x) = —</p></li><li><p>This predicts the — of y values</p></li></ul><p></p>
  • If λ = 0:

    • No

    • Model may

  • If λ is very large:

    • Weights go to

    • Model becomes too —

When λ is extremely large:

  • Model becomes: f(x) = —

  • This predicts the — of y values

regularization, overfit, 0, simple, w0, average

19
New cards

If we have many features (x₁ … x₁₀₀), regularization:

  • forces weights to be

  • reduces risk of

small, overfitting

20
New cards
<p>what is this?</p>

what is this?

regularized linear/logistic regression