Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.15 KB

File metadata and controls

36 lines (25 loc) · 1.15 KB

Local CSV example

Minimal recipe that trains a recommender from a local gzip-compressed CSV shipped alongside the recipe. No network access required.

Files

  • recipe.yaml — uses local path examples/csv-local/interactions.csv.gz
  • interactions.csv.gz — small synthetic dataset (user_id, item_id, timestamp)

Run

From the repository root:

mkdir -p artifacts
uv run recotem train examples/csv-local/recipe.yaml

The artifact is written to ./artifacts/csv_local_example.<sha>.recotem (the .<sha> suffix comes from versioning: append_sha).

What it demonstrates

  • A csv data source with explicit dtype overrides for ID columns.
  • time_user train/test split (requires time_column on the schema).
  • IALS, CosineKNN, and TopPop algorithms compared via Optuna ndcg@20.

When to prefer this over tutorial-purchase-log

Use this example when you want to develop offline, or to study the recipe schema without an HTTPS round-trip. The tutorial-purchase-log example is the runnable end-to-end walkthrough that the getting-started guide is built around.