Get started • Machine learning

How machine learning works

What a model is, how far to trust it, and how to use it again on new data. No machine learning knowledge needed.

Three steps

  1. 1. Look at the past

    You give it history where the answer is known. It tries several methods and learns the level, the trend and any repeating pattern.

  2. 2. Check it honestly

    It hides the most recent part, predicts it, and compares the result with a simple guess. You get a rating.

  3. 3. Save and reuse

    The winner is saved as a model with a name. When new data arrives, you ask for a refresh.

An example

Daily units sold in the sample data (both stores together): the last eight weeks, then a forecast for the next four. The shaded band is the likely range: the real number should land inside it about 8 times out of 10.

02004006008001000May 11May 25Jun 8Jun 22Jul 6Jul 20
Black: what was sold. Green: the forecast and its likely range. On past data it had not seen, this forecast missed by 19% less than a simple guess.

What the ratings mean

Useful
Clearly better than a simple guess on past data it had not seen. Plan with it.
Weak
A little better on the test, but that could be luck. Use it as a rough guide.
Not better than a simple guess
No forecast table is written. Try more history, weekly instead of daily, or a higher level such as category instead of product.

A model is a saved recipe with a report card

It remembers where the data comes from, what it predicts, how far ahead, the method that won, and how it did in the test. Training the same name again adds a new version. Old versions are not changed, and the better one stays in use.

Two kinds of model

Forecast: what comes next for a number over time, such as sales each week. A refresh reads the latest history again. Try a forecast.

Prediction: a score for each new row, such as which new customers will buy. The model learns once from rows where the outcome is known, then scores rows where it is not. Try a saved model.

New data: refresh or train again

RefreshTrain again
You say"Update my store_units forecast.""Train my store_units forecast again."
What happensThe same winning method, on the latest dataAll methods are tested again; a new version with a new report card
WhenEach week or month, as new data landsEvery few months, after a big change, or when results start missing

Add new rows to the same table and refresh. If the new data is in another table, name it: the columns must have the same names.

What you can ask for in a forecast

Describe what you want in your own words; your assistant fills in the details.

What it controlsSay it like thisIf you don't say
The name you reuse later"call it store_units"Your assistant picks one
Which data"use samples.daily_sales" or "leave out cancelled orders"You must say
The number to forecast"units sold" or "number of orders"Taken from the readiness check
Separate forecasts"one forecast for each store"One forecast for everything
How far ahead"for the next 4 weeks"A default that suits the step, such as a few weeks of days
The calendar step"weekly" or "monthly"Found from the dates
How rows in one period combine"add up sales" or "use the last stock count"Added up
Keep older forecasts"keep the history of forecasts"Only the latest is kept

Results are estimates from your past data. They can be wrong, and past patterns may not continue. See section 2 of the Terms of Service.

Get started and see every feature →