Dataset types
A dataset is a named collection of data used to train a model. T-Brain supports three dataset types:
You can name datasets to distinguish their purpose or source, such as
products-main-store or events-september.
Upload data
- Go to Data.
- Click Add dataset.
- Select Categories, Products, or Events.
- Give the dataset a name.
- Upload your Parquet files and follow the instructions.
Categories
Category uploads are snapshots. Each upload should contain the full set of categories.
When a path is provided, its final segment must equal
category_id. For example, a category with ID air-fryers could have the path home.kitchen.air-fryers.
Path segments may contain letters, numbers, underscores, and hyphens. The path can be null for a root category or a catalog without a hierarchy.
Products
Product uploads are snapshots. Each upload should contain the full set of products.
Although only
product_id is structurally required, include descriptive information where available so the model has useful information about your products.
Events
Provide at least one month of event history. Include all purchases, not only purchases attributed to advertising, plus paid product clicks and impressions. Events must include a consistent shopper identifier so interactions and purchases can be connected. In the dataset, this identifier is stored inuser_id and must remain stable across sessions and days.
Event uploads are additive, allowing you to add activity from additional periods.
Supported event types
Keep identifiers consistent
Use exact, consistent identifiers across datasets:- An event’s
product_idmust match the product dataset’sproduct_id. - Values in a product’s
category_idsmust match category records’category_id. - Use the same
user_idfor the same shopper across interactions and purchases. - Give each purchase line a unique
event_id, and useorder_idto group lines from the same order.
Refresh an uploaded dataset
In Data, click Add Files next to the dataset you want to update. For products and categories, provide a full snapshot. For events, add the new event records. Once the dataset is updated, retrain any model that should learn from the refreshed information. Adding files does not automatically refresh an already trained model.Use synced Topsort datasets
If you are a Topsort customer, three datasets will already be available:Topsort-categoriesTopsort-productsTopsort-events