|
14 | 14 | # See the License for the specific language governing permissions and |
15 | 15 | # limitations under the License. |
16 | 16 |
|
17 | | -# XXX TODO: |
18 | | -# |
19 | | -# [DONE] Teach analysis to update CGPMs too. |
20 | | -# [DONE] Kludge up Kepler's laws in Python. |
21 | | -# [DONE] Test hand-kludged CGPM registry. |
22 | | -# - Write stupid schema parser. Adapt axch's? |
23 | | -# [DONE] Teach INITIALIZE MODELS to take a model_config argument for real: |
24 | | -# . INITIALIZE 10 MODELS FOR <population> (x POISSON, y ...) |
25 | | -# . rename model_config -> model schema |
26 | | -# . Meaning: prior and likelihood model? Or, `just SP'... |
27 | | -# [DONE] Introduce named model schemas: |
28 | | -# . CREATE MODEL SCHEMA <schema> FOR <population> (...) |
29 | | -# . INITIALIZE 40 MODELS FOR <population> USING <model schema> |
30 | | -# - Make populations metamodel-independent. |
31 | | -# - Change the nomenclature: |
32 | | -# . generator -> population |
33 | | -# . model schema -> metamodel |
34 | | -# . row -> individual |
35 | | -# . column -> variable |
36 | | -# . metamodel -> ??? |
37 | | -# - Adopt VentureScript CGPM. |
38 | | -# |
39 | | -# XXX Future TODO: |
40 | | -# |
41 | | -# - Rename keyword BY ---> WITHIN? |
42 | | -# - Conjecture more elaborate predicates on models? |
43 | | -# . ANALYZE <population> MODELS WHERE DEP. PROB. OF X WITH Y > 0.5 |
44 | | -# . (What happens if predicate changes during analysis?) |
45 | | -# . ESTIMATE PROBABILITY OF x = 1 GIVEN (y = 2) WITHIN <population> |
46 | | -# USING MODELS WHERE DEP. PROB. OF x WITH y > 0.5 |
47 | | -# - Introduce additional statistical types: count, boolean, &c. |
48 | | -# . Clarify that `statistical type' means `support'. |
49 | | -# - Subsampling, per-model subsampling... |
50 | | - |
51 | 17 | import contextlib |
52 | 18 | import json |
53 | 19 | import math |
|
0 commit comments