All challenges
Free

Iris Flower Classifier

AI / Machine Learning · Beginner · 55 points

Build a simple machine-learning model that predicts the species of an iris flower from its measurements.

What you'll build

Understand the basic machine-learning workflow from data preparation to prediction.

Your checklist

  • Load the Iris dataset.
  • Separate features and target labels.
  • Split the dataset into training and testing data.
  • Train a classification model.
  • Make predictions on test data.
  • Calculate the model's accuracy.
  • Display the confusion matrix.
  • Test the model using at least one new example.
  • Explain the result.

Skills you'll practise

Python, scikit-learn, classification, train-test splitting, evaluation, and basic machine learning.