Download 17/replication_package/code/lib/experiment_specs/varsets.py from chuxuan/REPRO-Bench: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/datasets/chuxuan/REPRO-Bench/resolve/main/17/replication_package/code/lib/experiment_specs/varsets.py
- Command line
-
hf download hf://datasets/chuxuan/REPRO-Bench/17/replication_package/code/lib/experiment_specs/varsets.py
-
curl -L -o varsets.py https://huggingface.co/datasets/chuxuan/REPRO-Bench/resolve/main/17/replication_package/code/lib/experiment_specs/varsets.py
648 Bytes
| from lib.outcome_index.outcome_index import OutcomeIndex | |
| #indices used during stratification for treatment assignment. We construct these outside the main index construction function | |
| # because the main function normalizes on the control group values at endline. | |
| stratification_indices = ["RestrictionIndex","AddictionIndex"] | |
| index_class_dict ={ | |
| "RestrictionIndex" : | |
| OutcomeIndex(name="RestrictionIndex", | |
| pos_outcomes=["InterestInLimits"], | |
| neg_outcomes=["IdealUseChange"], | |
| moderators=[]), | |
| "AddictionIndex": | |
| OutcomeIndex(name="AddictionIndex", | |
| pos_outcomes=["AddictionAvg",], | |
| neg_outcomes=["LifeBetter"], | |
| moderators=[]), | |
| } |