Which are the best AI and programming classes in Kirkcaldy?
The Kirkcaldy and Dysart locality counted 50,370 people in the mid-2020 estimates from National Records of Scotland, second in Fife only to Dunfermline. Templehall, Sinclairtown, Pathhead, Gallatown, Linktown and Dunnikier are listed suburbs in the KY1 and KY2 districts. Anyone aged six to 67 can learn AI, programming, Python, vibe coding and maths live over video with a tutor working from India, individually or in a small class of five to ten at one level. Reasoning comes before tools in every course, so learners can see when a model has fooled itself. We teach the first lesson free and end it with a course recommendation. The Kirkcaldy project trains a gradient boosting model on 2,788 labelled building outlines and watches its real skill rise, peak and slip while its headline accuracy keeps climbing. Regular tuition costs USD 100 a month in a group or USD 150 a month privately.
Gradient boosting is one of the most successful methods in practical machine learning, often the first choice for data in tables. The idea is simple: build a very small decision tree, see which examples it gets wrong, build another small tree aimed at those mistakes, and keep adding trees, each one nudging the prediction a little. Two settings govern it: how many trees to add, and the learning rate, how big each nudge is. This project uses OpenStreetMap outlines of Kirkcaldy's buildings, where mappers have tagged 2,618 as homes and 170 as something else, and asks the model to tell them apart from shape alone.
Facts last verified 29 September 2026. Teaching is online; no Kirkcaldy branch is claimed.
Pick a course by age and interest. Lesson one is live and free on all of them, and we take no card to book.

The how-to-think course: learning from mistakes step by step, and noticing when a score is misleading.
See the syllabus
Scratch games planned by the learner, built with an AI and put through their paces.
See the syllabus
Machine learning in Python, including boosting on real Kirkcaldy building shapes.
See the syllabus
Python through data, machine learning and AI agents.
See the syllabusBrowse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.
The four we are known for
These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

Python, web and AI projects where the learner still owns the thinking.
See the syllabus
Automate the work you already do, then let AI carry part of it.
See the syllabus
Train a model, read what it learned, and be able to say why it is wrong.
See the syllabus
Run AI coding agents on real work without losing control of the codebase.
See the syllabusThe NRS estimate for Kirkcaldy and Dysart, and suburbs on record in KY1 and KY2.
| Area | People |
|---|---|
| Kirkcaldy and Dysart locality, mid-2020 | 50,370 |
Chapel, Dunnikier, Dysart, Gallatown, Hayfield, Linktown, Pathhead, Sinclairtown, Smeaton and Templehall are suburban areas of Fife in the KY1 and KY2 postcode districts, according to postcodes.io. Fife schools teach the Curriculum for Excellence, and lessons follow Scottish primary and secondary years, with SQA Computing Science and Maths support at National 5, Higher and Advanced Higher. Pass on the school holiday dates and we will keep those weeks free.
Visit coding classes in Fife, Dunfermline and National 5 Computing Science help. Why we teach thinking first is on learn to think, not just use AI tools.
Seven shape features, two learning rates, up to 400 trees, and a score that can lie.
The learner downloads OpenStreetMap data over Kirkcaldy in sixteen tiles: 8,723 mapped buildings. Most, 5,917, carry no type and are left aside. Of the rest, 2,618 are tagged as homes of some kind and 170 as other buildings such as shops, garages, schools and churches. For each outline Python works out seven features: area, perimeter, number of corners, circularity, how fully it fills its tightest surrounding rectangle, how long and thin it is, and how many other buildings it touches, since terraces and semis share walls. The model is scored on held-back buildings over ten different random splits.
Because homes outnumber everything else by about fifteen to one, a model that always says "home" is right 93.9% of the time while being useless. So the fair score here is balanced accuracy: the average of the share of homes found and the share of other buildings found.
| Trees | Balanced accuracy | Plain accuracy | Other buildings found |
|---|---|---|---|
| 1 | 76.4% | 80.6% | 71.6% |
| 10 | 79.6% | 81.9% | 77.1% |
| 50 | 84.5% | 87.5% | 81.2% |
| 100 | 85.6% | 91.4% | 79.0% |
| 400 | 84.6% | 95.1% | 72.5% |
Balanced accuracy climbs to 85.6% at around 100 trees, beating a single decision tree at 82.7%, then slowly slips. Plain accuracy keeps rising all the way to 95.1%, because the extra trees chase the common case: the share of other buildings found falls from 81.2% to 72.5%. By then the model scores 99.3% on its own training buildings, a sign it is memorising rather than learning. With a learning rate of 1.0 the same thing happens faster and worse: balanced accuracy peaks at 82.6% after only 10 trees and ends at 80.2%, while plain accuracy reaches 96.3%. Small nudges and a sensible stopping point beat big steps and more trees.
Sort building pictures with one rule, then add a second rule just for the ones the first got wrong.
Measure the area and perimeter of a few Kirkcaldy building outlines in Python.
Train gradient boosting, plot the score against trees and learning rate, and find the stopping point.
Building outlines and tags are from OpenStreetMap and its contributors under the Open Database Licence. The features, the model and every score are our own work; tags reflect what volunteers have recorded, not a survey.
A number that keeps going up is not the same as a model that keeps getting better.
| In the buildings project | When AI trains a model for you |
|---|---|
| Always "home" scored 93.9% | Check the score against a do-nothing guess |
| Balanced accuracy peaked near 100 trees | More training is not always better |
| Plain accuracy still rose to 95.1% | The wrong metric can hide decline |
| Training score reached 99.3% | A near-perfect training score is a warning |
| 5,917 buildings had no type | Unlabelled data cannot check a model |
Ask an AI assistant to "train the most accurate model" on data like this and it may add trees until accuracy stops rising, report 96%, and never mention that the model misses a third of the buildings that matter. In vibe coding the learner describes the task while the AI writes the code; our Kirkcaldy students then pick the metric themselves and choose where to stop. It is tempting to let the model label the 5,917 untyped buildings, but nothing could confirm those labels, so we do not. Agents that train and deploy models for you need the same checks written into their instructions. Agent building comes once a learner is fluent in Python, usually S5 or S6 or as an adult, and Copilot Studio agents are private lessons only. More on the AI agents course for UK students and understand the code, don't copy-paste.
This page is ours alone: OpenStreetMap, National Records of Scotland and postcodes.io provided open data and nothing else, and any error in the model is our own.
Primary or secondary year gives us a starting point; the trial fine-tunes it.
Rules, mistakes and learning a little at a time.
Problem Solving and Computational Thinking for KidsScratch Coding for KidsGames and apps built with an AI and tested by the learner.
Vibe Coding for KidsPython and AI for KidsTrees, boosting and fair scoring alongside SQA Computing Science.
AI and Machine Learning for TeensPython for TeensModels, metrics and AI agents, built in Python.
Python MasterclassGenerative AI CourseGradient boosting builds many small decision trees one after another, each correcting the mistakes of those before it; add too many, or take steps too large, and it starts fitting quirks of the training data instead of real patterns.
On 2,788 labelled Kirkcaldy building outlines, balanced accuracy peaked at 85.6% after about 100 trees at a learning rate of 0.1, while plain accuracy kept climbing to 95.1% as the model found fewer of the non-home buildings.
Learners who have watched that happen ask of every AI-trained model: which score was it tuned on, and where did it stop?
Choosing the metric and the stopping point keeps Kirkcaldy teenagers in charge of the models they build, and learning to code is how they get that choice in 2026. The longer argument is in why teenagers should still learn to code in 2026.
Bring a computer, a webcam and an internet connection able to handle video.
The learner types and runs every step while our tutor follows on screen share, asking what each result means.
The free first session tells us where to begin; any SQA exam is noted.
We charge nothing for lesson one and recommend a course at the end.
Five to ten UK learners per class, all at a similar stage.
Paused during school holidays.
UK clock changes do not move your lesson; our tutors adjust.
Why online
Five learners at one level who are free on the same evening rarely live in the same street. Online, they can learn together anyway.
Kirkcaldy learners pay our international prices, which apply to all countries except India.
One full lesson free, followed by advice.
Approximately eight live group lessons monthly.
Approximately eight live private lessons monthly.
We invoice in US dollars rather than sterling, and only once the trial has confirmed a course and a weekly slot. The pricing page explains holidays, missed lessons and swapping between private and group.
Rated 4.9 across 547 Google reviews. These are real reviews, reproduced as written.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Send the learner's age or school year and one or two interests. The trial could be a picture-sorting game, a Scratch game planned with an AI, a first Python script, or measuring real building outlines.
Boosting, the building project, Python, vibe coding and practical details.
National Records of Scotland estimated 50,370 people in the Kirkcaldy and Dysart locality in mid-2020.
Yes, through live video lessons for ages 6 to 67 across Kirkcaldy and Fife.
The average of how well a model finds each class. It stops a model that always predicts the common class from looking good; in our Kirkcaldy data that lazy model scores 93.9% accuracy but 50% balanced.
It sets how much each new tree changes the prediction. Small steps learn slowly but steadily; large steps learn fast and tend to overfit, as our 1.0 setting did after 10 trees.
Training gradient boosting on 2,788 labelled building outlines from OpenStreetMap to tell homes from other buildings, and choosing where to stop adding trees.
Yes, at every age; the learner plans, describes and tests, and the AI helps write the code.
After Python becomes fluent, usually S5 or S6 or in adulthood; Copilot Studio agents are one-to-one only.
Yes, Computing Science and Maths at National 5, Higher and Advanced Higher, taught for understanding with no promised grades.
Lesson one is free; then USD 100 per month in a group or USD 150 per month one-to-one.
Yes, for school holidays; send us the dates.
Pages with their own projects: Fife, Dunfermline, Edinburgh and Livingston (a hash tree of the map). The Scotland page and the UK hub list the rest.