-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synthetic experiments: power-tie, power-dp (#5)
* add experiment config for power-tie analysis * add experiment config for power-dp analysis * replace print with `logging` messages
- Loading branch information
1 parent
f94bc5d
commit d0efbad
Showing
4 changed files
with
164 additions
and
30 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
experiments/config/experiment/power_and_type_one_error_dp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# @package _global_ | ||
name: "Power and type one error analyses" | ||
|
||
# initial_seed is used to generate seed for each run | ||
initial_seed: 123 | ||
|
||
data: | ||
ndim: 10 | ||
scale_t: 10.0 | ||
shape_t: 3.0 | ||
propensity: "linear" | ||
standardize_features: False | ||
|
||
defaults: | ||
- /[email protected]_robust: pooled_iptw | ||
- /[email protected]_naive: pooled_iptw | ||
- /[email protected]_robust: fl_iptw | ||
- /[email protected]_naive: fl_iptw | ||
- _self_ | ||
|
||
models: | ||
IPTW_robust: | ||
variance_method: "robust" | ||
IPTW_naive: | ||
variance_method: "naive" | ||
FedECA_robust: | ||
ndim: ${data.ndim} | ||
num_rounds_list: [10, 10] | ||
fedeca_path: "/home/owkin/fedeca/" | ||
robust: True | ||
FedECA_naive: | ||
ndim: ${data.ndim} | ||
num_rounds_list: [10, 10] | ||
fedeca_path: "/home/owkin/fedeca/" | ||
robust: False | ||
|
||
# config fit FedECA | ||
fit_fedeca: | ||
n_clients: 3 | ||
split_method: "split_control_over_centers" | ||
split_method_kwargs: {"treatment_info": "treatment_allocation"} | ||
dp_max_grad_norm: 1. | ||
dp_target_delta: 0.001 | ||
dp_propensity_model_training_params: {"batch_size": 100, "num_updates": 100} | ||
dp_propensity_model_optimizer_kwargs: {"lr": 1e-2} | ||
backend_type: "simu" | ||
|
||
models_common: | ||
treated_col: "treatment_allocation" | ||
event_col: "event" | ||
duration_col: "time" | ||
|
||
parameters: | ||
n_samples: 10000 | ||
n_reps: 1000 | ||
return_propensities: False | ||
return_weights: False | ||
|
||
hydra: | ||
sweep: | ||
dir: "/home/owkin/project/results_experiments/power_and_type_one_error_dp" | ||
sweeper: | ||
params: | ||
data.cate: 1.0,0.4 | ||
data.overlap: -1,3 | ||
+fit_fedeca.dp_target_epsilon: 0.1, 10, 20, 30, 40, 50 |
62 changes: 62 additions & 0 deletions
62
experiments/config/experiment/power_and_type_one_error_n_ties.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# @package _global_ | ||
name: "Power and type one error analyses" | ||
|
||
# initial_seed is used to generate seed for each run | ||
initial_seed: 42 | ||
|
||
data: | ||
ndim: 10 | ||
scale_t: 10.0 | ||
shape_t: 3.0 | ||
propensity: "linear" | ||
standardize_features: False | ||
|
||
defaults: | ||
- /[email protected]_robust: pooled_iptw | ||
- /[email protected]_naive: pooled_iptw | ||
- /[email protected]_robust: fl_iptw | ||
- /[email protected]_naive: fl_iptw | ||
- _self_ | ||
|
||
models: | ||
IPTW_robust: | ||
variance_method: "robust" | ||
IPTW_naive: | ||
variance_method: "naive" | ||
FedECA_robust: | ||
ndim: ${data.ndim} | ||
num_rounds_list: [10, 10] | ||
fedeca_path: "/home/owkin/fedeca/" | ||
robust: True | ||
FedECA_naive: | ||
ndim: ${data.ndim} | ||
num_rounds_list: [10, 10] | ||
fedeca_path: "/home/owkin/fedeca/" | ||
robust: False | ||
|
||
# config fit FedECA | ||
fit_fedeca: | ||
n_clients: 3 | ||
split_method: "split_control_over_centers" | ||
split_method_kwargs: {"treatment_info": "treatment_allocation"} | ||
backend_type: "simu" | ||
|
||
models_common: | ||
treated_col: "treatment_allocation" | ||
event_col: "event" | ||
duration_col: "time" | ||
|
||
parameters: | ||
n_samples: 700 | ||
n_reps: 1000 | ||
return_propensities: False | ||
return_weights: False | ||
|
||
hydra: | ||
sweep: | ||
dir: "/home/owkin/project/results_experiments/power_and_type_one_error_n_ties" | ||
sweeper: | ||
params: | ||
data.cate: 1.0,0.4 | ||
data.overlap: -1,3 | ||
++data.percent_ties: null, 0.05, 0.1, 0.25, 0.5, 0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters