Skip to content

rel-amazon: item LTV (Regression)

This example now pulls rel-amazon directly from relbench, materializes the official tables locally, and then runs the existing GraphReduce pipeline on those files.

from relbench_amazon_item_ltv import run_rel_amazon_item_ltv

df_val, df_holdout, holdout_mae, n_features, materialized, target = run_rel_amazon_item_ltv()
print(materialized)
print(target, holdout_mae, n_features, len(df_val), len(df_holdout))

Current implementation:

Current RelBench-aligned dates:

  • validation cut date: 2015-10-01
  • holdout cut date: 2016-01-01
  • lookback start: 2008-01-01

Interactive Runner