Add complete stronger-baseline sample-size analysis
Browse files- README.md +18 -1
- SHA256SUMS.json +9 -2
- editor_revision_20261110/estimator_frontier.csv +13 -0
- editor_revision_20261110/family_gains_1024.csv +7 -0
- editor_revision_20261110/plot_data.csv +45 -0
- editor_revision_20261110/source_manifest.json +68 -0
- editor_revision_20261110/summarize.py +300 -0
- editor_revision_20261110/summary.json +60 -0
- editor_revision_20261110/true_law_boundaries.csv +19 -0
README.md
CHANGED
|
@@ -54,7 +54,7 @@ Raw-source reconstruction downloads the official archives and verifies their dig
|
|
| 54 |
- unionmind/: numerical implementations; use the standalone commands above.
|
| 55 |
- SHA256SUMS.json: integrity hashes for the distributed files.
|
| 56 |
|
| 57 |
-
The
|
| 58 |
|
| 59 |
## Additional analysis on opened data
|
| 60 |
|
|
@@ -112,3 +112,20 @@ unchanged. [Reproduction commands and source terms](validation_20261110/README.m
|
|
| 112 |
include the separately acquired Air Quality archive; no restricted raw or
|
| 113 |
processed recordings are redistributed. Portable reruns reproduce an existing
|
| 114 |
study and do not constitute new prospective confirmation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
- unionmind/: numerical implementations; use the standalone commands above.
|
| 55 |
- SHA256SUMS.json: integrity hashes for the distributed files.
|
| 56 |
|
| 57 |
+
The original six-control compression comparison gains 0.1013 utility at 1024 records. Against the stronger action-value encoder, the primary-mixture gaps are 0.00194, 0.01935, 0.01397 and 0.00086 at 64, 256, 1024 and 4096 records; this added comparison is descriptive. The external compression improvement criterion fails. The four-day temporal comparison is secondary because one source day fails its clock check; exact one-sided day-level p=0.0625. The 128-label hydraulic reversal, calibration failure and lack of complete-cost superiority are retained. These artifacts do not establish operational root-cause reliability.
|
| 58 |
|
| 59 |
## Additional analysis on opened data
|
| 60 |
|
|
|
|
| 112 |
include the separately acquired Air Quality archive; no restricted raw or
|
| 113 |
processed recordings are redistributed. Portable reruns reproduce an existing
|
| 114 |
study and do not constitute new prospective confirmation.
|
| 115 |
+
|
| 116 |
+
## Stronger-baseline and sample-size analysis
|
| 117 |
+
|
| 118 |
+
`editor_revision_20261110/` supplies the complete fixed-estimator frontier,
|
| 119 |
+
authored-family contributions, utility/query-charge decomposition and true-model
|
| 120 |
+
boundary calculations. These are descriptive summaries of frozen outputs, not
|
| 121 |
+
new fitting or confirmation. Original model files and scores are unchanged.
|
| 122 |
+
|
| 123 |
+
```bash
|
| 124 |
+
python editor_revision_20261110/summarize.py --root . --output replay_editor --plot
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
The numeric summary uses the Python standard library; optional plotting uses
|
| 128 |
+
matplotlib. The source manifest identifies archived utilities separately from
|
| 129 |
+
later diagnostic replays. Every estimator, sample budget and mechanism family
|
| 130 |
+
is retained. Generated `controlled.pdf` and `plot_data.csv` reproduce the updated
|
| 131 |
+
controlled figure; no raw third-party recordings are needed.
|
SHA256SUMS.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
".gitattributes": "0aad2046ff3535fdb3750ad77100b4f6aed80009c097ffc8a9e264a5d1b0c4e7",
|
| 3 |
"ENVIRONMENT.json": "786e73bb84b1300d1b5062961af74aacbab2bbfe1e12675ba6ceebd12d26b0eb",
|
| 4 |
"LICENSE.md": "c61d10e351da6b418485dac97ab5a3b419260552c4c10344d1621928bbb35908",
|
| 5 |
-
"README.md": "
|
| 6 |
"analyze.py": "3e2ee19da7cdec5b735db55a368132977d8aa6cfe4cfd8e49dbe86019a56a444",
|
| 7 |
"data/controlled/manifest.json": "2b50155e7f4d198449e2499dad21ba82d51e94423a1711eca8de4a01ab9ca156",
|
| 8 |
"data/controlled/worlds.json": "860e154c4ffd0690080ab8c263756d4340cc119fffa66e1cc41d1b42ac3848cb",
|
|
@@ -549,5 +549,12 @@
|
|
| 549 |
"validation_20261110/reproduce.py": "3efa11f23f8b26a1a7c21203d93b1b03b46bc388a69b23dfb11e468993a390a2",
|
| 550 |
"validation_20261110/fresh/independent/README.md": "15186973333c6ed558128f94268df47ec785aabcb2cc10f60f037c37dc8a629a",
|
| 551 |
"validation_20261110/fresh/independent/portable_audit.py": "8d7a90fe29c3e9a7be20348ae1e563f12db59a2e3d87f5c1dba5f8c148244014",
|
| 552 |
-
"validation_20261110/fresh/independent/original_fresh_independent_validation.py": "169014bbae37f5e6f47ef938b6d724ee6ad17ef9fe6c3e9f3ee648c7d2817820"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 553 |
}
|
|
|
|
| 2 |
".gitattributes": "0aad2046ff3535fdb3750ad77100b4f6aed80009c097ffc8a9e264a5d1b0c4e7",
|
| 3 |
"ENVIRONMENT.json": "786e73bb84b1300d1b5062961af74aacbab2bbfe1e12675ba6ceebd12d26b0eb",
|
| 4 |
"LICENSE.md": "c61d10e351da6b418485dac97ab5a3b419260552c4c10344d1621928bbb35908",
|
| 5 |
+
"README.md": "a7a00641adce91fc8786b33196224a94e86085d636dde170dd05d59d76d81819",
|
| 6 |
"analyze.py": "3e2ee19da7cdec5b735db55a368132977d8aa6cfe4cfd8e49dbe86019a56a444",
|
| 7 |
"data/controlled/manifest.json": "2b50155e7f4d198449e2499dad21ba82d51e94423a1711eca8de4a01ab9ca156",
|
| 8 |
"data/controlled/worlds.json": "860e154c4ffd0690080ab8c263756d4340cc119fffa66e1cc41d1b42ac3848cb",
|
|
|
|
| 549 |
"validation_20261110/reproduce.py": "3efa11f23f8b26a1a7c21203d93b1b03b46bc388a69b23dfb11e468993a390a2",
|
| 550 |
"validation_20261110/fresh/independent/README.md": "15186973333c6ed558128f94268df47ec785aabcb2cc10f60f037c37dc8a629a",
|
| 551 |
"validation_20261110/fresh/independent/portable_audit.py": "8d7a90fe29c3e9a7be20348ae1e563f12db59a2e3d87f5c1dba5f8c148244014",
|
| 552 |
+
"validation_20261110/fresh/independent/original_fresh_independent_validation.py": "169014bbae37f5e6f47ef938b6d724ee6ad17ef9fe6c3e9f3ee648c7d2817820",
|
| 553 |
+
"editor_revision_20261110/estimator_frontier.csv": "317851b861ed1e96fad1c16075844fcc2d2c9480779d4c92503eef1de1af8c2b",
|
| 554 |
+
"editor_revision_20261110/family_gains_1024.csv": "57f76dcc2c6bf906bbdf11be9adfe0567f8332f7d5a15951b1caa47f1c7c8f45",
|
| 555 |
+
"editor_revision_20261110/plot_data.csv": "d71220755416837f60c7c47b63a9b779793e1025948d04014d0c05529a617445",
|
| 556 |
+
"editor_revision_20261110/source_manifest.json": "7ab439afe6ec1e71487595baa95150514885d43397357421758e42401aefa917",
|
| 557 |
+
"editor_revision_20261110/summarize.py": "fec75bc4efa95a1fb0039dbf9c54cd0dcac9128b135a8a4790f9d9033f26aa4c",
|
| 558 |
+
"editor_revision_20261110/summary.json": "05b14166e741c91faa45d01b87b682b6cfa9f18126bc84a8e0114844cfa0876d",
|
| 559 |
+
"editor_revision_20261110/true_law_boundaries.csv": "aa0a4c0b92e99a929c7a529b09d81d210d74d81b8416ccf4c7a97bbb86781198"
|
| 560 |
}
|
editor_revision_20261110/estimator_frontier.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
estimator,records,worlds,streams,query_joint,action_values,identity,posterior_clusters,raw_information,joint_minus_action
|
| 2 |
+
joint_jeffreys,64,192,3,0.3401332821578765,0.3121846029732636,0.33512680859485605,0.26587052324777155,0.2386925829166463,0.027948679184612912
|
| 3 |
+
joint_jeffreys,256,192,3,0.5500985119830344,0.5209392896320614,0.5503906781894237,0.4288140973332929,0.4919078438201437,0.029159222350973013
|
| 4 |
+
joint_jeffreys,1024,192,3,0.6791399415774066,0.6690774701667933,0.6556393678743124,0.5281074252429679,0.586187356167227,0.010062471410613338
|
| 5 |
+
joint_jeffreys,4096,192,3,0.7079788935217171,0.7070768533221604,0.6946993832338948,0.5507528685547203,0.6098015495040726,0.0009020401995566418
|
| 6 |
+
naive_bayes,64,192,3,0.23880457723553553,0.2397032570079328,0.23904177968591173,0.23886677496623238,0.24960777247822757,-0.0008986797723972706
|
| 7 |
+
naive_bayes,256,192,3,0.2858521025875319,0.2860379987803682,0.2856816524352587,0.2858521025875319,0.3001921244176482,-0.00018589619283626568
|
| 8 |
+
naive_bayes,1024,192,3,0.30410267714123673,0.3043779327310614,0.3040165709234356,0.30410267714123673,0.3182498042815651,-0.00027525558982466336
|
| 9 |
+
naive_bayes,4096,192,3,0.30631175263146615,0.3064361587040688,0.3060575718561871,0.30631175263146615,0.32115532333190455,-0.00012440607260266745
|
| 10 |
+
support_mixture,64,192,3,0.2658499265780734,0.26390613849214967,0.2861019748560038,0.2590280814759798,0.2722343061169503,0.0019437880859237144
|
| 11 |
+
support_mixture,256,192,3,0.46153544711762456,0.44218912398754384,0.47464585889067984,0.38215783650559076,0.3961693181179532,0.019346323130080723
|
| 12 |
+
support_mixture,1024,192,3,0.651568196746697,0.6375946140433673,0.6421842631007377,0.5045968970651953,0.5502229409756352,0.013973582703329712
|
| 13 |
+
support_mixture,4096,192,3,0.7032230168798057,0.7023595499794808,0.6935868271710072,0.5519797982991866,0.6062565500482736,0.0008634669003249051
|
editor_revision_20261110/family_gains_1024.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
family,records,worlds,authored_context_family,query_joint,action_values,identity,posterior_clusters,raw_information,joint_minus_posterior_clusters,joint_minus_action_values
|
| 2 |
+
context,1024,32,True,0.6814637624980395,0.667719627246173,0.6650919319515614,0.23779038974868094,0.5145775504161055,0.4436733727493586,0.013744135251866574
|
| 3 |
+
independent,1024,32,False,0.913013489675506,0.9133526580360904,0.9100079337524132,0.915318662687657,0.9031660787545921,-0.0023051730121510516,-0.000339168360584452
|
| 4 |
+
orientation_alias,1024,32,True,0.749695480009097,0.7156206511171621,0.7375432253689826,0.5557157182324963,0.6134052546318305,0.1939797617766007,0.034074828891934916
|
| 5 |
+
parity,1024,32,True,0.7643539645704318,0.749467269935558,0.7505863638432653,0.5785860682616655,0.491345522934861,0.18576789630876633,0.014886694634873798
|
| 6 |
+
redundant,1024,32,True,0.7545480306631399,0.7412029739417946,0.7653668596783447,0.6989231534206255,0.7244842637951285,0.055624877242514414,0.013345056721345339
|
| 7 |
+
uninformative,1024,32,False,0.046334453063967655,0.038204503983425536,0.02450926400985953,0.041247390040046704,0.05435897532129334,0.005087063023920951,0.008129949080542119
|
editor_revision_20261110/plot_data.csv
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
panel,method,records,family,utility,source
|
| 2 |
+
sample,query_joint,64,ALL,0.2658499265780734,results/controlled/frontier.csv
|
| 3 |
+
sample,query_joint,256,ALL,0.4615354471176245,results/controlled/frontier.csv
|
| 4 |
+
sample,query_joint,1024,ALL,0.6515681967466971,results/controlled/frontier.csv
|
| 5 |
+
sample,query_joint,4096,ALL,0.7032230168798057,results/controlled/frontier.csv
|
| 6 |
+
sample,raw_information,64,ALL,0.2722343061169503,results/controlled/frontier.csv
|
| 7 |
+
sample,raw_information,256,ALL,0.3961693181179532,results/controlled/frontier.csv
|
| 8 |
+
sample,raw_information,1024,ALL,0.5502229409756352,results/controlled/frontier.csv
|
| 9 |
+
sample,raw_information,4096,ALL,0.6062565500482737,results/controlled/frontier.csv
|
| 10 |
+
sample,posterior_clusters,64,ALL,0.2590280814759798,results/controlled/frontier.csv
|
| 11 |
+
sample,posterior_clusters,256,ALL,0.38215783650559076,results/controlled/frontier.csv
|
| 12 |
+
sample,posterior_clusters,1024,ALL,0.5045968970651953,results/controlled/frontier.csv
|
| 13 |
+
sample,posterior_clusters,4096,ALL,0.5519797982991866,results/controlled/frontier.csv
|
| 14 |
+
sample,identity,64,ALL,0.2861019748560038,results/controlled/frontier.csv
|
| 15 |
+
sample,identity,256,ALL,0.47464585889067984,results/controlled/frontier.csv
|
| 16 |
+
sample,identity,1024,ALL,0.6421842631007377,results/controlled/frontier.csv
|
| 17 |
+
sample,identity,4096,ALL,0.6935868271710072,results/controlled/frontier.csv
|
| 18 |
+
sample,action_values,64,ALL,0.26390613849214967,results/postconfirmation/controlled_worlds.csv.gz
|
| 19 |
+
sample,action_values,256,ALL,0.44218912398754384,results/postconfirmation/controlled_worlds.csv.gz
|
| 20 |
+
sample,action_values,1024,ALL,0.6375946140433673,results/postconfirmation/controlled_worlds.csv.gz
|
| 21 |
+
sample,action_values,4096,ALL,0.7023595499794808,results/postconfirmation/controlled_worlds.csv.gz
|
| 22 |
+
family,query_joint,1024,context,0.6814637624980395,results/controlled/primary_families.csv
|
| 23 |
+
family,query_joint,1024,independent,0.913013489675506,results/controlled/primary_families.csv
|
| 24 |
+
family,query_joint,1024,orientation_alias,0.749695480009097,results/controlled/primary_families.csv
|
| 25 |
+
family,query_joint,1024,parity,0.7643539645704318,results/controlled/primary_families.csv
|
| 26 |
+
family,query_joint,1024,redundant,0.7545480306631399,results/controlled/primary_families.csv
|
| 27 |
+
family,query_joint,1024,uninformative,0.046334453063967655,results/controlled/primary_families.csv
|
| 28 |
+
family,raw_information,1024,context,0.5145775504161055,results/controlled/primary_families.csv
|
| 29 |
+
family,raw_information,1024,independent,0.9031660787545922,results/controlled/primary_families.csv
|
| 30 |
+
family,raw_information,1024,orientation_alias,0.6134052546318305,results/controlled/primary_families.csv
|
| 31 |
+
family,raw_information,1024,parity,0.491345522934861,results/controlled/primary_families.csv
|
| 32 |
+
family,raw_information,1024,redundant,0.7244842637951285,results/controlled/primary_families.csv
|
| 33 |
+
family,raw_information,1024,uninformative,0.054358975321293336,results/controlled/primary_families.csv
|
| 34 |
+
family,posterior_clusters,1024,context,0.23779038974868089,results/controlled/primary_families.csv
|
| 35 |
+
family,posterior_clusters,1024,independent,0.915318662687657,results/controlled/primary_families.csv
|
| 36 |
+
family,posterior_clusters,1024,orientation_alias,0.5557157182324963,results/controlled/primary_families.csv
|
| 37 |
+
family,posterior_clusters,1024,parity,0.5785860682616655,results/controlled/primary_families.csv
|
| 38 |
+
family,posterior_clusters,1024,redundant,0.6989231534206255,results/controlled/primary_families.csv
|
| 39 |
+
family,posterior_clusters,1024,uninformative,0.04124739004004672,results/controlled/primary_families.csv
|
| 40 |
+
family,action_values,1024,context,0.667719627246173,revision_r1/controlled/family_sample_frontier.csv
|
| 41 |
+
family,action_values,1024,independent,0.9133526580360904,revision_r1/controlled/family_sample_frontier.csv
|
| 42 |
+
family,action_values,1024,orientation_alias,0.7156206511171621,revision_r1/controlled/family_sample_frontier.csv
|
| 43 |
+
family,action_values,1024,parity,0.749467269935558,revision_r1/controlled/family_sample_frontier.csv
|
| 44 |
+
family,action_values,1024,redundant,0.7412029739417946,revision_r1/controlled/family_sample_frontier.csv
|
| 45 |
+
family,action_values,1024,uninformative,0.038204503983425536,revision_r1/controlled/family_sample_frontier.csv
|
editor_revision_20261110/source_manifest.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sources": {
|
| 3 |
+
"archive": {
|
| 4 |
+
"path": "results/postconfirmation/controlled_worlds.csv.gz",
|
| 5 |
+
"sha256": "bdb15095eadf96dff2aa316619a838b74024eece87c57143bcd44b4710e9547f",
|
| 6 |
+
"rows": 124416
|
| 7 |
+
},
|
| 8 |
+
"families": {
|
| 9 |
+
"path": "revision_r1/controlled/family_sample_frontier.csv",
|
| 10 |
+
"sha256": "793bd7f0fe0da1a09dc6d89572d36f2afc8aeca149094942959ad4c13f441fb8",
|
| 11 |
+
"rows": 24
|
| 12 |
+
},
|
| 13 |
+
"conditions": {
|
| 14 |
+
"path": "revision_r1/controlled/frontier_all_conditions.csv",
|
| 15 |
+
"sha256": "5b5b9e761163a7f1800047503cc0eae9d9d3450e221161daad14f6a44ffa704d",
|
| 16 |
+
"rows": 1944
|
| 17 |
+
},
|
| 18 |
+
"geometry": {
|
| 19 |
+
"path": "revision_r1/controlled/privileged_geometry.csv",
|
| 20 |
+
"sha256": "8acd6348b334b91b9f9b0486a9e07b9ea4cd1eee71d4eb4124cbc8cfe7bca233",
|
| 21 |
+
"rows": 3456
|
| 22 |
+
},
|
| 23 |
+
"plot_frontier": {
|
| 24 |
+
"path": "results/controlled/frontier.csv",
|
| 25 |
+
"sha256": "7a87d61707bec19b7818968c0ad220714a787d645210607c18d262597aee0e0c",
|
| 26 |
+
"rows": 624
|
| 27 |
+
},
|
| 28 |
+
"plot_families": {
|
| 29 |
+
"path": "results/controlled/primary_families.csv",
|
| 30 |
+
"sha256": "9af9a8f87e46e22457f832305360f93c9dd89505db664eccc3bae4dc7af48113",
|
| 31 |
+
"rows": 48
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"selection": {
|
| 35 |
+
"initial_channels": 6,
|
| 36 |
+
"estimators": [
|
| 37 |
+
"joint_jeffreys",
|
| 38 |
+
"naive_bayes",
|
| 39 |
+
"support_mixture"
|
| 40 |
+
],
|
| 41 |
+
"records": [
|
| 42 |
+
64,
|
| 43 |
+
256,
|
| 44 |
+
1024,
|
| 45 |
+
4096
|
| 46 |
+
],
|
| 47 |
+
"worlds": 192,
|
| 48 |
+
"worlds_per_family": 32,
|
| 49 |
+
"streams": [
|
| 50 |
+
0,
|
| 51 |
+
1,
|
| 52 |
+
2
|
| 53 |
+
],
|
| 54 |
+
"query_budgets": [
|
| 55 |
+
1,
|
| 56 |
+
2
|
| 57 |
+
],
|
| 58 |
+
"query_costs": [
|
| 59 |
+
0.0,
|
| 60 |
+
0.01,
|
| 61 |
+
0.05
|
| 62 |
+
],
|
| 63 |
+
"primary_estimator": "support_mixture",
|
| 64 |
+
"primary_records": 1024
|
| 65 |
+
},
|
| 66 |
+
"aggregation": "archive rows already average costs and positive query budgets; streams are averaged within each world, then all worlds equally; family summaries and condition diagnostics retain all declared cells",
|
| 67 |
+
"separation": "estimator_frontier.csv uses original archived utilities only; family/decomposition/boundary outputs use the identified descriptive revision tables"
|
| 68 |
+
}
|
editor_revision_20261110/summarize.py
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Reproduce the editor-revision quantitative synthesis from frozen public files.
|
| 3 |
+
|
| 4 |
+
Usage:
|
| 5 |
+
python summarize.py --root /path/to/downloaded/repository --output /tmp/summary
|
| 6 |
+
python summarize.py --root /path/to/downloaded/repository --output /tmp/summary --plot
|
| 7 |
+
|
| 8 |
+
The numerical summary uses only Python's standard library. Optional plotting
|
| 9 |
+
requires matplotlib. No model fitting, predictions, resampling, or score
|
| 10 |
+
selection occurs. Outputs distinguish original archived utilities from later
|
| 11 |
+
descriptive diagnostics; diagnostic replays never replace archived table cells.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
import argparse
|
| 15 |
+
from collections import Counter, defaultdict
|
| 16 |
+
import csv
|
| 17 |
+
import gzip
|
| 18 |
+
import hashlib
|
| 19 |
+
import json
|
| 20 |
+
from pathlib import Path
|
| 21 |
+
from statistics import mean
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
SIZES = (64, 256, 1024, 4096)
|
| 25 |
+
ESTIMATORS = ("joint_jeffreys", "naive_bayes", "support_mixture")
|
| 26 |
+
METHODS = ("query_joint", "action_values", "identity", "posterior_clusters", "raw_information")
|
| 27 |
+
FAMILIES = ("context", "independent", "orientation_alias", "parity", "redundant", "uninformative")
|
| 28 |
+
CONTEXT_FAMILIES = ("context", "orientation_alias", "parity", "redundant")
|
| 29 |
+
SOURCES = {
|
| 30 |
+
"archive": "results/postconfirmation/controlled_worlds.csv.gz",
|
| 31 |
+
"families": "revision_r1/controlled/family_sample_frontier.csv",
|
| 32 |
+
"conditions": "revision_r1/controlled/frontier_all_conditions.csv",
|
| 33 |
+
"geometry": "revision_r1/controlled/privileged_geometry.csv",
|
| 34 |
+
}
|
| 35 |
+
PLOT_SOURCES = {
|
| 36 |
+
"plot_frontier": "results/controlled/frontier.csv",
|
| 37 |
+
"plot_families": "results/controlled/primary_families.csv",
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def require(condition, message):
|
| 42 |
+
if not condition:
|
| 43 |
+
raise ValueError(message)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def write_json(path, value):
|
| 47 |
+
path.write_text(json.dumps(value, indent=2, allow_nan=False) + "\n")
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def write_csv(path, rows):
|
| 51 |
+
with path.open("w", newline="") as handle:
|
| 52 |
+
writer = csv.DictWriter(handle, fieldnames=list(rows[0]))
|
| 53 |
+
writer.writeheader()
|
| 54 |
+
writer.writerows(rows)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def read_sources(root, paths):
|
| 58 |
+
data, manifest = {}, {}
|
| 59 |
+
for name, relative in paths.items():
|
| 60 |
+
path = root / relative
|
| 61 |
+
opener = gzip.open if path.suffix == ".gz" else open
|
| 62 |
+
with opener(path, "rt", newline="") as handle:
|
| 63 |
+
data[name] = list(csv.DictReader(handle))
|
| 64 |
+
manifest[name] = {"path": relative, "sha256": hashlib.sha256(path.read_bytes()).hexdigest(),
|
| 65 |
+
"rows": len(data[name])}
|
| 66 |
+
return data, manifest
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def archived_table(rows):
|
| 70 |
+
# Each archived row already averages all three costs and both positive
|
| 71 |
+
# budgets for one world and sampling stream. Keep every such archived row.
|
| 72 |
+
groups = defaultdict(dict)
|
| 73 |
+
for row in rows:
|
| 74 |
+
if int(row["available"]) != 6 or row["method"] not in METHODS:
|
| 75 |
+
continue
|
| 76 |
+
key = (row["estimator"], int(row["labels"]), row["method"])
|
| 77 |
+
if key[0] not in ESTIMATORS or key[1] not in SIZES:
|
| 78 |
+
continue
|
| 79 |
+
identity = (row["world"], int(row["stream"]))
|
| 80 |
+
require(identity not in groups[key], f"duplicate archived observation: {key}, {identity}")
|
| 81 |
+
groups[key][identity] = (row["family"], float(row["utility"]))
|
| 82 |
+
utilities, table = {}, []
|
| 83 |
+
for estimator in ESTIMATORS:
|
| 84 |
+
for size in SIZES:
|
| 85 |
+
record = {"estimator": estimator, "records": size, "worlds": 192, "streams": 3}
|
| 86 |
+
for method in METHODS:
|
| 87 |
+
group = groups[(estimator, size, method)]
|
| 88 |
+
require(len(group) == 576, f"missing archived rows: {estimator}, {size}, {method}")
|
| 89 |
+
world_values, family_worlds = defaultdict(list), defaultdict(set)
|
| 90 |
+
for (world, stream), (family, value) in group.items():
|
| 91 |
+
require(stream in (0, 1, 2), "unexpected sampling stream")
|
| 92 |
+
world_values[world].append(value)
|
| 93 |
+
family_worlds[family].add(world)
|
| 94 |
+
require(len(world_values) == 192 and all(len(v) == 3 for v in world_values.values()),
|
| 95 |
+
"expected three streams for every world")
|
| 96 |
+
require(set(family_worlds) == set(FAMILIES)
|
| 97 |
+
and all(len(v) == 32 for v in family_worlds.values()), "family coverage changed")
|
| 98 |
+
value = mean(mean(v) for v in world_values.values())
|
| 99 |
+
record[method] = value
|
| 100 |
+
utilities[(estimator, size, method)] = value
|
| 101 |
+
record["joint_minus_action"] = record["query_joint"] - record["action_values"]
|
| 102 |
+
table.append(record)
|
| 103 |
+
return table, utilities
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
def family_concentration(rows):
|
| 107 |
+
selected = {row["family"]: row for row in rows if int(row["records"]) == 1024}
|
| 108 |
+
require(set(selected) == set(FAMILIES) and len(selected) == 6, "missing primary family")
|
| 109 |
+
family_rows = []
|
| 110 |
+
for family in FAMILIES:
|
| 111 |
+
row = selected[family]
|
| 112 |
+
require(int(row["worlds"]) == 32, "family weights changed")
|
| 113 |
+
record = {"family": family, "records": 1024, "worlds": 32,
|
| 114 |
+
"authored_context_family": family in CONTEXT_FAMILIES}
|
| 115 |
+
record.update({method: float(row[method]) for method in METHODS})
|
| 116 |
+
for comparator in ("posterior_clusters", "action_values"):
|
| 117 |
+
record["joint_minus_" + comparator] = record["query_joint"] - record[comparator]
|
| 118 |
+
family_rows.append(record)
|
| 119 |
+
concentration = {}
|
| 120 |
+
for comparator in ("posterior_clusters", "action_values"):
|
| 121 |
+
key = "joint_minus_" + comparator
|
| 122 |
+
total = sum(row[key] for row in family_rows) / 6
|
| 123 |
+
contribution = sum(row[key] for row in family_rows if row["authored_context_family"]) / 6
|
| 124 |
+
require(total != 0, "net family gain has zero denominator")
|
| 125 |
+
concentration[comparator] = {"all_six_equal_family_gain": total,
|
| 126 |
+
"four_context_families_contribution": contribution,
|
| 127 |
+
"fraction_of_net_gain": contribution / total,
|
| 128 |
+
"percent_of_net_gain": 100 * contribution / total}
|
| 129 |
+
return family_rows, concentration
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
def practical_scale(rows):
|
| 133 |
+
results = {}
|
| 134 |
+
for method in ("query_joint", "action_values"):
|
| 135 |
+
chosen = [row for row in rows if int(row["available"]) == 6
|
| 136 |
+
and row["estimator"] == "support_mixture"
|
| 137 |
+
and int(row["labels"]) == 1024 and row["method"] == method
|
| 138 |
+
and int(row["budget"]) > 0]
|
| 139 |
+
require(len(chosen) == 6, "expected all six cost/budget conditions")
|
| 140 |
+
require({(int(r["budget"]), float(r["cost"])) for r in chosen}
|
| 141 |
+
== {(b, c) for b in (1, 2) for c in (0.0, 0.01, 0.05)}, "condition grid changed")
|
| 142 |
+
utility = mean(float(row["utility"]) for row in chosen)
|
| 143 |
+
charge = mean(float(row["cost"]) * float(row["queries"]) for row in chosen)
|
| 144 |
+
results[method] = {"net_utility": utility, "expected_paid_query_cost": charge,
|
| 145 |
+
"terminal_expected_reward": utility + charge,
|
| 146 |
+
"expected_queries": mean(float(row["queries"]) for row in chosen),
|
| 147 |
+
"generating_law_optimum": mean(float(row["available_oracle"]) for row in chosen)}
|
| 148 |
+
delta_keys = ("net_utility", "expected_paid_query_cost", "terminal_expected_reward", "expected_queries")
|
| 149 |
+
delta = {key: results["query_joint"][key] - results["action_values"][key] for key in delta_keys}
|
| 150 |
+
headroom = results["action_values"]["generating_law_optimum"] - results["action_values"]["net_utility"]
|
| 151 |
+
require(headroom > 0, "nonpositive action-value headroom")
|
| 152 |
+
delta.update(action_remaining_headroom=headroom,
|
| 153 |
+
fraction_action_headroom_closed=delta["net_utility"] / headroom,
|
| 154 |
+
percent_action_headroom_closed=100 * delta["net_utility"] / headroom)
|
| 155 |
+
require(abs(delta["terminal_expected_reward"] - delta["expected_paid_query_cost"]
|
| 156 |
+
- delta["net_utility"]) < 1e-12, "reward/cost identity failed")
|
| 157 |
+
results["joint_minus_action"] = delta
|
| 158 |
+
return results
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
def boundary_scores(rows):
|
| 162 |
+
groups = defaultdict(list)
|
| 163 |
+
all_methods = sorted({row["method"] for row in rows})
|
| 164 |
+
for row in rows:
|
| 165 |
+
if int(row["available"]) == 6 and row["family"] in ("independent", "uninformative"):
|
| 166 |
+
groups[(row["family"], row["method"])].append(row)
|
| 167 |
+
result = []
|
| 168 |
+
for family in ("independent", "uninformative"):
|
| 169 |
+
for method in all_methods:
|
| 170 |
+
chosen = groups[(family, method)]
|
| 171 |
+
require(len(chosen) == 32 and len({r["world"] for r in chosen}) == 32,
|
| 172 |
+
"boundary comparison must retain all 32 worlds")
|
| 173 |
+
result.append({"family": family, "method": method, "worlds": 32,
|
| 174 |
+
"true_code_true_plan_utility": mean(float(r["utility"]) for r in chosen),
|
| 175 |
+
"encoding_loss": mean(float(r["encoding_loss"]) for r in chosen)})
|
| 176 |
+
return result
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def plot(data, archived, output):
|
| 180 |
+
import matplotlib
|
| 181 |
+
matplotlib.use("Agg")
|
| 182 |
+
import matplotlib.pyplot as plt
|
| 183 |
+
|
| 184 |
+
original = ("query_joint", "raw_information", "posterior_clusters", "identity")
|
| 185 |
+
labels = {"query_joint": "Joint predictive clustering", "raw_information": "Three features by mutual information",
|
| 186 |
+
"posterior_clusters": "Posterior clustering", "identity": "Uncompressed mixture",
|
| 187 |
+
"action_values": "Action-value (descriptive)"}
|
| 188 |
+
colors = dict(zip((*original, "action_values"), ("#176b91", "#ba682e", "#767676", "#277a50", "#80639a")))
|
| 189 |
+
audit, sample, families = [], {}, {}
|
| 190 |
+
for method in (*original, "action_values"):
|
| 191 |
+
sample[method] = []
|
| 192 |
+
for size in SIZES:
|
| 193 |
+
if method == "action_values":
|
| 194 |
+
value, source = archived[("support_mixture", size, method)], SOURCES["archive"]
|
| 195 |
+
else:
|
| 196 |
+
selected = [r for r in data["plot_frontier"] if r["availability"] == "full"
|
| 197 |
+
and r["model"] == "support_mixture" and r["method"] == method
|
| 198 |
+
and int(r["label_budget"]) == size and int(r["query_budget"]) > 0]
|
| 199 |
+
require(len(selected) == 2, "original plot series incomplete")
|
| 200 |
+
value, source = mean(float(r["utility"]) for r in selected), PLOT_SOURCES["plot_frontier"]
|
| 201 |
+
sample[method].append(value)
|
| 202 |
+
audit.append(dict(panel="sample", method=method, records=size, family="ALL", utility=value, source=source))
|
| 203 |
+
for method in (*original[:3], "action_values"):
|
| 204 |
+
families[method] = []
|
| 205 |
+
for family in FAMILIES:
|
| 206 |
+
if method == "action_values":
|
| 207 |
+
selected = [r for r in data["families"] if r["family"] == family and int(r["records"]) == 1024]
|
| 208 |
+
source, column = SOURCES["families"], method
|
| 209 |
+
else:
|
| 210 |
+
selected = [r for r in data["plot_families"] if r["family"] == family and r["method"] == method]
|
| 211 |
+
source, column = PLOT_SOURCES["plot_families"], "utility"
|
| 212 |
+
require(len(selected) == 1, "original family series incomplete")
|
| 213 |
+
value = float(selected[0][column])
|
| 214 |
+
families[method].append(value)
|
| 215 |
+
audit.append(dict(panel="family", method=method, records=1024, family=family, utility=value, source=source))
|
| 216 |
+
require(len(audit) == 44 and sum(r["method"] != "action_values" for r in audit) == 34, "plot coverage changed")
|
| 217 |
+
plt.rcParams.update({"font.family": "DejaVu Sans", "font.size": 10.5, "axes.spines.top": False,
|
| 218 |
+
"axes.spines.right": False, "pdf.fonttype": 42, "axes.titlesize": 11})
|
| 219 |
+
fig, axes = plt.subplots(1, 2, figsize=(8.6, 4.5))
|
| 220 |
+
handles = {}
|
| 221 |
+
for method in original:
|
| 222 |
+
handles[method], = axes[0].plot(SIZES, sample[method], "o-", color=colors[method], linewidth=1.6, markersize=5)
|
| 223 |
+
sample_limits = axes[0].get_ylim()
|
| 224 |
+
handles["action_values"], = axes[0].plot(SIZES, sample["action_values"], "D--", color=colors["action_values"],
|
| 225 |
+
linewidth=1.6, markersize=5, markerfacecolor="white", markeredgewidth=1.2, zorder=4)
|
| 226 |
+
axes[0].set_ylim(sample_limits)
|
| 227 |
+
axes[0].set_xscale("log", base=2)
|
| 228 |
+
axes[0].set_xticks(SIZES, list(map(str, SIZES)))
|
| 229 |
+
axes[0].set_xlabel("Estimation records")
|
| 230 |
+
axes[0].set_title("(a) Sample dependence", loc="left")
|
| 231 |
+
for method, offset in zip(original[:3], (-0.3, -0.1, 0.1)):
|
| 232 |
+
axes[1].bar([i + offset for i in range(6)], families[method], width=0.19, color=colors[method])
|
| 233 |
+
family_limits = axes[1].get_ylim()
|
| 234 |
+
axes[1].bar([i + 0.3 for i in range(6)], families["action_values"], width=0.19,
|
| 235 |
+
color="#eee9f2", edgecolor=colors["action_values"], linewidth=0.85, hatch="///")
|
| 236 |
+
axes[1].set_ylim(family_limits)
|
| 237 |
+
axes[1].set_xticks(range(6), [f.replace("_", "\n") for f in FAMILIES], rotation=30, ha="right", fontsize=9)
|
| 238 |
+
axes[1].set_title("(b) All six families (1024 records)", loc="left")
|
| 239 |
+
for axis in axes:
|
| 240 |
+
axis.set_ylabel("Expected utility")
|
| 241 |
+
axis.grid(axis="y", alpha=0.14, linewidth=0.6)
|
| 242 |
+
axis.set_axisbelow(True)
|
| 243 |
+
order = ("query_joint", "action_values", "identity", "raw_information", "posterior_clusters")
|
| 244 |
+
fig.legend([handles[m] for m in order], [labels[m] for m in order], ncol=2,
|
| 245 |
+
loc="lower center", bbox_to_anchor=(0.5, 0.005), frameon=False,
|
| 246 |
+
fontsize=9, handlelength=2.6, columnspacing=2.5)
|
| 247 |
+
fig.tight_layout(rect=(0, 0.19, 1, 1), w_pad=2.1)
|
| 248 |
+
fig.savefig(output / "controlled.pdf", bbox_inches="tight", metadata={"CreationDate": None, "ModDate": None})
|
| 249 |
+
plt.close(fig)
|
| 250 |
+
write_csv(output / "plot_data.csv", audit)
|
| 251 |
+
return {"plotted_values": 44, "original_public_values_preserved": 34,
|
| 252 |
+
"sample_ylim": sample_limits, "family_ylim": family_limits}
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
def main():
|
| 256 |
+
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 257 |
+
parser.add_argument("--root", type=Path, required=True, help="downloaded public repository root")
|
| 258 |
+
parser.add_argument("--output", type=Path, required=True, help="destination for regenerated summary files")
|
| 259 |
+
parser.add_argument("--plot", action="store_true", help="also create controlled.pdf and plot_data.csv (matplotlib)")
|
| 260 |
+
args = parser.parse_args()
|
| 261 |
+
paths = dict(SOURCES, **(PLOT_SOURCES if args.plot else {}))
|
| 262 |
+
data, manifest = read_sources(args.root, paths)
|
| 263 |
+
table, archived = archived_table(data["archive"])
|
| 264 |
+
family_rows, concentration = family_concentration(data["families"])
|
| 265 |
+
practical = practical_scale(data["conditions"])
|
| 266 |
+
boundaries = boundary_scores(data["geometry"])
|
| 267 |
+
for method in ("query_joint", "action_values"):
|
| 268 |
+
require(abs(practical[method]["net_utility"] - archived[("support_mixture", 1024, method)]) < 1e-12,
|
| 269 |
+
"primary mixture decomposition disagrees with archived utility")
|
| 270 |
+
output = args.output
|
| 271 |
+
output.mkdir(parents=True, exist_ok=True)
|
| 272 |
+
write_csv(output / "estimator_frontier.csv", table)
|
| 273 |
+
write_csv(output / "family_gains_1024.csv", family_rows)
|
| 274 |
+
write_csv(output / "true_law_boundaries.csv", boundaries)
|
| 275 |
+
summary = {"analysis": "descriptive aggregation of frozen records; no refitting or resampling",
|
| 276 |
+
"archived_table": "estimator_frontier.csv",
|
| 277 |
+
"gain_concentration_N1024": concentration,
|
| 278 |
+
"practical_utility_decomposition_N1024": practical,
|
| 279 |
+
"interpretation": {"concentration": "signed net contribution of four prespecified families divided by the net gain over all six equally weighted families; not application prevalence",
|
| 280 |
+
"reward": "terminal reward = net utility + expected query charges; charges are in utility units",
|
| 281 |
+
"boundaries": "generating-law codes and plans are privileged diagnostics, not deployable estimates"}}
|
| 282 |
+
if args.plot:
|
| 283 |
+
summary["figure"] = plot(data, archived, output)
|
| 284 |
+
write_json(output / "summary.json", summary)
|
| 285 |
+
write_json(output / "source_manifest.json", {
|
| 286 |
+
"sources": manifest,
|
| 287 |
+
"selection": {"initial_channels": 6, "estimators": ESTIMATORS, "records": SIZES,
|
| 288 |
+
"worlds": 192, "worlds_per_family": 32, "streams": [0, 1, 2],
|
| 289 |
+
"query_budgets": [1, 2], "query_costs": [0.0, 0.01, 0.05],
|
| 290 |
+
"primary_estimator": "support_mixture", "primary_records": 1024},
|
| 291 |
+
"aggregation": "archive rows already average costs and positive query budgets; streams are averaged within each world, then all worlds equally; family summaries and condition diagnostics retain all declared cells",
|
| 292 |
+
"separation": "estimator_frontier.csv uses original archived utilities only; family/decomposition/boundary outputs use the identified descriptive revision tables",
|
| 293 |
+
})
|
| 294 |
+
print(json.dumps({"output": str(output), "estimator_rows": len(table),
|
| 295 |
+
"family_rows": len(family_rows), "boundary_rows": len(boundaries),
|
| 296 |
+
"plot": args.plot}, indent=2))
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
if __name__ == "__main__":
|
| 300 |
+
main()
|
editor_revision_20261110/summary.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"analysis": "descriptive aggregation of frozen records; no refitting or resampling",
|
| 3 |
+
"archived_table": "estimator_frontier.csv",
|
| 4 |
+
"gain_concentration_N1024": {
|
| 5 |
+
"posterior_clusters": {
|
| 6 |
+
"all_six_equal_family_gain": 0.14697129968150166,
|
| 7 |
+
"four_context_families_contribution": 0.14650765134620666,
|
| 8 |
+
"fraction_of_net_gain": 0.9968453137701051,
|
| 9 |
+
"percent_of_net_gain": 99.6845313770105
|
| 10 |
+
},
|
| 11 |
+
"action_values": {
|
| 12 |
+
"all_six_equal_family_gain": 0.013973582703329717,
|
| 13 |
+
"four_context_families_contribution": 0.012675119250003438,
|
| 14 |
+
"fraction_of_net_gain": 0.9070772699533333,
|
| 15 |
+
"percent_of_net_gain": 90.70772699533333
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"practical_utility_decomposition_N1024": {
|
| 19 |
+
"query_joint": {
|
| 20 |
+
"net_utility": 0.6515681967466971,
|
| 21 |
+
"expected_paid_query_cost": 0.013782890972737908,
|
| 22 |
+
"terminal_expected_reward": 0.665351087719435,
|
| 23 |
+
"expected_queries": 0.8264327633739279,
|
| 24 |
+
"generating_law_optimum": 0.713985016995153
|
| 25 |
+
},
|
| 26 |
+
"action_values": {
|
| 27 |
+
"net_utility": 0.6375946140433673,
|
| 28 |
+
"expected_paid_query_cost": 0.013199812576603754,
|
| 29 |
+
"terminal_expected_reward": 0.650794426619971,
|
| 30 |
+
"expected_queries": 0.7977101465204219,
|
| 31 |
+
"generating_law_optimum": 0.713985016995153
|
| 32 |
+
},
|
| 33 |
+
"joint_minus_action": {
|
| 34 |
+
"net_utility": 0.013973582703329823,
|
| 35 |
+
"expected_paid_query_cost": 0.000583078396134154,
|
| 36 |
+
"terminal_expected_reward": 0.014556661099463963,
|
| 37 |
+
"expected_queries": 0.028722616853505967,
|
| 38 |
+
"action_remaining_headroom": 0.07639040295178579,
|
| 39 |
+
"fraction_action_headroom_closed": 0.18292327522017818,
|
| 40 |
+
"percent_action_headroom_closed": 18.292327522017818
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"interpretation": {
|
| 44 |
+
"concentration": "signed net contribution of four prespecified families divided by the net gain over all six equally weighted families; not application prevalence",
|
| 45 |
+
"reward": "terminal reward = net utility + expected query charges; charges are in utility units",
|
| 46 |
+
"boundaries": "generating-law codes and plans are privileged diagnostics, not deployable estimates"
|
| 47 |
+
},
|
| 48 |
+
"figure": {
|
| 49 |
+
"plotted_values": 44,
|
| 50 |
+
"original_public_values_preserved": 34,
|
| 51 |
+
"sample_ylim": [
|
| 52 |
+
0.23681833470578847,
|
| 53 |
+
0.725432763649997
|
| 54 |
+
],
|
| 55 |
+
"family_ylim": [
|
| 56 |
+
0.0,
|
| 57 |
+
0.9610845958220399
|
| 58 |
+
]
|
| 59 |
+
}
|
| 60 |
+
}
|
editor_revision_20261110/true_law_boundaries.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
family,method,worlds,true_code_true_plan_utility,encoding_loss
|
| 2 |
+
independent,action_values,32,0.9281063650817162,0.000827368423258798
|
| 3 |
+
independent,future_marginal,32,0.9283008577141987,0.0006328757907762868
|
| 4 |
+
independent,hash_code,32,0.4783797222966582,0.45055401120831673
|
| 5 |
+
independent,identity,32,0.9289337335049749,0.0
|
| 6 |
+
independent,posterior_bins,32,0.9269298654999676,0.0020038680050073654
|
| 7 |
+
independent,posterior_clusters,32,0.927818092070147,0.0011156414348279797
|
| 8 |
+
independent,query_joint,32,0.927818092070147,0.001115641434827978
|
| 9 |
+
independent,raw_entropy,32,0.632244970377393,0.29668876312758197
|
| 10 |
+
independent,raw_information,32,0.9103881708769597,0.018545562628015315
|
| 11 |
+
uninformative,action_values,32,0.0667348907999358,-3.32488666228888e-18
|
| 12 |
+
uninformative,future_marginal,32,0.0667348907999358,-1.264902534566422e-19
|
| 13 |
+
uninformative,hash_code,32,0.0667348907999358,-9.938519914450459e-19
|
| 14 |
+
uninformative,identity,32,0.0667348907999358,0.0
|
| 15 |
+
uninformative,posterior_bins,32,0.06673489079993578,1.6714783492484862e-17
|
| 16 |
+
uninformative,posterior_clusters,32,0.06673489079993579,8.61940727125976e-18
|
| 17 |
+
uninformative,query_joint,32,0.0667348907999358,7.77011556947944e-19
|
| 18 |
+
uninformative,raw_entropy,32,0.0667348907999358,1.1926223897340549e-18
|
| 19 |
+
uninformative,raw_information,32,0.0667348907999358,-4.7704895589362195e-18
|