Busabase
Busabase 是一个开源(MIT)数据库与 AI 智能体工作空间——将数据、文档、技能和应用集成于一体。您可以本地运行、在网络内自托管或使用 Busabase Cloud,从而开启新时代。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A retail BI project on real data: five years of daily Walmart sales (the public M5 dataset), modelled in SQL with dbt on DuckDB, tested, and compared with the forecast that won the M5 competition.
Live dashboard: https://guilhermerigonato.com/5-retail-bi/ · Power BI version: model, DAX and report guide in powerbi/ · Stack: SQL, dbt, DuckDB, Power BI (PBIP/TMDL), Python
staging (views) marts (tables)
stg_calendar ───────────────┐ dim_date
stg_sell_prices ────────────┼──────▶ fct_sales_daily 47.7M rows: item × store × day
stg_sales (unpivot, table) ─┤ dim_item, dim_store
stg_forecast_winner ────────┴──────▶ fct_forecast_eval 853,720 rows: 28 out-of-sample days
mart_sales_weekly, mart_forecast_accuracy,
mart_forecast_daily, mart_zero_sales_runs
mart_zero_sales_runs uses gaps-and-islands with window functions to find 7–56 day runs of zero sales for fast movers, the stock-out proxy.pip install dbt-duckdb==1.9.1
./scripts/get_data.sh
export M5_RAW_PATH=data/raw
dbt build --profiles-dir . # about 3 minutes on a laptop
python scripts/export_web_data.py # writes web/data/*.json
Open web/index.html through any static server (python -m http.server in web/).
python scripts/export_powerbi_data.py writes the Parquet files the Power BI project reads. The project itself, with the TMDL model and DAX measures, is in powerbi/.
M5 Forecasting – Accuracy (Walmart, via Kaggle, 2020), mirrored by Nixtla. The forecast is the published submission of the winning team (YJ_STU). Prices are in US dollars.