The Forecaster

Experimental alpha. Expect breaking changes and major bugs. Your feedback is much appreciated.

The Forecaster

The Forecaster watches the blocks around it that make progress and writes down what they do: furnaces, smokers, blast furnaces, brewing stands, Fabricators, Smelters and plants. Give it a model that has learned what such blocks do next, and if the model's forecasts match what happened, it runs them ahead: it draws their next looks from the model and makes them so.


Crafting

A Forecaster's screen, part by part.

Watching

It watches everything within four blocks of it, on its own level or one above or below, and writes a line for each block.

Machines. It looks at each furnace, smoker, blast furnace, brewing stand, Fabricator and Smelter eight times an item, and writes down how far through its item it is: a when it has just begun, up to h at seven eighths. A furnace at work writes

abcdefghabcdefghabcdefgh

and a line ends once its machine has been seen idle twice: aa. A smoker cooks twice as fast as a furnace and is looked at twice as often, so its line reads the same, give or take a letter. A furnace that runs out of fuel halfway through an item cools back down, two ticks for every tick, and its line steps back: abcdefdbaa.

Crops. Every twenty seconds it looks at every crop: wheat, carrots, potatoes, beetroots, the stems of pumpkins and melons, sweet berries, cocoa, nether wart and saplings. A crop's line is its age at every look, from 0 when planted to its last age when ripe (7 for wheat), ending once it has been seen ripe twice.

00000011111111122222223333333334444445555555666666677

Only what a block did by itself counts. A crop that is harvested, trampled or fed bone meal starts a new line, so its lines only ever hold what the field really does. Put a Field Log in the Log slot to keep a copy.

Crafting (Shapeless)

A model of the blocks

A model that has learned what happens next is a model of its world, and the Forecaster asks for nothing more. Train one on Forecasting at a Model Core: the Forecast Dataset holds the lines of many fields and machines.

Crafting (Shapeless)

A machine keeps its pace. Given where it is now, its next look is all but settled, so a model of machines in general forecasts yours.

Crops are another matter. How fast a crop grows depends on its field: wet farmland or dry, in tidy rows or crowded. A model that learned from many fields expects the growth of an average one. That is close enough on some fields and far off on others.

To forecast your own field, train on it. Put the Forecaster's Field Log in a data slot of the Core, on its own, and the model learns this field's pace. It gets worse at fields in general, and may even fail the Forecasting test: that is the price of fitting one field well. Beside the Forecast Dataset, the log only pulls the model halfway.

Calibration

A forecast is only worth acting on if it is right on average. The Forecaster checks a model against everything it watched, lines still being written included: the crops that finish first are the ones that happened to grow fastest, so finished lines alone would flatter a model that expects too much. It checks crops and machines apart, once the crops have grown 100 ages by themselves, or the machines have made 100 eighths of items, about a dozen, at their own pace. At every look it adds up how far the model expected the block to move, and divides by how far it moved:

calibration

  • Within 11% of 1, it runs those blocks four looks for every one.
  • Within 25%, two.
  • Further off, it refuses the model for them.

The screen shows the blocks nearby from above, then how far they moved per look from each age or each eighth, for the kind picked with the tabs: amber for what the blocks did, teal for what the model expected. A model that expects too much from young crops, or too little from old ones, shows it there. Below, a row for each kind shows the progress seen so far, then how close the model came and how fast it runs them. A refused model is checked again each time those blocks have moved 25 more, and any model is checked again when it changes.

Running ahead

At every look, each growing crop's line goes to the model, which draws the crop's next look from its probabilities, then the next, as many as the model has earned. The crop grows to the age drawn.

At every look at a machine, its line goes to the model the same way, and the machine works through the progress the model drew, a few ticks at a time: a furnace run four looks for every one cooks four items in the time of one, on the same fuel per item.

A block being run ahead shimmers, faster the faster it runs: teal up to ×16, amber past that.

Every look drawn is the model's own work. A model that is slow to answer, or a server busy with other askers, runs fewer looks ahead. Lines the model wrote, or that a machine was run ahead through, are never written down: the log only ever holds what the blocks did by themselves.

Forecaster II

Forecaster II watches and checks the same way, and runs blocks further ahead when its model comes closer: within 5% of what they did, eight looks for every one, and within 2.5%, sixteen. Every look it runs ahead is one more the model draws, so a block at ×16 asks fifteen of the model for each look the world takes; a slow model, or a busy server, runs fewer. The Fabricator makes it from a transformer photomask.

A model of machines in general expects a run of items to end now and then, so it falls a few percent short of furnaces that never run out. One that has also learned from this Forecaster's own log knows better.

Forecaster III

Forecaster III does all that Forecaster II does, and also keeps power, up to 4,000,000 FE, taken through Power Cables, and spends it on bursts: for thirty seconds, every machine and crop around it of a kind its model is trusted with runs at a pace you pick, up to ×256.

A burst has three prices. The model sets the fastest: sixteen times the pace it runs that kind of block ahead at, so ×256 needs a model within 2.5% of what those blocks did. The compute sets it too: ×32 needs 4 compute, and each doubling needs twice as much, up to 32 for ×256. One cooled 90 nm Training Accelerator supplies one unit; finer devices supply more. Join them directly, through each other or along Interconnect. The first four standalone Accelerators run free; every other device needs power. And the power pays for every tick: each machine takes one FE for each tick beyond its own, and eight crops take as much as a machine, so ×256 on sixteen machines burns 4,080 FE a tick. It runs at most sixteen machines at once. When the power runs out, the burst ends.

Lines of blocks a burst ran are never written down, as with everything run ahead.

The Fabricator makes it from a transformer photomask.

The Hourglass

The Hourglass keeps time while you carry it, a second for every second, up to an hour. The Fabricator makes it from an attention photomask, out of a Tensor Casing, four wafers and two weight crystals.

Sneak-use a Forecaster to bind it. Then use it on a machine or a crop of a kind that Forecaster runs ahead, anywhere in the Forecaster's dimension while the Forecaster is loaded: the block runs twice as fast for thirty seconds. Use it on the block again before that ends and the pace doubles, for thirty seconds from then, up to sixteen times as fast. Each step costs twice the kept time of the one before: thirty seconds of it for twice as fast, four minutes for sixteen times.

It works only on what its Forecaster's model is trusted with: while the model doesn't pass its check on machines, the Hourglass refuses machines too. A Forecaster never writes down the line of a block an Hourglass ran.