zx.zuixiao(path, guanjianzi=s2_1, xiaxian=10) # bl.kongwenjian(path,guanjianzi=s2_1)#把大小为0的文件都删除了 # bl.pingheng(path,guanjianzi= s2_1)#把标签全部是0的文件都移动到桌面去 # bl.pingheng_1(path,guanjianzi=s2_1)#把标签全部是1的文件都移动到桌面去 zhengli.zhengli(path, guanjianzi_1='log_zhengguihua_2_biaoqian', guanjianzi_2='mizhichuli_zhengguihua_2_biaoqian' ) #把opentest,closetest,整理出来 #只切割学习数据 path_2 = os.path.join(path, 'data', 'fbank', 'xuexi') for wenjian in os.listdir(path_2): #因为特征值里面0太多了,要切掉一些,这个会把文件切成不同小段 path_1 = os.path.join(path_2, wenjian) qie.qiexiao(path_1, wenjian, path_2) bl.pingheng_houqie(path_2) #把标签全部是0的文件都移动到桌面去,因为切割之后会留下很多标签全是0的文件 # s2_1_1 = s2_1 + '_pinghen' # for wenjian in os.listdir(path):#因为特征值里面0太多了,要切掉一些,这个会把文件切成不同小段 # path_1 = os.path.join(path, wenjian, s2_1) # path_new = os.path.join(path, wenjian, s2_1_1) # mu.mkdir(path_new) # for wenjian_1 in os.listdir(path_1): # path_2 = os.path.join(path_1, wenjian_1) # qie.qiexiao(path_2,wenjian_1,path_new) # bl.pingheng(path,guanjianzi = s2_1_1)#把标签全部是0的文件都移动到桌面去,因为切割之后会留下很多标签全是0的文件 zx.zuixiao(path, guanjianzi=s2_1_1, xiaxian=10) # zhengli.zhengli(path,guanjianzi_1 = s1_1_1,guanjianzi_2 = s2_1_1)#把opentest,closetest,整理出来
pzs.dabiaoqian(path, guanjianzi_1=s2, guanjianzi_2=s2 + '_' + 'biaoqian') zx.zuixiao(path, guanjianzi=s2 + '_' + 'biaoqian', xiaxian=10) bl.kongwenjian(path, guanjianzi=s2 + '_' + 'biaoqian') #把大小为0的文件都删除了 bl.pingheng_2(path, guanjianzi=s2 + '_' + 'biaoqian') #把标签全部是0的文件都移动到桌面去 bl.pingheng_3(path, guanjianzi=s2 + '_' + 'biaoqian') #把标签全部是1的文件都移动到桌面去 s2 = s2 + '_' + 'biaoqian' dataname_2 = dataname_2 + '_' + 'biaoqian' for wenjian in os.listdir(path): #因为特征值里面0太多了,要切掉一些,这个会把文件切成不同小段 path_1 = os.path.join(path, wenjian, s2) path_new = os.path.join(path, wenjian, s2 + '_' + 'pingheng') mu.mkdir(path_new) for wenjian_1 in os.listdir(path_1): path_2 = os.path.join(path_1, wenjian_1) qie.qiexiao(path_2, wenjian_1, path_new) bl.pingheng_2(path, guanjianzi=s2 + '_' + 'pingheng') #把标签全部是0的文件都移动到桌面去,因为切割之后会留下很多标签全是0的文件 zx.zuixiao(path, guanjianzi=s2 + '_' + 'pingheng', xiaxian=10) s2 = s2 + '_' + 'pingheng' dataname_2 = dataname_2 + '_' + 'pingheng' # zhengli.zhengli(path,guanjianzi_1 = s1,guanjianzi_2 = s2,dataname_1 = dataname_1,dataname_2 =dataname_2)#把opentest,closetest,整理出来 # zhengli_mizhichuli.zhengli(path,guanjianzi_2 = s2,dataname_1 = dataname_1,dataname_2=dataname_2) zhengli_1.zhengli(path, guanjianzi_2=s2, dataname_1=dataname_1, dataname_2=dataname_2, guanjianzi_3=jieweiguanjianzi)