PES
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure PES site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to PES, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add PES to your Home Screen, open it there, then allow notifications.

My learning progress
  1. How to use AI
  2. Terminal commands
  3. Advanced AI
  4. Vibe coding
  5. AI certification Getting ready
  6. Keyboard
See details
All AI lessons
Stage 9

Train and evaluate a small model

Learning goal

Separate training from evaluation and explain the limits of a score.

Use scikit-learn to fit regression and classification models. Iris has four measurements: sepal length and width, and petal length and width. Split data before fitting. Learn from the training portion and evaluate on held-out examples. A high training score can coexist with poor results on new data; this is overfitting. Keep preprocessing fitted to training data too, so evaluation information does not leak into learning.

A closer look

The neighbor count k and tree depth are hyperparameters chosen outside fitting; coefficients can be learned parameters. Use a validation split or cross-validation to choose settings, then reserve the test set for the final estimate. Repeatedly tuning to test results makes that estimate optimistic. Report the split, baseline, score, and errors. One small Iris experiment is a first project, not proof that a model works for every population or task.

Explain it yourself

A model scores 100% on the data it learned from. What should you check next?

Compare with an explanation

Evaluate on appropriate unseen data and inspect errors and leakage. Training accuracy alone is not enough.

You mark this yourself. Nothing is graded here.

Mark this step as understood?

This cannot be undone yet, so mark it only when you really understand.

Marked as understood

You mark this yourself. Nothing is graded here.

Sources and further reading

Guidelines

AI

AI Certification

Study

Vibe Coding

Game

Practice

Tutors

Chat

Forum

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.