You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 97a773b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+47-8Lines changed: 47 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,8 +93,10 @@ Reproduced by the committed test suite and evaluation scripts.
93
93
|**Data quality**|**8 errors** detected across 10 raw tables; cleaning imputes 3 fields, drops 2 exact duplicates, quarantines 1 impossible line; **zero errors** after |
94
94
|**Plan vs actual**| Attainment spans **87.4% to 125.6%** across 64 region/category/channel segments, evenly split 32 above plan and 32 below. KAM quota attainment runs **89.8% to 106.0%** across four managers, three ahead and one behind |
95
95
|**Reproducibility**| Identical results on **numpy 1.26 under Windows and numpy 2.5 under Linux** — same signal, same impact to the cent, same forecast improvement. The container resolves the top of the declared dependency range rather than a lockfile, which is how the numpy 2.x break was found |
96
-
|**Tests**|**316 automated tests**, passing on both dependency sets. One asserts that no output ever claims causation |
97
-
|**Mutation testing**|`scripts/mutation_test.py` applies 37 operator and constant mutations to the KPI layer; the suite kills **34 (91.9%)**. The 3 survivors are equivalent mutants (`> 0` vs `>= 0` on a count that is never zero, or on a ratio where 0/0 is already NaN) |
96
+
|**Data pipeline**| The same 1,067,371 lines landed in S3, conformed by a **PySpark** job, cleaned, and loaded into **PostgreSQL** (996,528 sales lines) and **Redshift Serverless** (996,531, loaded before stock codes were made case-insensitive). Spark's output is **identical to the pandas adapter's in all six tables**, compared column by column on the full dataset |
97
+
|**Warehouse parity**| Every staging view and all seven analytical queries return the **same rows on PostgreSQL and Redshift as on SQLite**. The one tolerance is `aov`, which may differ by a cent on an exact half cent because the engines round ties differently |
98
+
|**Tests**|**427 automated tests**, passing on both dependency sets. One asserts that no output ever claims causation |
99
+
|**Mutation testing**|`scripts/mutation_test.py` applies 37 operator and constant mutations to the KPI layer; the suite kills **34 (91.9%)**. The 3 survivors are equivalent mutants (`> 0` vs `>= 0` on a count that is never zero, or on a ratio where 0/0 is already NaN). On the pipeline, `scripts/mutation_test_pipeline.py` applies **28 realistic bugs** (Spark's rounding, a lost CSV option, a dropped tie-breaker, a spending cap that only logs) and the suite catches **all 28**, up from 22 before the gaps it found were tested. Operator mutants on the pipeline code: **93 of 108** caught; the 15 survivors are wait times, output file counts and print formatting |
98
100
99
101
**On that false-alarm figure.** The 12 counts every signal that matched nothing
100
102
planted, wherever it was raised: 9 on the two control windows and 3 alongside
@@ -119,6 +121,13 @@ Or don't, and check the claims instead:
119
121
docker build -t rootsignal .&& docker run --rm rootsignal pytest
120
122
```
121
123
124
+
Or run the whole pipeline on the real dataset, from download to warehouse:
125
+
126
+
```bash
127
+
docker compose up -d warehouse
128
+
docker compose run --rm pipeline # land, conform in Spark, load, publish
129
+
```
130
+
122
131
Then, in rough order of what is worth seeing first:
| Scenario evaluation | Measures whether the engine tells three planted situations apart and stays silent on two controls |[signals.md](docs/signals.md)|
206
241
| SQL layer | Staging views, commercial mart and seven business queries, all executed by tests |[sql.md](docs/sql.md)|
242
+
| Warehouse | The same SQL on PostgreSQL and Redshift, translated from one source and held row for row to SQLite |[power_bi.md](docs/power_bi.md)|
243
+
| Pipeline | Raw, curated and clean zones on disk or in S3, a PySpark conform job, and report tables for BI |[power_bi.md](docs/power_bi.md)|
207
244
| Excel reporting | Six operational workbooks, each opening with what its figures mean |[reporting.md](docs/reporting.md)|
208
245
| Dashboard | Five Streamlit pages over a Streamlit-free, tested data layer |[dashboard.md](docs/dashboard.md)|
209
246
| Presentation | One map from schema keys to language a business reader already has |[dashboard.md](docs/dashboard.md#the-words-on-the-screen)|
@@ -251,8 +288,10 @@ against six named criteria rather than a tuned score. It is validated against
251
288
five planted scenarios — classifying three of three correctly at a medium
252
289
confidence floor, with zero false alarms at a high one — and runs unchanged on
253
290
a million real invoice lines from a public dataset, where it beats a naive
254
-
forecast baseline by 38.8% across 49 backtest folds. Python, pandas, SQL,
255
-
Streamlit; 308 tests, including one asserting that no output ever claims
256
-
causation.
291
+
forecast baseline by 38.8% across 49 backtest folds. That dataset moves through
292
+
a pipeline from S3 through a PySpark job into PostgreSQL and Redshift, with
293
+
Spark's output checked against the pandas implementation on every row. Python,
294
+
pandas, PySpark, SQL, AWS, Streamlit; 427 tests, including one asserting that no
0 commit comments