Machine Learning
Shared by a Flashcards.gg user · generated with AI · Report this set
Core concepts, definitions, and formulas of machine learning for students and professionals.
Tap the card to flip it
Cards · 52
- Supervised Learning
- Training models using labeled datasets where both input features and ground-truth targets are provided, used for classification and regression tasks like spam filtering.
- Unsupervised Learning
- Finding hidden patterns or intrinsic structures within input data without pre-existing labels, applied in customer segmentation and dimensionality reduction.
- Reinforcement Learning
- Training an agent to make a sequence of decisions by interacting with an environment to maximize cumulative reward, used in game AI and robotics.
- Classification
- A supervised learning task predicting discrete class labels from input features, such as diagnosing medical images as malignant or benign.
- Regression
- A supervised learning task predicting continuous numerical outcomes, such as estimating house prices or stock trends.
- Clustering
- Grouping unlabelled observations such that items in the same group are more similar to each other than to those in other groups, as in K-Means.
- Features
- Individual measurable properties or characteristics of an observed phenomenon used as model inputs.
- Labels
- The ground-truth output or target variable that a supervised model is trained to predict.
- Training Set
- The subset of dataset used directly by the algorithm to adjust internal weights and learn model parameters.
- Validation Set
- A separate data partition used to evaluate model performance, tune hyperparameters, and detect overfitting during development.
- Test Set
- An unseen portion of data reserved solely for evaluating the final model's generalization capabilities.
- Overfitting
- A condition where a model memorizes noise and specific patterns of training data, failing to generalize to new, unseen data.
- Underfitting
- A condition where a model is too simplistic to capture the underlying structure of the data, performing poorly on both train and test sets.
- Bias-Variance Tradeoff
- The tension between error from erroneous assumptions (bias) and error from sensitivity to fluctuations in the training set (variance).
- Loss Function
- A mathematical formula measuring the difference between a single prediction and the true label, guiding parameter optimization.
- Mean Squared Error (MSE)
- Loss formula: MSE = (1/n) * sum((y - y_hat)^2). Quantifies average squared error, heavily penalizing large outliers in regression.
- Mean Absolute Error (MAE)
- Loss formula: MAE = (1/n) * sum(|y - y_hat|). Represents average absolute differences, robust to regression outliers.
- Binary Cross-Entropy Loss
- Loss formula: -sum(y * log(p) + (1 - y) * log(1 - p)). Standard cost function for binary classification models.
- Gradient Descent
- An iterative optimization algorithm updating parameters theta using theta = theta - alpha * grad(J(theta)) to find minimum loss.
- Learning Rate
- A hyperparameter denoted by alpha determining the step size taken along the negative gradient during optimization.
- Stochastic Gradient Descent (SGD)
- A variant of gradient descent calculating gradients and updating parameters using a single random sample per iteration for faster convergence.
- Linear Regression
- Models a continuous target using the linear equation y = w^T * x + b. Used for demand forecasting and trend analysis.
- Logistic Regression
- Estimates binary probability via the sigmoid function: p = 1 / (1 + e^(-z)). Applied in credit default prediction.
- Sigmoid Activation Function
- Function formula: S(z) = 1 / (1 + e^(-z)). Compresses any real number into the range [0, 1] for probability estimates.
- Decision Tree
- A non-parametric model splitting data sequentially based on feature conditions to maximize information gain or minimize impurity.
- Entropy (Information Theory)
- Formula: H(S) = -sum(p_i * log2(p_i)). Quantifies impurity or disorder in a set of samples.
- Gini Impurity
- Formula: I_G = 1 - sum(p_i^2). Measures probability of misclassifying a randomly chosen element, used by CART trees.
- Random Forest
- An ensemble method constructing multiple decision trees using bootstrap aggregating (bagging) and random feature selection.
- Bagging (Bootstrap Aggregating)
- Training multiple instances of a model on randomly sampled subsets with replacement and averaging predictions to reduce variance.
- Boosting
- Sequentially training models where each successive learner corrects residual errors made by previous models to reduce bias.
- Support Vector Machine (SVM)
- Finds an optimal hyperplane maximizing the geometric margin between distinct classes in feature space.
- Kernel Trick
- Implicitly maps non-linearly separable inputs into higher-dimensional spaces using inner products without explicit coordinate transforms.
- K-Nearest Neighbors (KNN)
- An instance-based algorithm predicting the label of a point using majority vote or average of its k closest neighbors.
- Naive Bayes
- A probabilistic classifier applying Bayes' Theorem with the assumption that all features are mutually independent given the class.
- Bayes' Theorem
- Formula: P(A|B) = [P(B|A) * P(A)] / P(B). Calculates posterior probability based on prior knowledge and likelihood.
- K-Means Clustering
- Iteratively partitions data into k clusters by assigning points to the nearest centroid and recomputing centroids until convergence.
- Principal Component Analysis (PCA)
- An unsupervised linear technique projecting data onto orthogonal axes maximizing variance to reduce dimensionality.
- Confusion Matrix
- A table layout visualizing performance: counts of True Positives, False Positives, True Negatives, and False Negatives.
- Accuracy
- Formula: (TP + TN) / (TP + TN + FP + FN). Overall ratio of correct predictions to total cases; misleading with imbalanced classes.
- Precision
- Formula: TP / (TP + FP). Measures the accuracy of positive predictions, critical when false positives are costly.
- Recall (Sensitivity)
- Formula: TP / (TP + FN). Measures ability to identify all positive instances, critical in medical diagnostics and fraud detection.
- F1-Score
- Formula: 2 * (Precision * Recall) / (Precision + Recall). The harmonic mean of precision and recall.
- ROC-AUC
- Evaluates classifier discrimination across all thresholds by measuring Area Under the Receiver Operating Characteristic curve.
- L1 Regularization (Lasso)
- Adds penalty term lambda * sum(|w|) to the loss, driving non-essential coefficients to zero for sparse feature selection.
- L2 Regularization (Ridge)
- Adds penalty term lambda * sum(w^2) to the loss, shrinking weights towards zero to prevent extreme feature reliance.
- K-Fold Cross-Validation
- Splits data into k equal folds, training on k-1 and validating on the remaining fold across k iterations for robust evaluation.
- Hyperparameter
- A configuration variable external to the model whose value is set before training, such as tree depth or learning rate.
- Feature Scaling
- Normalizing or standardizing numerical features to equivalent scales so gradient-based and distance-based models treat them equally.
- Standardization (Z-score)
- Formula: z = (x - mu) / sigma. Centers data to a mean of zero and scales to unit standard deviation.
- Min-Max Normalization
- Formula: x_norm = (x - min) / (max - min). Rescales values into a fixed bound, usually [0, 1].
- One-Hot Encoding
- Converts categorical variables into binary vectors containing a single 1 and zeroes elsewhere to eliminate false ordinal hierarchy.
- Data Leakage
- Occurs when information from outside the training dataset inadvertently influences model training, inflating evaluation performance.