a b/Scripts/dnngp_runner.py
1
#-*- coding:utf-8 -*-
2
3
import time,sys
4
sys.path.append("..")
5
import config_dnngp, dnngp
6
7
if __name__ == '__main__': 
8
    start_model = time.time()
9
    opt = config_dnngp.get_options()
10
    batch_size = opt.batch_size
11
    lr = opt.lr
12
    epoch = opt.epoch
13
    patience = opt.patience
14
    dropout1 = opt.dropout1
15
    dropout2 = opt.dropout2
16
    SNP = opt.snp
17
    pheno = opt.pheno
18
    output = opt.output
19
    SEED = opt.seed
20
    CV = opt.cv
21
    part = opt.part
22
    NMearlystopping = opt.earlystopping
23
    dnngp.prepare() 
24
    dnngp.main(SNP, pheno, batch_size, lr, epoch, patience, dropout1, dropout2, output, SEED, CV, part, NMearlystopping)
25
    end_model = time.time()
26
    print('Running time: %s Seconds' % (end_model - start_model))