MLP: Machine Learning Practice
Machine Learning Practice: week-wise syllabus, notes, short notes, and available revision material.
Machine Learning Practice
DiplomaWeek-wise detailed study guide
Machine Learning Practice (MLP) · 12 weeks
Week 1: Pandas – Series and DataFrames
Topics covered
Introduction to Pandas
- Purpose of Pandas library.
- Difference between NumPy arrays and Pandas objects.
- Handling tabular data.
Pandas Series
- Creating Series.
- Index and values.
- Index-based selection.
- Basic operations on Series.
DataFrames
- Creating DataFrame.
- Rows and columns.
- Column names and index.
- Inspecting the DataFrame.
Data selection
locandiloc.- Conditional filtering.
- Selecting multiple columns.
- Accessing rows and columns.
Data modification
- Dropping Columns.
- Filtering Rows.
- Initial inspection of missing values.
Statistical summaries
describe(),mean(),median(),std().- Unique values and value counts.
- Introduction of group-wise summary.
Expected skills:
- Creating Pandas Series and DataFrames.
- Filter, select and drop data.
- Extracting basic statistical summary of dataset.
- Inspecting data before ML.
Week 2: Data Loading and Preprocessing
Topics covered
Scikit-learn introduction
- Role of scikit-learn.
- Estimator, transformer and predictor.
fit(),transform()andpredict()methods.
Data loading
- Built-in datasets.
load_*,fetch_*andmake_*functions.- Dataset features and targets.
Missing-value handling
- Identifying missing values.
- Mean, median and most-frequent imputation.
SimpleImputer.- Basic idea of
KNNIMputer.
Categorical data
- Nominal and ordinal features.
- One-hot encoding.
- Ordinal encoding.
OneHotEncoderandOrdinalEncoder.
Numerical transformations
- Need for feature scaling.
- Standardization.
- Min-max scaling.
StandardScaler,MinMaxScaler.
Outlier handling
- Identifying outliers.
- Impact of outliers on model performance.
- Outlier-sensitive transformations.
Feature selection
- Filter-based feature selection.
- Wrapper-based feature selection.
- Correlation and role of statistical scores.
Dimensionality reduction
- Practical introduction of PCA.
- Explained variance.
- Reducing feature space.
Expected skills:
- Using basic APIs of Scikit-learn.
- Handling missing values and categorical features.
- Applying scaling and encoding.
- Implementing basic workflow of feature selection and PCA.
Week 3: Pipelines and Composite Transformers
Topics covered
Data transformation workflow
- Applying multiple preprocessing steps in sequence.
- Consistent transformations between training and testing data.
- Concept of data leakage.
Scikit-learn pipelines
Pipeline.- Transformer chaining.
- Pipeline through model training.
Composite transformations
ColumnTransformer.- Separate transformations on numerical and categorical columns.
- Combining multiple preprocessing branches.
Feature extraction and imputation
- Data extraction.
- To impute missing values.
- Visualizing feature distributions.
Feature selection and PCA
- Integrating feature selection into the pipeline.
- Using PCA as a preprocessing step.
Class imbalance
- Imbalanced classification datasets.
- Majority and minority classes.
- Introduction of oversampling and undersampling.
- Importance of evaluation metrics for imbalance.
Expected skills:
- Creating an end-to-end preprocessing pipeline.
- Using
ColumnTransformer. - To avoid data leakage, follow correct workflow.
- Understanding the practical effects of PCA, feature selection and class imbalance.
Week 4: Machine Learning Models – Overview and Fundamentals
Topics covered
Linear regression
- Regression problem and target variable.
- Linear model and coefficients.
- Prediction and residuals.
Model evaluation
- Training and testing data.
- Regression metrics: MAE, MSE, RMSE and R².
- Model performance comparison.
Polynomial regression
- Modeling non-linear relationships.
- Polynomial features.
- Underfitting and overfitting.
Regularization
- Controlling model complexity.
- Introduction of Ridge and Lasso.
- Effect of regularization strength.
Classification models
- Logistic regression.
- Naive Bayes.
- K-Nearest Neighbours.
- Support Vector Machines.
- Decision trees.
Ensemble learning
- Voting classifiers.
- Bagging.
- Random forests.
- Boosting: AdaBoost and gradient boosting.
Neural networks
- Multi-Layer Perceptron (MLP).
- Hidden layers and activation functions.
- Scikit-learn implementation of Neural networks.
Expected skills:
- Identifying use cases of regression and classification algorithms.
- Selecting basic evaluation metrics.
- Understanding the purpose of regularization and ensemble learning.
- To recognize the APIs of different Scikit-learn models.
Week 5: Regression – California Housing Dataset
Topics covered
Dataset exploration
- California Housing dataset.
- Features and target variables.
- Data distributions and correlations.
- Exploratory Data Analysis (EDA).
Baseline model
- Simple baseline prediction.
- Comparison of baseline and trained model.
Linear regression
LinearRegression.- Model fitting and prediction.
- Interpreting coefficients.
Gradient descent
- Iterative optimization.
SGDRegressor.- Learning rate and convergence.
KNN regression
- Prediction based on nearest neighbors.
- Distance metrics.
- Effect of Sankhya of Neighbors.
Tree-based regression
- Decision tree regressor.
- Bagging and random forest regressor.
- AdaBoost and gradient boosting regressor.
MLP regression
- Neural network-based regression.
- Hidden layers and model training.
- Performance comparison.
Expected skills:
- Implementing regression workflow on real-world datasets.
- Comparing baseline and advanced models.
- To train Linear, KNN, tree-based and MLP regressors.
- Evaluating the model based on regression metrics.
Week 6: Classification – Binary and Multiclass Models
Topics covered
Classification fundamentals
- Classification problem.
- Binary and multiclass classification.
- Features and class labels.
Perceptron
- Linear decision boundary.
- Binary classification.
- Multiclass perceptron.
Logistic regression
- Probability-based classification.
- Sigmoid function.
- Decision threshold.
Ridge classifier
- Regularized linear classification.
- Zero detector example.
Naive Bayes
- Bayes theorem.
- Conditional independence assumption.
- Basic use case of text classification.
Softmax regression
- Multiclass probability prediction.
- Softmax function.
- MNIST digit classification.
KNN classification
- Distance-based classification.
- Choice of k.
- Classification boundaries.
Support Vector Classifier
- Maximum-margin classification.
- Introduction of Kernel-based classification.
Decision trees and ensembles
- Decision tree classification.
- Random forest classifier.
- AdaBoost and gradient boosting classifiers.
MLP classifier
- Neural network-based classification.
- Hidden layers and output probabilities.
Expected skills:
- Implementing binary and multiclass classifiers.
- Applying different models on datasets like MNIST.
- Comparing linear, probabilistic, distance-based and tree-based classifiers.
- Understanding the effects of model choice.
Week 7: Classification Evaluation and Large-Scale Machine Learning
Topics covered
Large-scale machine learning
- Model training on large datasets.
- Batch-based learning.
- Concept of incremental learning.
- Use of
partial_fit().
Confusion matrix
- True Positive (TP).
- True Negative (TN).
- False Positive (FP).
- False Negative (FN).
Classification metrics
- Accuracy.
- Precision.
- Recall.
- F1-score.
Metric interpretation
- Trade-off of precision and recall.
- Limitations of accuracy in unbalanced data.
- Selecting metrics for different classification objectives.
Multiclass evaluation
- Multiclass confusion matrix.
- Concept of macro, micro and weighted averaging.
- Per-class performance.
Model comparison
- To compare the performance of different classifiers.
- Identifying error patterns.
- Deciding next steps based on evaluation results.
Expected skills:
- Calculating metrics from confusion matrix.
- Precision, recall and interpreting F1-score.
- Choosing suitable metrics for unbalanced datasets.
- Understanding the concept of incremental training on large datasets.
Week 8: Support Vector Machines and Model Optimization
Topics covered
Support Vector Machines
- Maximum-margin hyperplane.
- Support vectors.
- Margin and decision boundary.
Linear and nonlinear classification
- Linear SVM.
- Nonlinear decision boundaries.
- Concept of kernel trick.
SVM kernels
- Linear kernel.
- Polynomial kernel.
- RBF kernel.
- Effect of kernel parameters.
Model parameters
- Regularization parameter C.
- Kernel coefficient γ.
- Hyperparameter selection.
Model tuning
- Cross-validation.
- Grid search.
- Randomized search.
- Validation performance comparison.
Classification workflow
- Data preprocessing.
- Scaling before SVM.
- Training and evaluation.
Expected skills:
- Explaining the maximum-margin concept of SVM.
- Understanding the effects of different kernels.
- To train and tune SVM model.
- Selecting suitable hyperparameters through cross-validation.
Note: The practical placement of SVM and tuning may change depending on lecture playlists and course versions. This week is considered a revision-oriented topic grouping, not an official fixed week title.
Week 9: End-to-End Machine Learning Project
Topics covered
Problem understanding
- Converting business problem into ML task.
- Identifying regression, classification or clustering.
- Defining success metrics.
Data exploration
- Dataset overview.
- Feature distributions.
- Missing values and outliers.
- Feature relationships.
Data preparation
- Train-test split.
- Missing-value imputation.
- Encoding and scaling.
- Preprocessing pipelines.
Model selection
- Baseline model.
- Multiple candidate algorithms.
- Cross-validation.
Hyperparameter tuning
- Grid search and randomized search.
- Comparing model parameters.
- To inspect overfitting and underfitting.
Project workflow
- Introduction of Kaggle platform.
- Notebook-based workflow.
- Documenting the results.
- Preparing final model and predictions.
Expected skills:
- Following the workflow of end-to-end ML project.
- Implementing the process from data exploration to model selection.
- Using cross-validation and tuning.
- Systematically comparing model results.
Week 10: Recommender Systems
Topics covered
Introduction to recommender systems
- Recommendation problems.
- User-item interactions.
- Rating-based recommendation.
- Introduction to the MovieLens dataset.
Exploratory data analysis
- Analysis of users, items and ratings.
- Rating distributions.
- User-item interaction matrix.
Content-based filtering
- Item features.
- Similarity-based recommendations.
- Recommendations based on user preferences.
Collaborative filtering
- User-user collaborative filtering.
- Item-item collaborative filtering.
- Similarity measures.
Matrix factorization
- Sparse user-item matrix.
- Latent factors.
- Basic idea of Matrix decomposition.
Recommendation evaluation
- Predicted ratings and actual ratings.
- Recommendation quality.
- Introduction of cold-start problem.
Expected skills:
- Differentiating content-based and collaborative filtering.
- Understanding the logic of user-user and item-item recommendation.
- Exploring MovieLens data.
- Implementing basic recommendation workflow.
Week 11: Time-Series Analysis
Topics covered
Time-series data
- Time-indexed observations.
- Representing time-series data in Pandas.
- Date-time indexing.
Resampling
- Frequency conversion.
- Daily, weekly and monthly aggregation.
- Concept of upsampling and downsampling.
Time-series visualization
- Time plots.
- Trends and seasonal patterns.
- Moving averages.
Classical decomposition
- Trend component.
- Seasonal component.
- Residual component.
- Additive and multiplicative decomposition.
STL decomposition
- Seasonal and Trend decomposition using Loess.
- Separating seasonal patterns.
- Comparison with classical decomposition.
Stationarity
- Stationary and non-stationary series.
- Time-dependent changes of mean and variance.
- Impact of trend and seasonality on stationarity.
Making data stationary
- Differencing.
- Transformations.
- Decomposition-based understanding.
Expected skills:
- Manipulating time-series data with Pandas.
- Applying resampling and decomposition.
- Identifying trend, seasonality and residuals.
- Understanding the concept of stationarity and basic methods of making data stationary.
Week 12: Transfer Learning
Topics covered
Introduction to transfer learning
- Concept of transfer learning.
- Pretrained models.
- Feature extraction and fine-tuning.
Neural network recap
- Neural network architecture.
- Forward propagation.
- Overview of training and optimization.
Transfer learning workflow
- Loading pretrained model.
- Feature extraction.
- To replace the final classification layer.
- Adapting the model to the new dataset.
Fine-tuning
- To unfreeze selected layers.
- Role of learning rate.
- Feature reuse and retraining.
Practical implementation
- Image dataset preparation.
- Use of pretrained CNN.
- Training and validation.
- Performance comparison.
Transfer learning evaluation
- Training from scratch vs transfer learning.
- Data requirements.
- Computational cost and accuracy trade-offs.
Expected skills:
- Differentiating transfer learning and training from scratch.
- Performing feature extraction from pretrained model.
- Implementing basic fine-tuning workflow.
- Explaining the benefits and limitations of transfer learning.
Quick revision map
MLP topic distribution · 12-week study grouping
Weeks 1–3: Data handling and preprocessing
3 weeksPandas, Scikit-learn, missing values, encoding, scaling, PCA, pipelines
Weeks 4–6: Regression and classification models
3 weeksLinear and polynomial regression, regularization, logistic regression, Naive Bayes, KNN, SVM, trees, ensembles, MLP
Weeks 7–9: Evaluation and model optimization
3 weeksConfusion matrix, metrics, large-scale learning, tuning, end-to-end ML workflow
Week 10: Recommender systems
1 weekMovieLens, content-based filtering, collaborative filtering, matrix factorization
Weeks 11–12: Time series and transfer learning
2 weeksResampling, decomposition, stationarity, pretrained models, fine-tuning
Weeks 1–3: Pandas operations, imputation, encoders, scaling, PCA, pipelines and data leakage.
Weeks 4–6: Regression/classification algorithms, regularization, model parameters and Scikit-learn APIs.
Weeks 7–9: Confusion matrix, metrics, cross-validation, hyperparameter tuning and complete ML workflow.
Week 10: Similarity-based recommendation and collaborative filtering.
Week 11: Resampling, decomposition and stationarity.
Week 12: Feature extraction, fine-tuning and pretrained model workflows.
Important syllabus note: There are differences in the week-wise topics of IITM's official course page and lecture playlist. Therefore the guide is meant to be a detailed revision map, not an exact replacement of the week titles listed on each term's portal. The official page has 12 weeks listed, while the current grouping of the lecture playlist shows 11 labeled weeks.
IIT Madras official course pageMLP lecture playlist and week-wise topics