Introduction to Machine Learning

by Albert Major


Part 1: Data Scaling and Transformation Review

The lecture began by reviewing why we scale data. Machine learning models often use distance-based optimization. If features have different units (e.g., age vs. salary), the feature with the larger range will dominate the model. Scaling standardizes these features.

Screenshot 2025-12-10 at 09.36.04.png

Data scaling transforms your features into a shared numerical range so that variables with large values do not unfairly dominate the model's learning.

Part 2: Generalization and Model Validation

The core goal of machine learning is generalization: learning patterns from training data to predict accurately on new, unseen data.

Screenshot 2025-12-10 at 10.31.05.png

This image contrasts two data splitting methods: "Subject Wise Splitting," which keeps all data from specific individuals (like subjects B and E) exclusively in the test set, versus "Random Splitting," which mixes samples from the same individuals across both training and testing. The visual demonstrates that subject-wise splitting is necessary to prevent data leakage, ensuring the model is evaluated on completely new subjects rather than recognizing parts of patients it already memorized during training.

This image contrasts two data splitting methods: "Subject Wise Splitting," which keeps all data from specific individuals (like subjects B and E) exclusively in the test set, versus "Random Splitting," which mixes samples from the same individuals across both training and testing. The visual demonstrates that subject-wise splitting is necessary to prevent data leakage, ensuring the model is evaluated on completely new subjects rather than recognizing parts of patients it already memorized during training.

This diagram outlines the complete machine learning lifecycle, progressing linearly from data ingestion and cleaning to model training, testing, and final deployment. It emphasizes the iterative nature of the process through specific feedback loops, where testing results refine the model building and real-world user feedback improves future data collection.

This diagram outlines the complete machine learning lifecycle, progressing linearly from data ingestion and cleaning to model training, testing, and final deployment. It emphasizes the iterative nature of the process through specific feedback loops, where testing results refine the model building and real-world user feedback improves future data collection.