Machine Learning
Machine Learning is the heart of GATE DA. These lessons explain every supervised and unsupervised method in the syllabus from first principles, and implement each one in a few lines of plain Python (no libraries), so you can see exactly how regression weights, tree splits, cluster assignments and principal components are computed.
1Foundations
2Supervised Learning
- Linear Regression and Ridge RegressionSimple and multiple linear regression, least squares and the normal equations, R², gradient descent, and ridge regression (L2 regularization) with worked examples for GATE DA.
- Logistic RegressionLogistic regression for binary classification, the sigmoid function, the decision boundary, log loss (cross-entropy), gradient descent, odds and log-odds, and softmax, with GATE DA practice questions.
- k-Nearest Neighbours and Naive BayesThe k-NN classifier with Euclidean and Manhattan distance, choosing k, feature scaling, and the naive Bayes classifier with Laplace smoothing and Gaussian naive Bayes, with worked GATE DA examples.
- Linear Discriminant Analysis and Support Vector MachinesLinear discriminant analysis (LDA) and Fisher's discriminant, the effect of class priors, support vector machines, margins and support vectors, hard and soft margins, hinge loss and the kernel trick, for GATE DA.
- Decision TreesHow decision trees classify, entropy and information gain, the Gini index, building a tree with ID3, regression trees, overfitting and pruning, with worked GATE DA examples.
- Neural NetworksThe perceptron and its learning rule, why XOR needs a hidden layer, multi-layer perceptrons and feed-forward networks, activation functions, counting parameters, the forward pass and backpropagation, for GATE DA.
3Model Selection
4Unsupervised Learning
- Clustering - k-Means, k-Medoids and Hierarchical ClusteringThe k-means algorithm and its objective, initialization and choosing k, k-medoids, and agglomerative hierarchical clustering with single, complete and average linkage and dendrograms, with worked GATE DA examples.
- Dimensionality Reduction and PCAWhy reduce dimensions, principal component analysis step by step, the covariance matrix, eigenvalues and explained variance, PCA through the SVD, and PCA versus LDA, with worked GATE DA examples.