IIT Madras Zanzibar · Teaching

← All Courses

Z3003 · BS Core · Odd Semester 2026-27

Data Mining: Scaling to Large Data

Methods for scaling machine learning and pattern discovery to large datasets, co-taught with Dr. Mahendran V (IIT Tirupati): Weeks 1–6 core foundations and Part 1 modules (KDD, similarity, PCA, OLAP, Apriori/FP-Growth, Bayesian/tree classification, ensembles, and scalable clustering) under Dr. Innocent Nyalala, followed by Weeks 7–15 advanced topics under Dr. Mahendran V.

Term & Instructors
Odd Semester 2026-27 (Sep 2026 – Jan 2027) · Dr. Innocent Nyalala (Weeks 1–6 / Part 1) & Dr. Mahendran V (Weeks 7–15 / Part 2)
Schedule & Primary Text
3 Lectures + 1 Tutorial weekly · Mining of Massive Datasets (MMDS) ↗ · Han, Pei & Tong
Prerequisites
Python, NumPy, pandas, scikit-learn, probability, and SQL. PySpark is introduced from scratch.
Course Links
Question Bank · Lab Explorer & Part 2 Previews · Formula Cheat Sheet (PDF) · Weeks 1–6 Mock Quiz & Solutions (PDF) · Mini-Project Starter (.ipynb) · Self-Test Suite (.py) · Mini-Project Brief (PDF) · Mini-Project Rubric (PDF) · PySpark Lab 1 · Faculty Course Page ↗

Full Course Syllabus (BS Core · Co-Taught)

Topic AreaKey ConceptsWeeksLead
ML Basics & Data Exploration KDD process; Bayesian Decision Theory; Maximum Likelihood Estimation (MLE); Feature Selection (Information Gain); PCA & LDA; Data Quality, Cleaning & Warehousing 1–2 Dr. Nyalala
Class Imbalance, Trees & Ensembles Differential loss functions; Sampling & SMOTE; Decision Trees & Pruning; Naive Bayes; Bagging, Random Forests, AdaBoost & Gradient Boosting 3 Dr. Nyalala
Scaling Up (OLAP, MapReduce, LSH) Data Cubes & Star Schemas; MapReduce model; PySpark RDDs; Locality-Sensitive Hashing (MinHash); PageRank on large graphs 4–5 Dr. Nyalala
Frequent Patterns & Stream Mining Apriori Algorithm; FP-Growth, PCY & SON; Null-invariant measures; Stream data model; Bloom Filters; Counting in streams 6 Dr. Nyalala
Clustering (Part 1 Bridge & Advanced) k-Means, Hierarchical clustering, DBSCAN, BIRCH, CURE, Non-Euclidean spaces, Spectral clustering 7–9 Dr. Mahendran V
Advanced Stream Mining Sliding windows; DGIM; Reservoir sampling; Approximate counting at scale 10–11 Dr. Mahendran V
Advanced Topics Recommender systems; Matrix factorization; Dimensionality reduction; Graph mining 12–15 Dr. Mahendran V

Classroom Lecture Slides & LaTeX Summaries (Dr. Nyalala · Part 1)

Verified Google Classroom slide decks (Weeks 1–9) paired with compiled LaTeX Lecture Summaries (PDF) and Zanzibar agricultural teaching datasets (Data Dictionary · 500-Farm Sample CSV).

WeekModule & DatesLecture Slides, LaTeX Summaries & Handouts
Week 1 KDD Process, Data Types & Summary Statistics
Sep 16–18 · Han Ch. 1–2; MMDS Ch. 1
Week 2 Correlation, Distance Measures & Data Quality
Sep 23–25 · Han Ch. 2–3
Week 3 Normalization, Discretization, Sampling, PCA & Warehousing
Sep 30–Oct 2 · Han Ch. 3–4; ESL Ch. 3
Week 4 Data Cubes, Star Schemas, OLAP & Iceberg Cubes
Oct 7–9 · Han Ch. 4–5
Week 5 Frequent Pattern Mining: Apriori, FP-Growth & Evaluation
Oct 14–16 · Han Ch. 6; MMDS Ch. 6
Week 6 Classification: Decision Trees, Naive Bayes & Pruning
Oct 28–Nov 3 · Han Ch. 8; Bishop PRML
Week 7 Imbalanced Evaluation, Cross-Validation & Ensembles
Nov 4–5 · ESL Ch. 10 · Transition Module
Week 8 Clustering: k-Means & Hierarchical Methods
Nov 9–10 · MMDS Ch. 7
Week 9 Clustering at Scale, Pipeline Synthesis & Part 2 Handover
Nov 11–13 · Mini-Batch k-Means, BIRCH, DBSCAN
Weeks 10–15 Part 2 Advanced Topics (Dr. Mahendran V · IIT Tirupati)
Recommender Systems (SVD), PageRank & HITS, Streaming Sketches (FM, AMS, DGIM)

Python Reference Modules & Runnable Colab Notebooks

Each module pairs an assertion-tested Python script (code/) with an interactive Google Colab notebook (labs/), alongside the Lab Explorer & Part 2 Code Previews and the PySpark Lab 1 HTML Walkthrough.

ModuleCore TechniquesCode & Notebooks
Module 1Bayesian Classification, Bernoulli/Gaussian MLE & Naive BayesPython (.py) Notebook (.ipynb) Colab ↗
Module 2Information Gain Feature Selection, PCA & Fisher LDAPython (.py) Notebook (.ipynb) Colab ↗
Module 3Class Imbalance, SMOTE Interpolation & Ensembles (RF, AdaBoost, GBDT)Python (.py) Notebook (.ipynb) Colab ↗
Module 4MapReduce Foundations & PySpark RDD Log/OLAP Pipelines (HTML Lab 1)Python (.py) Notebook (.ipynb) Colab ↗
Module 5k-Shingling, Jaccard, MinHash Signatures & LSH BandingPython (.py) Notebook (.ipynb) Colab ↗
Module 6Apriori Frequent Patterns, Kulczynski/IR & Bloom FiltersPython (.py) Notebook (.ipynb) Colab ↗

Weekly Tutorials (T1–T6)

Submit one Python file per week named dm[TT]t[RR].py, where TT is the tutorial number (01–06) and RR is the last two digits of your roll number (for example, dm01t23.py).

TutorialTopicLibrariesHandout / Starter
Tutorial 1Simulating Random Variablesnumpy · scipy.statsHandout PDF · Notebook
Tutorial 2Feature Selection & PCAsklearn · numpy · matplotlibHandout PDF · Notebook
Tutorial 3Ensemble Methodssklearn · AdaBoost · RandomForestHandout PDF · Notebook
Tutorial 4MapReduce with PySparkpyspark · RDD · transformationsHandout PDF · Notebook
Tutorial 5MinHash & LSHdatasketch · numpy · setsOnline specification
Tutorial 6Apriori & Bloom Filtersmlxtend · bitarray · numpyOnline specification

Learning Outcomes

  1. Apply Bayesian Decision Theory and Maximum Likelihood Estimation to classification problems under uncertainty.
  2. Select informative features using Information Gain and reduce dimensionality using PCA and LDA without data leakage.
  3. Handle class imbalance using sampling and threshold tuning, and build ensemble classifiers (AdaBoost, Gradient Boosting, Random Forest).
  4. Explain the MapReduce model and write PySpark pipelines using RDD transformations and actions on real datasets.
  5. Apply Locality-Sensitive Hashing to find approximate nearest neighbors in large collections, and compute PageRank using power iteration.
  6. Implement the Apriori algorithm for frequent itemset mining and use Bloom Filters for approximate membership testing in data streams.

Course Resources & Mini-Project

Assessment

ComponentWeightDetails
Weekly Tutorials (6)30%One .py submission per week. Auto-graded and manually reviewed. Naming: dm[TT]t[RR].py.
Quiz 115%After Part 1 foundations. Covers data preparation, pattern mining, classification, and validation.
Quiz 215%During Part 2 under Dr. Mahendran V. Covers clustering at scale, LSH, PageRank, and streams.
Mini-Project20%Apply Weeks 1–6 techniques to an approved public dataset in groups of 2–3. Reproducible notebook + 1-page summary.
End-Semester Exam20%Covers the full 15-week syllabus jointly set by both instructors.

Software Stack: numpy · pandas · scipy · scikit-learn · matplotlib · pyspark · mlxtend · datasketch · jupyter.