Machine Learning and Data Science Study Sheet Flashcards

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

1/49

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary and core concepts for Machine Learning and Data Science based on lecture notes covering chapters 2, 4, 5, and 6.

Last updated 5:32 PM on 6/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

pandas

Library for loading and manipulating tabular data using objects like DataFrame.

2
New cards

numpy

Library for numerical computation with arrays (ndarray) using vectorized operations.

3
New cards

matplotlib

Library used for data visualization and plotting, such as bar graphs and line plots.

4
New cards

sklearn

Library providing machine learning models, metrics, and utilities like train_test_split and accuracy_score.

5
New cards

X

The feature matrix containing all independent input/predictor columns.

6
New cards

y

The target vector representing the single dependent variable, outcome, or label to predict.

7
New cards

train_test_split

A utility to split data into training and test sets, often using a 70/30 or 75/25 ratio.

8
New cards

pd.factorize()

A method used to convert categorical text into integer labels, returning both the labels and the uniques.

9
New cards

.mask()

A pandas method used for conditional replacement, often used for binning continuous columns into categories.

10
New cards

.fit()

The method used to train a machine learning model on training data during the learning phase.

11
New cards

.predict()

The method used to generate predictions on new data during the inference or testing phase.

12
New cards

accuracy_score

Evaluation metric for classification representing the fraction of correct predictions.

13
New cards

confusion_matrix

A table specifically used for classification to show counts of True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN).

14
New cards

Normalization

Scaling features to the range [0,1][0, 1] using the formula lambda x:(xmin(x))/(max(x)min(x))\text{lambda } x: (x - \min(x)) / (\max(x) - \min(x)) to ensure kNN distances are fair.

15
New cards

Supervised learning

Learning from labeled training data to predict future outcomes, branching into regression and classification.

16
New cards

Regression

A model type for relationships between continuous variables that estimates a numerical output.

17
New cards

Linear regression

Fitting a straight line defined as y=c+mXy = c + mX using Ordinary Least Squares (OLS) to minimize Mean Squared Error (MSE).

18
New cards

c (intercept)

The constant or bias value of yy when X=0X = 0, where the line crosses the y-axis.

19
New cards

m (coefficient)

The slope or weight representing how much yy changes per unit increase in XX.

20
New cards

MSE (Mean Squared Error)

The average of squared prediction errors; it is the primary objective to minimize in OLS.

21
New cards

RMSE (Root Mean Squared Error)

The square root of MSE, resulting in error values in the same units as the target variable yy.

22
New cards

Overfitting

A condition where a model memorizes training data and fails to generalize to new data, often characterized by low bias and high variance.

23
New cards

Ridge regression

Linear regression with an L2 penalty that shrinks all coefficients but retains all features.

24
New cards

Lasso regression

Linear regression with an L1 penalty that can zero out irrelevant features for automatic feature selection.

25
New cards

Gradient descent

Iterative optimization to minimize cost using a learning rate (alpha), stopping when change is less than epsilon.

26
New cards

r2_score

R-squared value representing the proportion of variance explained by a regression model, ranging from 0 to 1.

27
New cards

Classification

A supervised learning task that predicts discrete categories or class labels.

28
New cards

kNN algorithm

A lazy learner that classifies new points by taking a majority vote of the kk nearest neighbors' labels.

29
New cards

Decision tree

A model that predicts classes using a tree structure of rules composed of decision nodes and leaf nodes.

30
New cards

Entropy

A measure of impurity or disorder; completely homogeneous nodes have an entropy of 0, while equal splits have an entropy of 1.

31
New cards

Information gain

The reduction in entropy achieved after a split; models like ID3 select attributes with the largest information gain.

32
New cards

Random forest

An ensemble method using bagging to build many decision trees, aggregating them via majority vote to reduce overfitting.

33
New cards

Logistic regression

A binary classification algorithm that uses the sigmoid function to convert output into a probability.

34
New cards

Sigmoid function

An S-shaped curve defined as σ(x)=11+ex\sigma(x) = \frac{1}{1 + e^{-x}} that bounds output between 0 and 1.

35
New cards

Likelihood l()

The probability of the model given the data; logistic regression maximizes log-likelihood iteratively.

36
New cards

Softmax regression

A multinomial extension of logistic regression for more than two classes that outputs a probability distribution over nn classes.

37
New cards

Softmax function

A function that takes a vector of numbers and normalizes them into probabilities that sum to 1.

38
New cards

Naive Bayes

A classification method based on Bayes theorem that assumes all features are conditionally independent.

39
New cards

Prior probability P(c)

The base rate probability of a class before observing the current data.

40
New cards

Posterior probability P(c|x)

The updated probability of a class after seeing the data; the highest posterior wins in Naive Bayes.

41
New cards

MultinomialNB

A Naive Bayes variant specifically for count or categorical data following a multinomial distribution.

42
New cards

GaussianNB

A Naive Bayes variant for continuous features that assumes a Gaussian (normal) distribution.

43
New cards

SVM (Support Vector Machine)

A classifier that finds the optimal separating hyperplane with the maximum margin between classes.

44
New cards

Support vectors

The training data points closest to the hyperplane that define and control the margin size.

45
New cards

Margin

The distance between the separating hyperplane and the nearest support vectors; maximized to improve generalization.

46
New cards

Kernel

A function trick mapping data to higher dimensions for separation, with options like linear, rbf, and poly.

47
New cards

ROC / AUC

ROC plots TPR vs FPR at thresholds; AUC measures model quality where 1.0 is perfect and 0.5 is random.

48
New cards

Precision

Calculation defined as TPTP+FP\frac{TP}{TP + FP}, measuring how many predicted positives were actually correct.

49
New cards

Recall (Sensitivity)

Calculation defined as TPTP+FN\frac{TP}{TP + FN}, measuring what fraction of actual positives the model caught.

50
New cards

F1 Score

The harmonic mean of precision and recall calculated as 2×Precision×RecallPrecision+Recall2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}.