Skip to main content

Classification

For each row, the model returns a probability for each class. The probabilities of a row add up to one. The label is the class with the highest probability.
The classes are the classes seen in the context. A class that never appears in the context cannot be predicted. A table may have up to 32 classes. If you will use the probabilities directly, for example as a probability of default in pricing or provisioning, check their calibration on held-out rows first. Compare the mean predicted probability with the observed rate in bands of the score.

Regression

For each row, the model returns a full predicted distribution of the answer. You choose what to read from it.
Choose the outputs with outputs, the levels with quantiles, and the interval’s coverage with coverage. When the answer cannot leave a range, such as a share between 0 and 100 or an amount that cannot be negative, pass target_range. Every quantile is then clipped to the range, and the report gives the share of quantiles that were clipped. A large share means the model’s distribution often runs past the range, and the clipped mean then sits slightly off the unclipped one.

Forecasts

A forecast gives one prediction for each future step of each series. Each has the same form as a regression prediction, with the series, the time and the step number.
The quantiles of each step are the predicted distribution of that step on its own. The quantiles of a sum over several steps, such as a weekly total, are not the sums of the daily quantiles. The mean of a sum is the sum of the means, so use the means when you add steps or series together.

Group answers

When a table has a group answer, such as an account’s total recovery, each row also carries group. This is the prediction of the group’s answer as of that row’s time. It has the same form as any other prediction.

Recommendation lists

A recommendation gives, for each row, a list of items with the best first. Each item has its rank and the model’s probability that the link will happen in the window.
When the model finds fewer suitable items than the length of the list you asked for, the rest of the list is filled with the items most often picked in the window before. Those items are marked with filled_from_popular, and they have no probability.

File formats

The file endpoints return JSON by default. Pass format=csv or format=parquet to get a table instead. A regression table has the columns mean, median, one column per quantile, interval_low and interval_high. Group answers add the same columns with the prefix group_. A forecast table has one row per series and step, with the columns series, time and step in front.

Explanations

Any prediction request can ask for explanations with "explain": true. Each prediction then carries the contribution of each input to it. See Explanations.

The report

Every response has a report. It records what the model did, so that you can check it. It includes:
  • the model version, which changes whenever the model file changes;
  • the type of each column and the reason for it;
  • the rows left out and why, such as rows without an answer or without a date;
  • the time taken and the device used;
  • warnings, each with a count, the ids of up to 20 rows, and a note in words.
Keep the model version with your predictions. Together with your input, it fully determines the output.