本文整理汇总了Python中Filter.Filter.dataProcess方法的典型用法代码示例。如果您正苦于以下问题:Python Filter.dataProcess方法的具体用法?Python Filter.dataProcess怎么用?Python Filter.dataProcess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Filter.Filter
的用法示例。
在下文中一共展示了Filter.dataProcess方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: confirmPush
# 需要导入模块: from Filter import Filter [as 别名]
# 或者: from Filter.Filter import dataProcess [as 别名]
def confirmPush(self):
limbList = []
for p in self.selection:
if self.selection[p] == 1:
limbList.append(p)
self.pbar.setValue(0)
homedir = os.getcwd()
filt = Filter(homedir)
filt.dataProcess()
self.pbar.setValue(25)
select = RandomSelector(homedir)
select.dataProcess()
self.pbar.setValue(50)
st = StaticAnalyzer(homedir,limbList)
st.dataProcess()
self.pbar.setValue(75)
c = Classifier(homedir)
count,rate,total,result = c.staticClassify()
self.pbar.setValue(100)
reply = QtGui.QMessageBox.question(self, 'Static Analysis Result',"Total number is %d"%(total)+"\nCorrect number is %d"%(count)+"\nCorrect rate is %f"%(100*rate)+"%", QtGui.QMessageBox.Yes)
示例2: Filter
# 需要导入模块: from Filter import Filter [as 别名]
# 或者: from Filter.Filter import dataProcess [as 别名]
import sys
limbDescriptors = ['neck','rshoulder','lshoulder','rarm','larm','rfarm','lfarm',
'rhand','lhand','uspine','lspine','rhip','lhip','rthigh','lthigh',
'rcalf','lcalf','rfoot','lfoot','height']
if __name__ == "__main__":
homedir = sys.path[0]
import platform
p = platform.platform().split('-')[0]
if p == "Windows":
seperator = "\\"
elif p == "Darwin":
seperator = "/"
i = homedir.rfind(seperator)
homedir = homedir[0:i]
print homedir
filt = Filter(homedir)
filt.dataProcess()
select = RandomSelector(homedir)
select.dataProcess()
lists = ['srkrar','srklal']
dy = DynamicAnalyzer(homedir,lists)
dy.dataProcess()
st = StaticAnalyzer(homedir,limbDescriptors)
st.dataProcess()
c = Classifier(homedir)
c.dataProcess()