Machine Learning and Data Mining Concepts: NLP, Clustering, PCA, Cross-Validation, Pipelines, and Neural Networks

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

1/51

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering natural language processing, hierarchical clustering, DBSCAN, K-means clustering, principal component analysis, unsupervised anomaly detection, Scikit-Learn pipelines, cross-validation methods, and deep learning architectures.

52 Terms

1
New cards

Text Mining (Text Analytics)

The automated conversion of unstructured natural language text into structured representations to identify patterns, themes, relationships, sentiment, and business risks at scale.

2
New cards

Corpus

The complete, aggregated collection of text documents assembled for analysis, where each individual document functions as a single observation.

3
New cards

Lemmatization

A text normalization preprocessing procedure that uses vocabulary and morphological rules to reduce variant word forms down to their base dictionary root form (e.g., converting "running" to "run").

4
New cards

Term-Based Methods (TBM)

Text representation techniques, such as Bag-of-Words and basic word counts, that operate on individual terms while disregarding word sequence order and suffering from polysemy and synonymy.

5
New cards

TF-IDF (Term Frequency-Inverse Document Frequency)

A numeric feature weighting method that reduces the weight of ubiquitous, high-frequency terms across an entire corpus while scaling up the weight of distinct, document-specific terms.

6
New cards

Phrase-Based Methods (PBM)

Text feature representations utilizing multiword nn-grams (such as bigrams or trigrams) to capture localized multiword context, improving discriminative power at the cost of higher feature dimensionality.

7
New cards

Information Extraction (IE)

A text analysis task aimed at pulling entities (e.g., people, organizations), attributes (e.g., price, date), and relations into structured schema records, primarily evaluated via Precision, Recall, and F1F_1 score.

8
New cards

Information Retrieval (IR)

The task of returning and ranking corpus documents that match a query or user intent, evaluated using ranking and relevance metrics such as Precision@k, Recall@k, MAP, and nDCG.

9
New cards

Agglomerative Hierarchical Clustering

A bottom-up unsupervised clustering algorithm that begins with each data point in its own individual cluster and iteratively merges the closest pairs according to a linkage criterion until a single cluster remains.

10
New cards
<p>Dendrogram</p>

Dendrogram

A tree diagram illustrating the hierarchical arrangement of clusters formed during agglomerative clustering, which can be sliced horizontally at a specific merge height to yield any target cluster count.

11
New cards

Single Linkage

A hierarchical clustering linkage criterion that defines the distance between two clusters as the minimum pairwise distance between any single point of the first cluster and any point of the second, making it susceptible to chaining.

12
New cards

Complete Linkage

A hierarchical clustering linkage criterion that defines the distance between two clusters as the maximum pairwise distance between any observation in the first cluster and any observation in the second, producing compact, evenly sized clusters.

13
New cards

Average Linkage

A hierarchical clustering linkage metric that calculates the average pairwise distance between all observations across two candidate clusters, balancing the tendencies of single and complete linkage.

14
New cards

Ward's Method

An agglomerative hierarchical clustering linkage method restricted to Euclidean geometry that merges the cluster pair minimizing the increase in total within-cluster sum of squared errors (SSE\text{SSE}).

15
New cards
<p>DBSCAN</p>

DBSCAN

Density-Based Spatial Clustering of Applications with Noise; a spatial clustering algorithm that identifies arbitrarily shaped clusters as contiguous high-density regions separated by low-density areas, explicitly isolating outliers as noise.

16
New cards

Core Point (DBSCAN)

A data point that possesses at least min_samplesmin\_samples observations (including itself) located within its specified epsilon (ε\varepsilon) neighborhood radius.

17
New cards

Border Point (DBSCAN)

A data point that resides within the epsilon (ε\varepsilon) radius of a core point but does not contain enough neighbor points itself to satisfy the min_samplesmin\_samples core threshold.

18
New cards

Noise Point (DBSCAN)

An outlier point in DBSCAN that qualifies neither as a core point nor as a border point, remaining unassigned to any cluster.

19
New cards

k-Distance Elbow Method

A diagnostic approach for selecting DBSCAN's ε\varepsilon parameter by plotting the distance of every point to its kk-th nearest neighbor in ascending order and locating the sharp acceleration point (knee/elbow).

20
New cards

K-Means Clustering

An unsupervised partitioning algorithm that divides nn observations into kk distinct, compact, roughly spherical clusters by minimizing the within-cluster squared Euclidean distance to learned centroids.

21
New cards

Within-Cluster Sum of Squares (WCSS / Inertia)

The primary objective function of K-means, defined as J=∑i=1n∥xi−μc(i)∥2J = \sum_{i=1}^{n} \|x_i - \mu_{c(i)}\|^2, measuring the aggregate squared Euclidean variance of observations to their assigned cluster centers.

22
New cards

Lloyd's Algorithm

The standard iterative procedure for K-means optimization, which alternates between an Assignment Step (assigning each point to its nearest centroid) and an Update Step (recalculating centroids as arithmetic means of assigned points) until convergence.

23
New cards

K-Means++ Initialization

An initialization seeding scheme that chooses initial centroids sequentially with a probability proportional to their squared distance from already chosen centroids, speeding convergence and preventing poor local minima.

24
New cards
<p>Elbow Method (K-Means)</p>

Elbow Method (K-Means)

A heuristic technique for choosing the optimal number of clusters kk by graphing total WCSS (inertia) against candidate values of kk and selecting the bend point where incremental variance gains plateau.

25
New cards

Silhouette Coefficient

An internal cluster validation score defined for point ii as si=bi−aimax⁡(ai,bi)s_i = \frac{b_i - a_i}{\max(a_i, b_i)}, comparing cohesion to instances in the same cluster (aia_i) against separation from the nearest neighboring cluster (bib_i), spanning from −1-1 to +1+1.

26
New cards

Calinski-Harabasz Index

An internal clustering diagnostic measuring the ratio of between-cluster dispersion to within-cluster dispersion, where higher values correspond to tighter, better-separated clusters.

27
New cards

Davies-Bouldin Index

An internal clustering evaluation metric that calculates the average similarity between each cluster and its most similar rival cluster, where lower scores indicate superior separation and compactness.

28
New cards

Principal Component Analysis (PCA)

An unsupervised linear dimensionality reduction method that rotates and projects high-dimensional data onto orthogonal, uncorrelated axes ordered sequentially by the amount of variance explained.

29
New cards

Loadings (PCA)

The coefficients or weights in the transformation matrix WkW_k that specify how each centered original feature linearly contributes to forming a specific principal component.

30
New cards

Cumulative Explained Variance

A PCA diagnostic metric defined as CumulativeEV(k)=∑j=1kλj∑j=1pλj\text{CumulativeEV}(k) = \frac{\sum_{j=1}^{k} \lambda_j}{\sum_{j=1}^{p} \lambda_j}, used to determine the smallest number of components kk that retains a targeted threshold of total data variance (typically 90%90\% to 95%95\%).

31
New cards

Association Rule Lift

A rule evaluation metric in market-basket analysis measuring how much more frequently two itemsets co-occur than expected if they were statistically independent, with values greater than 1.01.0 indicating positive association.

32
New cards

Isolation Forest

An unsupervised anomaly detection ensemble that isolates unusual observations by randomly selecting features and split values; outliers are identified by having substantially shorter average path lengths in the isolation trees.

33
New cards

Pipeline (Scikit-Learn)

An orchestration utility in Scikit-Learn that chains multiple sequential data preprocessing transformers alongside a final model estimator into a single unified object, preventing data leakage.

34
New cards

Preprocessing Data Leakage

An evaluation error where data transformations (such as feature scaling or encoding) are fit on the full dataset prior to train/test or cross-validation splitting, inadvertently leaking validation information into model training.

35
New cards

Double Underscore (__) Syntax

The Scikit-Learn naming convention that explicitly links a specific pipeline step name to its target parameter (e.g., 'svm__C') when configuring hyperparameter search spaces in GridSearchCV.

36
New cards
<p>K-Fold Cross-Validation</p>

K-Fold Cross-Validation

A resampling technique that partitions training data into KK roughly equal folds, training the model on K−1K-1 folds and evaluating it on the remaining fold across KK rotations to yield a reliable performance estimate.

37
New cards

Stratified K-Fold CV

A specialized cross-validation scheme for classification that ensures each fold contains approximately the same percentage distribution of each target class label as the entire dataset.

38
New cards

Group-Aware Cross-Validation

A cross-validation method (such as GroupKFold) that ensures all observations sharing a common group entity (such as patient or customer IDs) are restricted entirely to a single fold to avoid intra-entity data leakage.

39
New cards

Time-Series Cross-Validation

A temporal validation strategy (rolling or expanding window) that trains models strictly on past observations and evaluates them on future observations, often including a temporal gap to prevent look-ahead leakage.

40
New cards

Spatial / Spatiotemporal Blocked CV

A cross-validation scheme where folds are assigned by geographic or spatial contiguous blocks rather than randomly, neutralizing optimistic performance bias caused by spatial autocorrelation.

41
New cards
<p>Bias-Variance Tradeoff</p>

Bias-Variance Tradeoff

The trade-off across varying model complexity between underfitting error (high bias from an overly rigid model) and overfitting error (high variance from an overly sensitive model) when minimizing total generalization error.

42
New cards

Nested Cross-Validation

A model evaluation protocol utilizing an inner cross-validation loop strictly for hyperparameter selection and an outer loop to generate an unbiased estimate of generalization error without selection bias.

43
New cards

Artificial Neuron (Unit)

The primary building block of a neural network that computes a bias-adjusted weighted sum of its inputs and applies an activation function to generate an output activation.

44
New cards

Activation Function

A nonlinear mathematical operation (e.g., ReLU\text{ReLU}, sigmoid, tanh⁡\tanh) applied to the weighted sum of a neuron to allow neural networks to learn and approximate complex nonlinear mappings.

45
New cards

Softmax Function

A normalized exponential activation function deployed in multiclass neural network output layers that transforms raw logits into a probability distribution summing to 11.

46
New cards

Backpropagation

The training algorithm for neural networks that applies the calculus chain rule to calculate the partial derivatives of the loss function with respect to every weight and bias, guiding gradient descent updates.

47
New cards

Dropout

A deep learning regularization technique that randomly deactivates a predefined percentage of neuron activations during each training step to prevent co-adaptation and mitigate overfitting.

48
New cards

Early Stopping

A training regularization safeguard where model training is halted once the validation loss stops improving over a preset number of epochs, preventing the model from fitting training noise.

49
New cards

Weight Decay (L2L_2 Regularization)

A regularizer that penalizes large parameter values by adding the sum of squared model weights to the training loss function, promoting smoother decision surfaces.

50
New cards

Recurrent Neural Network (RNN)

A specialized neural network architecture designed for sequential and temporal data that processes inputs step-by-step while maintaining a hidden memory state across time steps.

51
New cards

Convolutional Neural Network (CNN)

A specialized neural network architecture tailored for image and spatial data that extracts translation-invariant visual patterns using parameter-sharing convolutional filters.

52
New cards

Transformer

An advanced neural network architecture that dispenses with recurrence by utilizing self-attention mechanisms to process sequence tokens in parallel, serving as the backbone for modern Large Language Models (LLMs).