Supervised Machine Learning Exam 3

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

18 Terms

1
New cards

Validation Method

The data is split in half into the training data and the testing data. We measure the quality of the predictions on the testing data using MSE. This method results in higher variation due to the model being built on a smaller dataset.

2
New cards

Leave-one-out Cross-validation (LOOCV)

We choose one point to leave out and test using the remaining n-1 data points. A drawback for this method is that it is resource intensive, with n different models being used.

3
New cards

k-fold Cross-validation

The data is randomly broken down into k different subsets, then we build a model using k-1 of those parts, then test on the remaining part.

4
New cards

Bootstrapping

Allows us to generate new data sets from an existing one by drawing at random and with replacement from our known data set. This means that we have repeatable values.

5
New cards

Decision Tree

An alternative approach to regression and classification by attempting to stratify or classify the data and use subgroups to make predictions.

6
New cards

Leaf (Terminal Node)

The endpoint value of a decision tree which is used for making a prediction

7
New cards

Recursive Binary Splitting

The technique which gives trees their distinctive quality and carried out through the following process:

  • Choose a variable

  • Make an optimal binary split

  • Repeat ad nauseum (until finished)


8
New cards

Pruning

Trees can be easily overfit, so this technique optimizes the predictive value of the tree and prevent overfitting.

9
New cards

Cost Complexity Pruning

The pruning technique seeking the subtree that minimizes Σ(yi-ŷi)²+α|T| where

  • α is the tuning parameter

  • |T| is the number of terminal nodes


10
New cards

E=1-maxk{p^mk}

The error rate of a classification tree’s prediction where p^mk is the proportion of data in the mth region in the kth class.

11
New cards

G=ΣKk=1p^mk(1-p^mk)

The Gini Index for a classification tree (optimized when p^mk=0.5). A low value for G indicates a high level of node purity (most observations in various regions are assigned correctly)

12
New cards

D=-ΣKk=1p^mkln(p^mk)

Entropy, another method for assessing a classification tree’s prediction power. It is very similar to the Gini Index in terms of output, however, the two aren’t exactly interchangeable.

13
New cards

High Variance

Decision trees have this significant disadvantage that is defined by small changes to the data set yielding wildly different trees.

14
New cards

Ensemble Methods

Do a bunch of simple things and aggregate the results somehow to reduce the high variance of decision trees.

15
New cards

Bagging

An ensemble method that builds on the success of bootstrapping to reduce variance through averaging.

16
New cards

Out-of-the-bag (OOB) Error Estimation

Find the prediction over all trees which xi was not used and average (regression). Find the most common output over all the trees where xi was not used (classification).

17
New cards

Variance Importance

When this phenomenon occurs, it should reduce the RSS/Gini a lot each time it’s used for a split.

18
New cards

Random Forests

Using the same bootstrapping method to generate B different training data sets with m<p randomly selected predictors to use in making the tree (typically around m<√p).