How Training Data Shapes AI Behavior
📖 Scenario: You are learning how AI systems learn from examples. Imagine you want to teach a simple AI to recognize fruits based on their color and size.
🎯 Goal: Build a simple data set of fruits, set a rule to decide if a fruit is 'likely an apple', and apply that rule to classify the fruits.
📋 What You'll Learn
Create a dictionary called
fruits with fruit names as keys and their attributes as values (color and size).Create a variable called
apple_color and set it to the string 'red'.Use a dictionary comprehension called
apple_likelihood to mark fruits as true if their color matches apple_color and size is 'medium'.Add a final statement to count how many fruits are likely apples and store it in
apple_count.💡 Why This Matters
🌍 Real World
Understanding how AI uses training data helps in designing fair and accurate AI systems in areas like image recognition and recommendation engines.
💼 Career
This knowledge is important for roles in AI development, data science, and machine learning engineering where data quality directly affects AI behavior.
Progress0 / 4 steps