



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




COURSE YEAR II Year II Sem
STRUCTURE (L-T-P-C) 3 - 0 - 0 - 3
SUBJECT CODE CS2204ML
COVERAGE Units I to V (Full Syllabus)
Paradigms, Learning Methods, Pipeline Stages & Data Engineering
Unit Overview: This unit establishes the core foundations of Machine Learning, charting its evolution from rule-based AI systems to empirical data-driven models. It explores distinct learning paradigms (Rote, Induction, Reinforcement) and details the end-to-end engineering pipeline required to transform raw datasets into predictive models.
Machine Learning (ML) Field of study giving computers the capability to learn patterns from experience ( E ) regarding tasks ( T ) and performance metrics ( P ) without explicit programming.
Learning by Rote Direct memorization of past data and query results. Enables instantaneous lookup for identical inputs but fails completely on novel, unseen data instances.
Learning by Induction Extracting generalized rules or mathematical hypotheses from specific training observations to accurately predict outcomes for unseen future inputs.
Feature Engineering The domain-driven process of extracting, transforming, and selecting relevant input variables from raw data to optimize algorithm efficiency.
Evolution of ML: Shifted from hardcoded expert decision trees to statistical optimization where models self-adjust internal parameters via empirical observation. ML Paradigms: Supervised Learning: Model trained on labeled paired datasets (X, Y) to learn mapping function f(X) ā Y. Unsupervised Learning: Uncovers underlying patterns, structures, or groupings in unlabeled datasets X. Reinforcement Learning: Autonomous agent optimizes decision policies through environmental trial-and-error using scalar rewards and penalties. End-to-End Machine Learning Pipeline Stages:
ML evolves systems from rigid rule-based logic to adaptive inductive pattern recognition. The core paradigms are Supervised (labeled), Unsupervised (unlabeled), and Reinforcement (reward-driven).
UNIT-II: NEAREST NEIGHBOR-BASED MODELS Proximity Measures, Distance Metrics, Instance Classifiers & Regression
Unit Overview: Unit II focuses on distance-based and instance-based (lazy) learning models. It covers mathematical proximity and similarity measures across continuous and binary feature spaces, detailed operations of K-Nearest Neighbor (KNN) for classification and regression, and standard statistical performance evaluation techniques.
Euclidean Distance ( L_2 Norm) Straight-line distance between vectors u and v :
Manhattan Distance ( L_1 Norm) Grid-like distance along axis-parallel paths:
Minkowski Distance Generalized distance metric of order p :
Lazy Learning Postpones generalization processing until a specific unlabeled test query point is presented to the system.
Properties of Distance Metrics: A valid distance function must satisfy Non-negativity [ d(a,b) ā„ 0 ], Identity [ d(a,b)=0 ā a=b ], Symmetry [ d(a,b)=d(b,a) ], and Triangle Inequality [ d(a,c) ⤠d(a,b)+d(b,c) ]. Binary Proximity Measures: For binary attributes, similarity is computed via matching coefficients: Jaccard Coefficient: J = q / (q + r + s) (ignores mutual absence t ). Simple Matching Coefficient (SMC): SMC = (q + t) / (q + r + s + t). KNN Classification & Radius Distance Algorithms: K-NN Classifier: Finds k nearest training instances to query point x_0 and performs majority voting. Radius Distance NN: Selects all neighbors within a fixed hypersphere of radius R around x_0 , resolving spatial density variations. KNN Regression: Computes mean or distance-weighted average output of the k nearest points: y_0 = (ā w_i y_i) / ā w_i where w_i = 1 / d(x_0, x_i). Performance Evaluation of Classifiers & Regression:
Task Type Evaluation Metrics Key Formulations / Concepts
Classification Accuracy, Precision, Recall, F1-Score, ROC-AUC Precision = TP / (TP + FP) Recall = TP / (TP + FN)
Regression Mean Absolute Error (MAE), Mean Squared Error (MSE), R-Squared MSE = (1/n) ā (y_i - Å·_i)^2 R^2 measures variance explained.
KNN is a non-parametric lazy learner relying on distance metrics ( L_1, L_2 , Jaccard). Small values of K lead to low bias/high variance (overfitting); large K values oversmooth boundaries. Classification uses majority voting; Regression uses target value averaging (often distance-weighted).
UNIT-IV: LINEAR DISCRIMINANTS & NEURAL NETWORKS Perceptrons, Support Vector Machines, Kernels, Logistic Regression & Backpropagation
Unit Overview: Unit IV introduces linear boundary classifiers, optimization theory, and neural network foundations. It progresses from basic Perceptrons and Logistic/Linear Regression to maximal-margin Support Vector Machines (SVM), non-linear Kernel functions, and Multi-Layer Perceptrons trained via Backpropagation.
Linear Discriminant Decision boundary hyperplane in feature space defined by linear equation: g(x) = wTx + b = 0.
Perceptron Rule Iterative weight update rule for misclassified instances: w ā w + Ī· (y - Å·) x.
SVM Margin Maximization Optimizes geometric margin 2/||w|| subject to constraint y_i(wTx_i + b) ā„ 1.
Logistic Sigmoid Function Maps real numbers to valid probability range (0, 1) : Ļ(z) = 1 / (1 + e-z).
Perceptron Classifier & Learning Algorithm: Single-layer threshold element. Converges if and only if data is strictly linearly separable (fails on non-linear boundaries like XOR). Support Vector Machines (SVM) & Kernel Trick: Linearly Separable Case: Finds unique maximum-margin separating hyperplane. Points on margin boundaries are Support Vectors. Non-linear SVM & Kernel Trick: Maps input features into higher-dimensional space Φ(x) where data becomes separable. Computes inner products directly using kernels: K(x_i, x_j) = ⨠Φ(x_i), Φ(x_j) ⩠(e.g., RBF Kernel, Polynomial Kernel).
Logistic & Linear Regression Models: Linear Regression: Fits continuous outputs by minimizing Sum of Squared Errors (SSE) via normal equations or Gradient Descent. Logistic Regression: Uses Sigmoid transformation for binary probabilities; optimizes Cross-Entropy Loss. Multi-Layer Perceptrons (MLPs) & Backpropagation: MLP Architecture: Input layer, hidden layers with non-linear activations (ReLU, Sigmoid), and output layer. Backpropagation Algorithm: Uses calculus chain rule to calculate gradient of loss function with respect to every weight in network, propagating error backwards to update parameters via gradient descent: w{ij} ā w_{ij} - Ī· (āE / āw_{ij})_.
Linear discriminants separate classes using hyperplanes; Perceptrons update weights on errors. SVM maximizes margins and uses kernel functions (RBF, Poly) for non-linear feature mapping. MLPs utilize hidden layers and Backpropagation (chain rule gradient descent) to learn complex mappings.
UNIT-V: CLUSTERING ALGORITHMS Partitional, Hierarchical, Matrix Factorization, Soft/Fuzzy, EM & Spectral Clustering
Unit Overview: Unit V addresses Unsupervised Clustering algorithms designed to discover hidden grouping structures in unlabeled datasets. It ranges from fundamental partitioning (K-Means) and hierarchical agglomeration to advanced soft partitioning (Fuzzy C-Means, Rough Sets), Expectation-Maximization (EM), and Spectral Graph Clustering.
K-Means Objective Minimizes within-cluster sum of squares (WCSS):
k
Fuzzy Membership ( u{ij}_ ) Degree of belonging of point i to cluster j :
Agglomerative Linkage Distance between clusters: Single (min), Complete (max), or Average pairwise point distance.
Spectral Graph Laplacian Constructs affinity matrix W and computes Graph Laplacian L = D - W for spectral projection.
Partitional & Hierarchical Clustering: K-Means Algorithm: 1. Initialize k centroids randomly. 2. Assign each point to nearest centroid. 3. Recompute centroids as cluster mean. 4. Iterate until convergence. (Sensitive to outliers and initial centroids). Hierarchical Clustering: Agglomerative: Bottom-up approach; starts with singletons and merges closest pairs. Visualized via Dendrograms. Divisive: Top-down approach; recursively splits root cluster. Matrix Factorization & Soft Partitioning: Matrix Factorization: Decomposes data matrix X ā WH (e.g., NMF) to uncover latent cluster representations. Fuzzy C-Means (FCM): Soft clustering where points hold continuous membership degrees u{ij}_ across clusters. Uses fuzzifier exponent m. Rough K-Means Clustering: Incorporates Rough Set theory using Lower Approximation (definitely in cluster) and Upper Approximation (possibly in cluster) to capture boundary ambiguity. Advanced Clustering Frameworks: Expectation-Maximization (EM): Probabilistic framework for Gaussian Mixture Models (GMMs). Alternates between E- step (calculating expectation of hidden cluster assignments) and M-step (updating distribution parameters μ, Ī£, Ļ ). Spectral Clustering: Uses similarity graph spectrum to reduce dimensions before applying K-Means; excels on non- convex geometric shapes.
K-Means iteratively partitions data by updating centroids; Hierarchical clustering builds tree dendrograms. Fuzzy C-Means and Rough Sets allow continuous or bounded membership to handle ambiguous boundaries. EM fits probabilistic mixture models, while Spectral Clustering clusters along graph manifolds.