Rules written down, and rules found in examples

A brochure will say that nobody wrote the rules, then quote a number in the billions. Both sentences describe one fact, and neither says whether the tool will do the job on your desk.

  • Lesson 2 of 20
  • 8 min

The scene

Finance flags an unusual expense claim with a short written test: above a set amount, or with no receipt, the claim waits for a person. Jassim can open the sheet and read the test aloud. A supplier offers a tool shown three years of approved and rejected claims, which will, they say, learn the company's own judgement. In a trial it passes a claim with no receipt, because similar claims were waved through in a busy month, and it stops an ordinary claim from a team often queried last year. Noora asks what "learn" means, and why the proposal leads with a count of parameters rather than with the test. Fatima says the number and the missing test are the same subject.

The idea

A rule you can read

One kind of tool follows a rule a person wrote. You can read it, try it on a claim you understand, and point at the line that stopped one. To change it, you change the line. The expense sheet works this way.

The other kind is . Nobody writes the rule. The tool is shown many examples, the , and settles for itself what an approved claim resembled. What comes out is an . Handing someone the written test is the first kind. Handing them the drawer of past claims, and the next claim to judge, is the second. The comparison stops with the person: they come back and say they have never seen one like this, and the does not.

The picture in the file

The behind these chat tools are usually a : columns of very small calculating steps. Each step weighs the numbers coming in, adds them, and passes one number on. The columns are called layers. No single step is a sentence you could read to a member of staff. The name is borrowed from biology, and the borrowing stops at once. There is no organ here, and nothing in the file understands a claim.

Examples in, a result out Three boxes of examples on the left lead by an arrow into a wide middle box, marked as the point of the picture, labelled as layers of small steps. A second arrow leads to a result on the right. Notes underneath say that each link holds a number, and that training is the setting of those numbers. Examples in, a result out Example Example Example Layers of small steps A result that fits Each link holds a number: a parameter Training is the setting of those numbers

The numbers on the links are the . is the process that sets them: examples are shown, the output is compared with the answer that belonged to each example, and the are nudged, vast numbers of times, until the file reproduces those answers. finishes before anyone at Al-Rayyan opens the window, and a question does not set the again.

What the number is counting

Counts are often in the billions and change quickly, so no figure is worth memorising. The count is room for pattern, not a promise of being right. A larger file can hold the busy month's bad habit in finer detail. Claims with no receipt were often approved in the , so a claim resembling them leaned towards approval, and claims from the often-queried team taught a lean towards refusal. No line of the file states either result.

More drawers hold more paper, and you still cannot pull one out and read a reason. The comparison stops at the drawer: a drawer contains a given sheet or it does not, while one is only a number in a sum.

Which work wants which

Keep the written test where a refusal must be justified: the amount, the receipt, who may approve. Use examples where nobody can write the rule and the volume is real, such as grouping claims or spotting a duplicate invoice. Keep a check. This answers by resemblance and does not say when it has left familiar ground.

Where this fits

Both are ordinary tools. What changes is what you can ask of them afterwards. Next is the operation by which a turns those numbers into a sentence.

Check yourself

Noora is inclined to accept, because matching three years of the company's own decisions seems the fairest basis.

Use the arrow keys to read the options, then press Space to answer.

Type a lesson, an idea or a job. English words work in Arabic too.