1 Star 0 Fork 0

zhoub86/DeepDIG

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.py 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
hamidkarimi 提交于 2020-04-21 15:58 . Uploading the entire project files
from DeepDIGCode import config
args = config.args
from DeepDIGCode import train_adv
from DeepDIGCode import train_adv_of_adv
from DeepDIGCode import borderline_sample_generation
from DeepDIGCode import characterization
from DeepDIGCode import utils
import time
time_start = time.time()
print ("Running DeepDIG for {} --> {} ...".format(utils.classes['s'],utils.classes['t']))
################# s-->t (Figure 2 in the manuscript) #################
train_adv.train_s_t() # Component (I)
train_adv_of_adv.train_s_t_s() # Component (II)
borderline_sample_generation.deepdig_borderline_samples_s_t() # Component (III)
##################################################
print ("Finished DeepDIG for {} --> {}".format(utils.classes['s'],utils.classes['t']))
print ('='*100)
print ("Running DeepDIG for {} --> {}...".format(utils.classes['t'],utils.classes['s']))
################# t-->s (Figure 2 in the manuscript) #################
train_adv.train_t_s() # Component (I)
train_adv_of_adv.train_t_s_t() # Component (II)
borderline_sample_generation.deepdig_borderline_samples_t_s() # Component (III)
##################################################
print ("Finished DeepDIG for {} --> {}...".format(utils.classes['t'],utils.classes['s']))
print ('='*100)
print ("Running the baselines")
################# Baselines (Section 5.2 in the manuscript) #################
borderline_sample_generation.random_pair_borderline_search() #RPBS
borderline_sample_generation.embedding_nearest_pair_borderline_search() #EPBS
##################################################
print ("Finished the baselines the baselines...")
print ('='*100)
print ("Running the decision boundary characterization ...")
################# Decision boundary chracterization (Section 4 in the manuscript) #################
characterization.trajectory_metrics() # Section 4.1
characterization.linearity_metrics() # Section 4.2
####################################################################################################
print ("Finsihed running the decision boundary characterization")
print("Simulation finished. Total time {} seconds".format(time.time()-time_start))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhoub86/DeepDIG.git
git@gitee.com:zhoub86/DeepDIG.git
zhoub86
DeepDIG
DeepDIG
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385