Docs
Open app
On this page

Best practices

Raw tables train well as they are. This page covers what training data to send, which training mode to pick, and when feature engineering helps.

Training data

Send at least 32 labeled rows for a reasonably simple table, and send every representative labeled row you have beyond that. More labeled rows keep improving accuracy, so don’t trim a large table to a few thousand rows. Training uses up to 200,000 rows and samples larger tables for you.

Send your unlabeled rows alongside the labeled ones; they are still used in training. Pick recent rows that look like the ones you’ll predict on, rather than an evenly split or hand-picked set.

Wide tables are fine: send up to 2,048 input columns.

Training modes

ModePick it when
InstantYou’re checking the table, the target and the inputs
StandardYou want a quick baseline to compare against
UltraYou’re training the model you’ll use in production

Iterate on Instant until the columns are right, then train on Ultra.

After training, pick a model size. Fast is the most accurate. Turbo and Warpspeed are smaller and predict faster; the results show how close each one is to Fast on your data, so choose the smallest size whose accuracy you’re happy with.

Text and embeddings

  • Raw free text, such as tickets, product descriptions or reviews: with the Training API, set text_columns to hosted and send the text as it is. You don’t need your own embedding pipeline. See Text.
  • Your own embeddings, for images, audio or text you already embed with your own model: send them as vector columns, and add pairs to compare two of them, such as a query and a title.
  • Fully offline predictions: a model trained with hosted text needs the text turned into numbers before a downloaded copy can use it. If your app can’t do that step, use your own embeddings instead. See running models with text locally.

A model holds up to 16 embedding columns, text columns and pairs combined.

Forecasting

Send past values of the target, such as sales_last_week, as raw numbers in the same units as the target. Don’t scale them or turn them into differences: 19th recognizes them and uses them to follow trends and level shifts beyond the range of your training rows. Send dates in UTC. See Forecasting.

Feature engineering

Mechanical transforms

Not needed. Scaling, encoding, bucketing and basic interactions largely go away. Send raw columns and you get a strong baseline.

Signal from other rows and tables

Add it. Rolling counts, time windows and joins from other tables add information a single row doesn’t have, for example a customer’s purchases in the last 30 days.

Cleanup

For the last few percent of accuracy and speed. Remove columns that don’t relate to the outcome; they add noise, which can lower accuracy. Combine related columns, for example several yes/no plan columns into one plan column; fewer columns make training and predictions faster.