Data Science Quiz 4

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

1/44

encourage image

There's no tags or description

Looks like no tags are added yet.

45 Terms

1
New cards

Linear Regression

  • powerful tool for estimating slope coefficients and intercept values


2
New cards

Linear Regression Use Cases

  • statics and dynamics for friction analysis

  • physics

  • business


3
New cards

Basis Function

  • you have one or a small number of inputs to a system

  • the input is subject to multiple distinct transforms before multiplying against regression coefficients


4
New cards

Polynomial Regression

  • scikit-learn

  • making a model that has transforms


5
New cards

Generalization

  • informative guess-making

  • can be robust to noise

  • transferability to knowledge

  • smooth model


6
New cards

Particularization

  • case-by-case basis

  • emphasis on smaller details

  • inflections, not smooth

  • worse than generalization


7
New cards

Overfitting

the tendency of data mining procedures to tailor models to the training data, at the expense of previously unseen data points

  • basically builds a model using pure memorization

  • closed form solutions cannot overfit


8
New cards

Irreducible Error

  • min/max test dataset performance

  • closed form linear regression solution

  • minimizes the MSE


9
New cards

What causes the irreducible error?

  • noise

  • bias

  • variance


10
New cards

Bias

induced when the model is too simple, causes underfitting

11
New cards

Variance

induced by complex model’s sensitives to small changes in the training data

12
New cards

Accepted Irreducible Error Equation

error = bias² + variance + Epsilon

13
New cards

SVM Kernel

pre-processing on the data

14
New cards

SVM class_weight

if you have more of one class

15
New cards

SVM max_iter

how long the model can look for a solution

16
New cards

Naive Bayes

assume conditional independence

17
New cards

SVM

linear solver, can use kernel

18
New cards

Decision Tree

arbitrary depth

good at non-lineraity

entropy-based

19
New cards

Logistic Regression

  • probability-based

  • weight optimization

  • sigmoid function


20
New cards

Multi-Layer Perceptron

  • arbitrary size

  • backpropagation and gradient descent

  • customization


21
New cards

Train Data

fit models directly

22
New cards

Validation Data

judge how to adjust model complexity

23
New cards

Test Data

final evaluation of model performance

24
New cards

Validation Set

  • tune the model hyperparameters

  • either separate from training set or a slice of training set


25
New cards

Test Set

  • unbiased gauge of model performance on completely unseen data

  • final determination of model performance

  • only one


26
New cards

k-Fold Cross Validation (CV)

  • split training set into K distinct validation sets


27
New cards

Stratification

preserving the ratio/distribution of data across splits

28
New cards

Decision Tree Strategies

  • limit tree growth

  • prune the tree

  • random forest


29
New cards

Taming Complexity works with _

  • decision trees

  • logistic regression

  • MLP


30
New cards

What is an indicator of overfitting / problems

large weights because of high variance

31
New cards

Regularization

the idea that we can prevent more complex parametric models from overfitting by constraining the weights

  • guards against overfitting, giving us a superior test set MSE/MAE. does not find the best loss minima (in ridge loss)


32
New cards

Objective Function

expansion of the loss function that can include additional terms that have nothing to do with the ground-truth labels or outputs

  • such as regularization penalties


33
New cards

Ridge Regression

  • Tikhonov regularization

  • penalize sum of squares

  • push the weights towards lower numerical values

  • sub/superscript (exp & root)


34
New cards

Lasso Regression

  • used less than ridge

  • penalize absolute values

  • tends to engender sparsity where a subset of weights are pushed to be zero

  • only subscript (just abs())


35
New cards

lambda

  • hyperparameter

  • controls how important the regularization term is compared to the loss term


36
New cards

What is the closed form solution with regularization?

pairing MSE/L2 loss with ridge/L2 regularization

37
New cards

Ensembling

exploiting the overfitting tendency of some models

38
New cards

Random Trees

ensemble supervised machine learning algorithm that builds many individual decision trees to make more accurate and stable predictions than a single tree

39
New cards

Ensembling + Cross Validation

  1. use k-fold CV to pick some optimal hyperparameters

  2. make a set of K learner models, trees, regressors, that train on the K training splits we used for CV


40
New cards

Cross Validation

  1. use k-fold CV to pick some optimal hyperparameters

  2. re-train optimal model design on the full training dataset

  3. evaluate on test set


41
New cards

What is the first step to learning the weights?

  • picking your loss

  • to make better weights, you must quantify how they’re wrong


42
New cards

QR Decomposition

  • used for full-rank matrices

  • less intense than original calculation but still yields same result


43
New cards

Singular Value Decomposition

  • used for low-rank & ill-conditioned matrices

  • scikit-learn will check


44
New cards

Gradient Descent

  • simplest form of iterative function optimization

  • solves linear regression w/ MAE loss

  • solves logistic regression


45
New cards

The Learning Rate n (long n)

determines how far we move with each update