Beispiel #1
0
	def run_one(self, c, g):
		param = '-c {0} -g {1} -t {2} {3}'.format(c, g, kernel_type, pass_through_string)
		train_file = dataset_pathname
		test_file = None
		result = plotroc.main(param,fold,train_file,test_file)

		return result
Beispiel #2
0
	def run_one(self, c, w):
		# cmdline = '{0} -c {1} -g {2} -v {3} -t {4} {5} {6}'.format \
			# ('plotroc.py', c, g, fold, kernel_type, dataset_pathname, pass_through_string)
		# print 'cmdLine: ' + cmdline
		# result = Popen(cmdline, shell=True, stdout=PIPE).stdout
		param = '-c {0} -g {1} -t {2} {3}'.format \
			(c, w, kernel_type, pass_through_string)
		train_file = dataset_pathname
		test_file = None
		result = plotroc.main(param,fold,train_file,test_file)
		# for line in result: 
		# 	print line
		return result