COMP328 Fundamentals of Machine Learning

Unit 2 of 3 · Module 1

Data Fundamentals

Models are only as good as the data behind them. Unit 1 gave you the concepts; Unit 2 gives you the data. By the end of this unit you will be able to look at any dataset and answer three questions: what kind of data is this, what is it actually telling me, and what needs to change before a model can learn from it.

9 tutorials ~6 hours 1 unit quiz Feeds Assignment 1

Learning outcomes

By the end of this unit you will be able to

  • Classify a dataset as structured, unstructured, or semi-structured, and identify the implications of each type for modelling.
  • Distinguish features from labels in any dataset, and identify which columns would be appropriate inputs and which would be targets.
  • Diagnose common data quality problems — missing values, outliers, duplicates, inconsistent formats, and mislabelled examples — and explain the consequences of each.
  • Select an appropriate preprocessing strategy for a given data quality problem, and justify the choice.
  • Explain the difference between preprocessing (making data usable) and feature engineering (creating new information), and apply both appropriately.
  • Split a dataset into training, validation, and test partitions, and explain the role of each partition in the modelling process.
  • Recognise how data decisions made in this unit connect to the failure modes from T-07 — particularly data leakage and spurious correlation.

The shift from Unit 1

Unit 1 was entirely conceptual. You did not touch a dataset. Unit 2 is the first unit where you work through concrete examples with real structure. You will not yet be using Python — that begins in Unit 3 — but you will be reasoning about the kinds of decisions that every data practitioner has to make, using small examples you can work through on paper.

Prerequisite reminder

This unit assumes you have completed Unit 1, particularly T-05 (where features, labels, parameters, and loss are defined) and T-07 (where data leakage and spurious correlation are introduced). Both concepts return repeatedly here.

Tutorials

Nine tutorials, worked through in order. The first four establish the vocabulary (what kind of data exists, what features and labels are). The next four apply that vocabulary to the practical problems every dataset presents. The final tutorial reviews the unit.

How to work through this unit

Unit 1 was about ideas. Unit 2 is about the raw material. The habits that matter here are different again — closer to inspection than interpretation.

  1. Work through the examples by hand

    Unit 2 uses small datasets you can inspect on paper. Do not skip the manual exercises — the point is to build the habits of attention that real data work demands.

  2. Look at datasets you already have

    As you work through the unit, examine real datasets you have access to — a spreadsheet from work, a public dataset, even the CSV export of your bank statements. The concepts only become concrete when applied to real, messy data.

  3. Ask what each column actually means

    Half of data preparation is understanding what each field represents, when it was recorded, and who recorded it. This is exactly the discipline that catches data leakage before it causes problems.

  4. Finish with the unit quiz

    The quiz at the end of T-09 is short and diagnostic. Score it honestly before looking at the feedback.

Assessment in this unit

Unit 2 contributes one unit quiz to your final grade. The assignment that covers this unit's material is released in the next module, so the quiz is the primary assessment here.

  • Quiz 2 Data Fundamentals — 12 questions, counts toward your quiz grade Go to T-09

Assignment 1 is coming

Assignment 1: Data Exploration and Preparation will be released at the start of Module 2 and is due in week 4. It draws directly on the material in this unit — everything it asks you to do is a practical application of the concepts you will cover here. Treat the tutorial exercises in this unit as preparation for it.

Looking ahead

Unit 3 is the final unit of Module 1, and it is where you get your hands on the tools. Everything you have reasoned about in Units 1 and 2 becomes practical in Unit 3, where you will learn to use Python, Jupyter, Pandas, and Scikit-Learn to explore, clean, and prepare real datasets. The unit ends with your first complete end-to-end workflow — the same kind of workflow that Assignment 1 will ask you to perform.

πŸ‘€