The Measurer — AI Web

Measure before you use AI at a village print shop: rules, models, embeddings, prompts, images, SaaS. 14 levels, right in the browser.

What you learn in this game

Before using any model, measure the simplest way first. Labelled data is messages a person has already given the right answer: Dwi marked 300 messages as an order or not. With that data every approach gets the same score: what share of messages it sorts right. This rule is ordinary code, not machine learning. Its number becomes the baseline: AI is only worth using if it beats it.

The most common machine learning is supervised learning: a model learns from examples that already carry a label. You choose the features (clues that can be counted from each message), and the model finds each feature's weight. Logistic regression adds up each feature times its weight, then turns the sum into a chance from 0 to 1. Above 0.5 means an order. The model is really trained in this browser every time you tap a clue.

Overfitting happens when a model learns the accidents of its training data instead of a pattern that holds in general. The sign: a very high score on the training data, a much lower one on new data. That is why data is split in two: training data to learn from, and test data set aside and opened only at the end.

Every feature is one weight to learn. The more features, the more examples it takes for those weights to stand for a pattern and not an accident. Labelling is human work and takes time: 60 messages are done in one evening, 1,000 take weeks.

A yes/no question has four outcomes: rightly flagged, wrongly flagged (a false alarm), rightly passed over, and wrongly passed over (missed). Precision is rightly flagged divided by everything flagged. Recall is rightly flagged divided by every real complaint.

AI for a web developer is not one tool. There are rules (ordinary code), classic models (trained on labelled data), embeddings (text turned into a vector of meaning, then the nearest labelled examples looked up), and language models given a prompt. The numbers in the table were really measured: accuracy on 400 test messages, cost from the tokens actually used times Awan's example tariff, and time per message.