Skip to content
KCL TechAcademy
HomeCoursesSign in
Menu
HomeCoursesSign in
  1. Courses
  2. /AI with Python
  3. /Week 1

Week 1: Build your first AI Model

In this first session, we will introduce you to machine learning using Python and Google Colab. You will explore a real dataset of penguin measurements and use it to train your first AI model.

You will learn how a model uses data to make predictions, test how well it performs, and explore where its predictions succeed or struggle. By the end, you will have a working notebook that predicts penguin species from their measurements. No prior AI experience is required!

Content Covered

  • Getting Started with Google Colab: Opening a notebook and running Python code in the browser.
  • Exploring Real Data: Using pandas to inspect the Palmer Penguins dataset and its measurements.
  • Features and Targets: Identifying the measurements used as inputs and the penguin species used as the prediction target.
  • Preparing for Training: Splitting the data into training and test sets.
  • Training a Model: Using scikit-learn to train a decision tree classifier.
  • Making Predictions: Using the trained model to predict penguin species.
  • Evaluating Performance: Measuring accuracy on test data and exploring where predictions succeed or struggle.
  • Comparing Results: Changing the random seed and observing how the results can vary.
  • Practical Build: A working notebook that predicts penguin species from their measurements.

Your next step

Take your time with the material. Mark it complete when you’re ready.

Sign in to track progress

Related to this lesson

Back to course →
KCL Tech AcademyLearn. Build. Share what you know.