← All challenges
Level · 10 challengesLive

Beginner

Ten gentle challenges — 5 machine learning, 5 AI — to get the core loop under your fingers.

  1. Challenge 1Train your first classifierBeginnerFit a k-nearest-neighbours model on the Iris flowers and score it on unseen data.~15 min · 1 blanks
  2. Challenge 2Split the dataBeginnerHold out a quarter of the data for testing using train_test_split.~15 min · 1 blanks
  3. Challenge 3Measure accuracyBeginnerScore predictions against the true labels with accuracy_score.~15 min · 1 blanks
  4. Challenge 4Predict a new flowerBeginnerUse a trained model to predict the class of a brand-new measurement.~15 min · 1 blanks
  5. Challenge 5Try a decision treeBeginnerSwap in a decision tree classifier on the Wine dataset and score it.~15 min · 1 blanks
  6. Challenge 6Say hello to AIBeginnerSend your first prompt to a real model with the chat() helper.~15 min · 1 blanks
  7. Challenge 7One-word answersBeginnerUse a system prompt to force a tight yes/no answer.~15 min · 1 blanks
  8. Challenge 8Translate a phraseBeginnerAsk the model to translate a phrase into Spanish.~15 min · 1 blanks
  9. Challenge 9Classify sentimentBeginnerConstrain the model to a fixed label set with a system prompt.~15 min · 1 blanks
  10. Challenge 10Summarize in one lineBeginnerUse a system prompt to constrain summary length.~15 min · 1 blanks