mgyigit commited on
Commit
e90a921
1 Parent(s): 105474c

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +10 -23
gradio_app.py CHANGED
@@ -11,6 +11,13 @@ import shutil
11
 
12
  class DrugGENConfig:
13
  submodel='DrugGEN'
 
 
 
 
 
 
 
14
  act='relu'
15
  max_atom=45
16
  dim=32
@@ -18,35 +25,15 @@ class DrugGENConfig:
18
  heads=8
19
  mlp_ratio=3
20
  dropout=0.
21
- features=False
22
- sample_num=1000
23
- inf_batch_size=1
24
- protein_data_dir='data/akt'
25
- drug_index='data/drug_smiles.index'
26
- drug_data_dir='data/akt'
27
- mol_data_dir='data/'
28
- log_dir='experiments/logs'
29
- model_save_dir='experiments/models'
30
- inference_model="experiments/models/DrugGEN/"
31
- sample_dir='experiments/samples'
32
- result_dir="experiments/tboard_output"
33
- dataset_file="chembl45_train.pt"
34
- drug_dataset_file="akt_train.pt"
35
- raw_file='data/chembl_train.smi'
36
- drug_raw_file="data/akt_train.smi"
37
- inf_dataset_file="chembl45_test.pt"
38
- inf_drug_dataset_file='akt_test.pt'
39
- inf_raw_file='data/chembl_test.smi'
40
- inf_drug_raw_file="data/akt_test.smi"
41
  log_sample_step=1000
42
- set_seed=False
43
- seed=1
44
 
45
 
46
  class NoTargetConfig(DrugGENConfig):
47
  submodel="NoTarget"
48
  dim=128
49
- inference_model="experiments/models/NoTarget"
50
 
51
 
52
  model_configs = {
 
11
 
12
  class DrugGENConfig:
13
  submodel='DrugGEN'
14
+ inference_model="experiments/models/DrugGEN/"
15
+ sample_num=1000
16
+ inf_dataset_file="chembl45_test.pt"
17
+ inf_raw_file='data/chembl_test.smi'
18
+ inf_batch_size=1
19
+ mol_data_dir='data'
20
+ features=False
21
  act='relu'
22
  max_atom=45
23
  dim=32
 
25
  heads=8
26
  mlp_ratio=3
27
  dropout=0.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  log_sample_step=1000
29
+ set_seed=True
30
+ seed=10
31
 
32
 
33
  class NoTargetConfig(DrugGENConfig):
34
  submodel="NoTarget"
35
  dim=128
36
+ inference_model="experiments/models/NoTarget/"
37
 
38
 
39
  model_configs = {