FromZero2AI
CoursesPlaygroundBlog
Support on Ko-fi
AI Fundamentals: From Zero to Your First Model • Module A: What Is AI?Lesson 3: Data — The Fuel of AI
PreviousNext

Lesson 3: Data — The Fuel of AI

Explain why data quality matters more than algorithm choice; define features and labels.

Built with AI for beginners. Free forever.

Support on Ko-fi•About•Blog•Privacy Policy•Terms of Service

In the world of AI, there is a golden rule: "Garbage in, garbage out."

Recommended Watch

Lesson 3 Explainer: Data — The Fuel of AI

A 1-minute overview of inputs (features) vs outputs (labels) in machine learning datasets, and why data quality rules AI.

From Zero 2 AI1:00

You can have the most advanced, sophisticated algorithms in the world, but if the data you feed them is flawed, incomplete, or biased, your AI will produce bad results. Data is the fuel that powers the engine of AI.

Types of Data

Data comes in many forms, and AI can learn from all of them:

  • Structured Data: Highly organized, like spreadsheets or databases. (e.g., a list of house prices and square footage).
  • Unstructured Data: Messy and complex. (e.g., images, text documents, audio recordings, or videos).
  • Semi-structured Data: A mix of both, like JSON or XML files.

Key Vocabulary

Before we start building models, we need to speak the language of data scientists:

  • Dataset: A collection of examples. (The entire spreadsheet).
  • Sample / Instance: One specific example in the dataset. (One row in the spreadsheet).
  • Feature: A measurable property we use as input. (The columns: e.g., bedrooms, sqft, location).
  • Label / Target: The answer we want the AI to predict. (The output column: e.g., the final house price).

Exercise: Identify Features and Labels

Imagine we are building an AI to predict whether a pet will be adopted quickly.

Dataset Type: Structured Table
Database Spreadsheet6 Samples (Rows) × 4 Columns
Hover over any column or cell to inspect its ML Role (Feature vs Label).
#
Animal TypeX₁
Age (Months)X₂
Health StatusX₃
Days to Adopty
1Dog3Healthy4
2Cat24Needs Meds21
3Dog84Healthy15
4Cat6Healthy6
5Dog12Needs Meds14
6Cat48Healthy18
Features: Input Data (X) Label: Target to Predict (y)
ML Engine Console
Status: Untrained
Waiting for training data
Inference Locked

Train the ML Engine on the dataset to enable real-time predictions.

Inference Simulator
y_pred = f(X)
Age in Months (X₂)3 mo

Data Bias

If your training data is biased, your AI will be biased. If we train an AI to screen resumes using data from a company that historically only hired men, the AI will "learn" that being male is a desirable feature. Understanding our data isn't just a technical necessity—it's an ethical obligation. We'll explore this more in the next lesson.