Machine Learning Lab Viva Guide

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

1/43

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering fundamental machine learning algorithms, preprocessing functions, ensemble models, search algorithms, and validation metrics from the viva revision guide.

44 Terms

1
New cards

Machine Learning

The practice of teaching a computer to discover patterns from data and produce predictions without writing explicitly coded rules.

2
New cards

Supervised Learning

A learning paradigm that trains models on labeled data where both the input features and target labels are explicitly provided, such as in classification and regression.

3
New cards

Unsupervised Learning

A learning approach that discovers hidden structures, groupings, or patterns from unlabeled data, such as clustering with K-Means.

4
New cards

Reinforcement Learning

A framework where an autonomous agent learns optimal behaviors through sequential trial and error, earning rewards for positive outcomes and penalties for negative ones.

5
New cards

Iris Dataset

A standard scikit-learn benchmark dataset comprising 150150 samples of flowers, 44 continuous features (sepal length, sepal width, petal length, petal width), and 33 balanced classes (setosa, versicolor, virginica) with 5050 samples each.

6
New cards

Data Leakage

An issue where information from the testing set accidentally contaminates the training pipeline, leading to overly optimistic and ungeneralizable performance estimates.

7
New cards

Standardization

A feature scaling method performed by StandardScaler that transforms numeric features to have a mean of 00 and a standard deviation of 11, using the equation z=x−meanstdz = \frac{x - \text{mean}}{\text{std}}.

8
New cards

Normalization

A feature scaling process executed by MinMaxScaler that bounds numerical values into a fixed interval, typically between 00 and 11, via x′=x−minmax−minx' = \frac{x - \text{min}}{\text{max} - \text{min}}.

9
New cards

SimpleImputer

A scikit-learn transformer used to replace missing data points (NaN\text{NaN}) utilizing calculated strategies such as mean, median, most_frequent, or a specified constant.

10
New cards

One-Hot Encoding

A categorical transformation technique that converts each unique discrete category into a dedicated binary 00 or 11 column without introducing artificial rank or order.

11
New cards

Sigmoid Function

A mathematical curve employed within Logistic Regression that maps any real input value into a probability interval from 00 to 11, represented as 11+e−x\frac{1}{1 + e^{-x}}.

12
New cards

Gini Impurity

A split evaluation criterion for Decision Tree classifiers measuring statistical impurity, calculated as 1−∑p21 - \sum p^2, where a value of 00 represents absolute purity.

13
New cards

Entropy

An information theory metric quantifying node disorder in a decision tree, formulated as −∑plog⁡2(p)-\sum p \log_2(p).

14
New cards

k-Nearest Neighbors (k-NN)

A distance-based, non-parametric lazy learner that categorizes new observations by taking a majority vote of the class labels among its KK nearest data points.

15
New cards

Support Vector Machine (SVM)

A supervised classification model that establishes an optimal separating hyperplane by maximizing the margin between adjacent boundary points of different classes.

16
New cards

Support Vectors

The specific training observations residing nearest to or directly upon the margin boundaries that mathematically dictate the placement of the separating hyperplane in an SVM.

17
New cards

Radial Basis Function (RBF) Kernel

A widely used SVM kernel that projects input data into non-linear, higher-dimensional spaces to formulate curved decision boundaries using distance-dependent similarity.

18
New cards

Naive Bayes

A rapid probabilistic classification algorithm derived from Bayes' theorem (P(Class∣Features)=P(Features∣Class)×P(Class)P(Features)P(\text{Class} \mid \text{Features}) = \frac{P(\text{Features} \mid \text{Class}) \times P(\text{Class})}{P(\text{Features})}) under the naive assumption that all predictive features are conditionally independent.

19
New cards

Mean Absolute Error (MAE)

A regression loss metric computed as the simple average of all absolute differences between actual ground-truth values and model predictions: average of ∣actual−predicted∣\text{average of } |\text{actual} - \text{predicted}|.

20
New cards

Mean Squared Error (MSE)

A regression evaluation measure calculated as the average of the squared errors between observed and estimated values, which imposes heavier penalties on large outlier errors.

21
New cards

Root Mean Squared Error (RMSE)

The square root of the Mean Squared Error (MSE\sqrt{\text{MSE}}), expressing prediction error in the identical physical units as the original dependent variable.

22
New cards

Coefficient of Determination (R2R^2)

A statistical score indicating the fraction of overall target variance accounted for by a regression model, where a maximum score of 1.01.0 denotes an ideal fit.

23
New cards

Bagging (Bootstrap Aggregating)

An ensemble technique that fits multiple instances of a base model in parallel on independent bootstrap samples to mitigate model variance, as implemented in Random Forest.

24
New cards

Boosting

A sequential ensemble learning strategy where consecutive weak models are iteratively trained to target and rectify the residual prediction errors of preceding models to lower bias.

25
New cards

AdaBoost

Adaptive Boosting; an ensemble algorithm that builds a succession of weak learners (typically decision stumps) while adaptively scaling up the sample weights of misclassified observations.

26
New cards

XGBoost

eXtreme Gradient Boosting; an efficient gradient boosting software framework that constructs decision trees sequentially using gradient descent optimizations and built-in regularization.

27
New cards

Soft Voting

An ensemble voting mechanism in a Voting Classifier that computes the average of predicted class probabilities across base estimators and picks the class with the largest mean.

28
New cards

GridSearchCV

A hyperparameter optimization utility in scikit-learn that evaluates every exhaustively defined parameter permutation using cross-validation to isolate the best-performing model.

29
New cards

Stratified K-Fold

A cross-validation partitioning scheme that divides data into KK distinct subsets while maintaining equivalent relative class distributions within every individual fold.

30
New cards

SMOTE

Synthetic Minority Over-sampling Technique; an algorithmic method for imbalanced classification that synthesizes artificial minority observations along line segments connecting adjacent minority instances.

31
New cards

Precision

The ratio of correctly classified positive instances relative to the total number of predicted positive cases, computed as TPTP+FP\frac{\text{TP}}{\text{TP} + \text{FP}}.

32
New cards

Recall

The proportion of ground-truth positive samples that are successfully captured by the classification model, formulated as TPTP+FN\frac{\text{TP}}{\text{TP} + \text{FN}}.

33
New cards

F1-Score

The harmonic mean balancing precision and recall performance into a unified scalar, given by 2×Precision×RecallPrecision+Recall\frac{2 \times \text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}.

34
New cards

Receiver Operating Characteristic (ROC) Curve

A visual performance plot mapping the True Positive Rate against the False Positive Rate across all conceivable probabilistic decision thresholds.

35
New cards

Principal Component Analysis (PCA)

An unsupervised orthogonal linear transformation method that projects multidimensional data onto fewer continuous axes called principal components while retaining maximal data variance.

36
New cards

Recursive Feature Elimination (RFE)

A backward greedy wrapper feature selection algorithm that systematically trains a base model and removes the lowest-ranked features until a desired feature subset remains.

37
New cards

K-Means Clustering

An iterative, distance-based partitioning algorithm that segregates data into KK unique clusters by dynamically shifting cluster centers (centroids) to minimize within-cluster spread.

38
New cards

Inertia

The within-cluster sum of squared Euclidean distances connecting every sample point to its closest assigned cluster centroid, utilized in the elbow method to determine optimal KK.

39
New cards

DBSCAN

Density-Based Spatial Clustering of Applications with Noise; an unsupervised clustering model that segments contiguous high-density point neighborhoods and isolates low-density outliers as noise (−1-1).

40
New cards

Silhouette Score

An intrinsic cluster validation metric ranging between −1-1 and 11 evaluating how tightly grouped an instance is within its assigned cluster compared to neighboring alternate clusters.

41
New cards

Breadth-First Search (BFS)

An uninformed search algorithm that expands search frontiers layer-by-layer utilizing a First-In-First-Out (FIFO) queue, ensuring the shortest path on unweighted graphs.

42
New cards

A* Search Algorithm

An informed, heuristic-driven search algorithm that identifies lowest-cost paths by expanding the node having the minimum evaluation value f(n)=g(n)+h(n)f(n) = g(n) + h(n).

43
New cards

Admissible Heuristic

A search heuristic function h(n)h(n) that never exceeds or overestimates the actual minimal cost required to traverse from node nn to the defined goal state.

44
New cards

Tower of Hanoi Recurrence

The recursive progression defined by T(n)=2T(n−1)+1T(n) = 2T(n - 1) + 1 with base case T(1)=1T(1) = 1, proving that moving nn disks requires at least 2n−12^n - 1 total actions.