Automotive Parts Dynamic Pricing
Demand model quality, price elasticity, per-SKU pricing decisions, and inventory linkage — real output from the source Python pipeline.
Automotive Parts Dynamic Pricing
Pricing Decision Workbench
Demand-model quality, price-elasticity estimates, per-SKU pricing decisions, and inventory linkage — every number below comes straight from the source project's Python pipeline output files.
About the data
This run's synthetic sample is 500 SKUs × 4 regions × 3 tiers (6,000 SKU-region-tier price points). No real company data.
Modeled revenue
¥39,330,586
500 SKUs × 4 regions × 3 tiers
Simulated GP lift (unvalidated upper bound)
¥2,508,881
Most categories shrink to a -0.1 elasticity prior, so the optimizer leans toward price increases (63.5% of price points); a simulated upper bound on synthetic data, not a business result
Inventory value
¥44,591,943
Valued at current unit cost
Stockout-risk SKUs
1,176
Need replenishment or price action
Demand model quality (out-of-time test set)
HistGradientBoosting, 38 features, train/val/test split 78/13/13 weeks.
WAPE
19.1%
Test-set weighted absolute % error
Baseline comparison
Withheld
The source seasonal-naive baseline has an implementation bug (predicts 0 for the test window, WAPE = 100%); no improvement figure is quoted until it is fixed
MAE
7.79 units
Avg. absolute error per SKU-week
RMSE
12.9 units
More sensitive to large misses
Source: src/demand_model.py + src/metrics.py
# 模型选择:HistGradientBoosting,而非线性 Ridge 或 RandomForest
model = HistGradientBoostingRegressor(
max_iter=100, max_depth=6, learning_rate=0.1, random_state=RANDOM_SEED
)
# 时间序列切分:78 周训练 / 13 周验证 / 13 周测试,严格按时间先后,不做随机 K-fold
# (随机切分会让模型"看到未来",是需求预测里最常见的泄漏错误)
# WAPE:加权绝对百分比误差 —— 用总量做分母,比逐条 MAPE 更抗小基数噪声
def wape(y_true, y_pred):
return sum(abs(y_true - y_pred)) / sum(abs(y_true))