Skip to content

Commit

Permalink
Add example configs for LOO and S2C exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmondYuan committed Sep 26, 2020
1 parent 3c31f23 commit f810c07
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
51 changes: 51 additions & 0 deletions configs/Example.leave_one_drug_out.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"experiment_id": "Example_LOO",
"experiment_type": "leave one out (w/ single)",
"model": "CellBox",
"sparse_data": false,
"pert_file": "data/pert.csv",
"expr_file": "data/expr.csv",
"node_index_file": "data/node_Index.csv",
"n_protein_nodes": 82,
"n_activity_nodes": 87,
"n_x" : 99,
"trainset_ratio": 0.7,
"validset_ratio": 0.8,
"batchsize": 16,
"add_noise_level": 0,

"envelop_form": "tanh",
"dT": 0.1,
"envelop":0,
"ode_degree": 1,
"ode_solver": "heun",
"ode_last_steps": 2,
"l1lambda": 1e-4,
"l2lambda": 1e-4,

"n_epoch": 10000,
"n_iter": 10000,
"n_iter_buffer":50,
"n_iter_patience":100,

"stages":[{
"nT": 100,
"sub_stages":[
{"lr_val": 0.1,"l1lambda": 0.01, "n_iter_patience":1000},
{"lr_val": 0.01,"l1lambda": 0.01},
{"lr_val": 0.01,"l1lambda": 0.0001},
{"lr_val": 0.001,"l1lambda": 0.00001}
]},{
"nT": 200,
"sub_stages":[
{"lr_val": 0.001,"l1lambda": 0.0001}
]},{
"nT": 400,
"sub_stages":[
{"lr_val": 0.001,"l1lambda": 0.0001}
]}],

"export_verbose": 3,
"model_prefix": "drug",
"ckpt_name": "model11.ckpt"
}
50 changes: 50 additions & 0 deletions configs/Example.single_to_combo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"experiment_id": "Example_S2C",
"experiment_type": "single to combo",
"model": "CellBox",
"sparse_data": false,
"pert_file": "data/pert.csv",
"expr_file": "data/expr.csv",
"node_index_file": "data/node_Index.csv",
"n_protein_nodes": 82,
"n_activity_nodes": 87,
"n_x" : 99,
"trainset_ratio": 0.7,
"validset_ratio": 0.8,
"batchsize": 16,
"add_noise_level": 0,

"envelop_form": "tanh",
"dT": 0.1,
"envelop":0,
"ode_degree": 1,
"ode_solver": "heun",
"ode_last_steps": 2,
"l1lambda": 1e-4,
"l2lambda": 1e-4,

"n_epoch": 10000,
"n_iter": 10000,
"n_iter_buffer":50,
"n_iter_patience":100,

"stages":[{
"nT": 100,
"sub_stages":[
{"lr_val": 0.1,"l1lambda": 0.01, "n_iter_patience":1000},
{"lr_val": 0.01,"l1lambda": 0.01},
{"lr_val": 0.01,"l1lambda": 0.0001},
{"lr_val": 0.001,"l1lambda": 0.00001}
]},{
"nT": 200,
"sub_stages":[
{"lr_val": 0.001,"l1lambda": 0.0001}
]},{
"nT": 400,
"sub_stages":[
{"lr_val": 0.001,"l1lambda": 0.0001}
]}],

"export_verbose": 3,
"ckpt_name": "model11.ckpt"
}

0 comments on commit f810c07

Please sign in to comment.