🤖

Machine Learning Basics

Aug 28, 2025

Overview

This lecture introduces the basics of machine learning, including key concepts, types of learning, simple examples, and real-world applications.

What is Machine Learning?

  • Machine learning enables machines to learn from past data and make decisions like humans, but faster.
  • It involves learning, understanding, and reasoning about data, not just following instructions.

Example: Song Preference Classification

  • A person's song preference is mapped using features like tempo (x-axis) and intensity (y-axis).
  • By analyzing past choices, we can predict if a new song will be liked or disliked.
  • The k-nearest neighbors (k-NN) algorithm classifies new data points by majority vote of closest known points.

Types of Machine Learning

  • Supervised learning uses labeled data (features and correct outputs) to train models.
    • Example: Predicting coin currency using weight as a feature and currency as a label.
  • Unsupervised learning finds patterns in unlabeled data.
    • Example: Clustering cricket players as batsmen or bowlers based on runs and wickets.
  • Reinforcement learning is based on feedback (rewards or penalties) to improve predictions.
    • Example: Correcting computer mistakes when identifying images.

Machine Learning Process

  • Input data is given to a machine learning model, which makes a prediction.
  • If the prediction is correct, it is accepted; if not, feedback is given for model improvement.

Real-World Applications

  • Healthcare diagnostics, social media sentiment analysis, and fraud detection use machine learning.
  • E-commerce sites use machine learning for customer churn prediction.
  • Ride-sharing apps apply predictive modeling and surge pricing based on demand.

Key Terms & Definitions

  • Machine Learning — Computer systems learning from data to make predictions or decisions.
  • Feature — An attribute or variable used in the model (e.g., tempo, intensity, weight).
  • Label — The target output or answer linked with input data.
  • Supervised Learning — Machine learning with labeled data.
  • Unsupervised Learning — Machine learning with unlabeled data.
  • Reinforcement Learning — Feedback-based learning where actions are reinforced by rewards or penalties.
  • k-Nearest Neighbors (k-NN) — An algorithm that classifies data based on the majority vote of its k nearest neighbors.

Action Items / Next Steps

  • Complete the quiz: Classify whether scenarios use supervised or unsupervised learning.
  • Observe and note everyday examples of machine learning in your surroundings.