maxpagels commited on
Commit
4eef16f
·
verified ·
1 Parent(s): df166a5

Release 0.5.0

Browse files
README.md CHANGED
@@ -16,7 +16,7 @@ treated (ATT) and on the controls, and every row's own effect (CATE); for contin
16
  effect between two values, the dose-response curve and every row's effect, each with 90% and
17
  50% intervals. Trained on simulated data where every row's effect is known.
18
 
19
- **Version 0.2.0 is experimental.** The API and the weights will change in 0.x releases.
20
  Check its answers against what you know about your data.
21
 
22
  It works without a causal graph, the usual assumption being that every covariate is measured
@@ -36,7 +36,7 @@ for from the ones that would bias the answer.
36
  | treatment | binary (two values) or continuous (at least 10 distinct values); continuous values inside its 2-98% quantiles |
37
  | covariates | trained on up to 84; without a graph they must all be pre-treatment (not caused by the treatment) |
38
  | graph | none; a DAG you trust (the treatment's descendants are then dropped); or an Axiom `discover()` result |
39
- | rows | trained on 128-1024; larger tables are split into disjoint subsets of up to 1024 rows and combined |
40
  | hidden confounders | not handled: no unmeasured common causes of the treatment and the outcome |
41
  | missing values | not supported in the columns used |
42
 
@@ -95,5 +95,5 @@ weights released with it, so code and weights always match. To install a specifi
95
  an earlier one included, use its tag:
96
 
97
  ```bash
98
- pip install "git+https://huggingface.co/maxpagels/axiom-effect@v0.2.0" # or an earlier tag, e.g. @v0.1.0
99
  ```
 
16
  effect between two values, the dose-response curve and every row's effect, each with 90% and
17
  50% intervals. Trained on simulated data where every row's effect is known.
18
 
19
+ **Version 0.5.0 is experimental.** The API and the weights will change in 0.x releases.
20
  Check its answers against what you know about your data.
21
 
22
  It works without a causal graph, the usual assumption being that every covariate is measured
 
36
  | treatment | binary (two values) or continuous (at least 10 distinct values); continuous values inside its 2-98% quantiles |
37
  | covariates | trained on up to 84; without a graph they must all be pre-treatment (not caused by the treatment) |
38
  | graph | none; a DAG you trust (the treatment's descendants are then dropped); or an Axiom `discover()` result |
39
+ | rows | trained on 128-1536; larger tables are split into disjoint subsets of up to 1536 rows and combined |
40
  | hidden confounders | not handled: no unmeasured common causes of the treatment and the outcome |
41
  | missing values | not supported in the columns used |
42
 
 
95
  an earlier one included, use its tag:
96
 
97
  ```bash
98
+ pip install "git+https://huggingface.co/maxpagels/axiom-effect@v0.5.0" # or an earlier tag, e.g. @v0.1.0
99
  ```
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a45233de83ce1ba99df0f33fdbca52cc5ebb6572b44e895155a7a0c4370cfc71
3
  size 81332280
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a20d2d244a81aeb5f0be3bfebd0f6eec4abb4b78a395924200b428d79c7cacae
3
  size 81332280
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
  [project]
2
  name = "axiom-effect"
3
- version = "0.2.0"
4
  description = "AxiomEffect: causal effects (ATE, ATT, CATE, dose-response) from a table, with or without a causal graph"
5
  readme = "README.md"
6
  authors = [{ name = "Max Pagels" }]
 
1
  [project]
2
  name = "axiom-effect"
3
+ version = "0.5.0"
4
  description = "AxiomEffect: causal effects (ATE, ATT, CATE, dose-response) from a table, with or without a causal graph"
5
  readme = "README.md"
6
  authors = [{ name = "Max Pagels" }]
src/axiom_effect/inference.py CHANGED
@@ -32,7 +32,7 @@ import numpy as np
32
  from .graph import CONF, N_ROLES, ROLE_NAMES, descendants, discovered_roles, is_dag, roles
33
  from .model import MID, N_FEATURES, QUANTILES
34
 
35
- TRAIN_N = (128, 1024) # context rows; larger tables use localized retrieval of TRAIN_N[1] rows
36
  TRAIN_COVARIATES = 84 # covariates seen in training (network accepts any number natively)
37
  WIDE_N = TRAIN_N[1] # kept for compatibility with export_effect_hf / train_effect
38
  NARROW_COVARIATES = 34
 
32
  from .graph import CONF, N_ROLES, ROLE_NAMES, descendants, discovered_roles, is_dag, roles
33
  from .model import MID, N_FEATURES, QUANTILES
34
 
35
+ TRAIN_N = (128, 1536) # context rows; larger tables are split into strata of at most TRAIN_N[1] rows
36
  TRAIN_COVARIATES = 84 # covariates seen in training (network accepts any number natively)
37
  WIDE_N = TRAIN_N[1] # kept for compatibility with export_effect_hf / train_effect
38
  NARROW_COVARIATES = 34