Exemplo n.º 1
0
	def __init__(self, hostname='zhoudb', dbname='graphdb', schema=None, fname=None, output_file=None, \
		filter_type=1, is_correct_type=2, rpart_cp_ls=[0.01], loss_matrix_ls=[[0,1,1,0]], prior_prob_ls=[0.5], no_of_buckets=5,\
		need_cal_hg_p_value=0, debug=0, commit=0, report=0):
		"""
		11-09-05 add rpart_cp
		"""
		rpart_prediction.__init__(self, hostname, dbname, schema, fname, fname, \
			filter_type, is_correct_type, 0.01, [0,1,1,0], None, no_of_buckets, \
			need_cal_hg_p_value, debug, commit, report)
		self.fname = fname
		self.output_file = output_file
		self.rpart_cp_ls = rpart_cp_ls
		self.loss_matrix_ls = loss_matrix_ls
		self.prior_prob_ls  = prior_prob_ls
Exemplo n.º 2
0
	def __init__(self, hostname='zhoudb', dbname='graphdb', schema=None, fname=None, output_file=None, \
		filter_type=1, is_correct_type=2, rpart_cp_ls=[0.01], loss_matrix_ls=[[0,1,1,0]], prior_prob_ls=[0.5], \
		training_perc=0.8, no_of_validations=10, type=1, mty_ls=[0], bit_string='11111', need_cal_hg_p_value=0, debug=0, commit=0, report=0):
		"""
		11-19-05 add no_of_validations
		03-17-06
			add type, mty_ls, bit_string
		"""
		rpart_prediction.__init__(self, hostname, dbname, schema, fname, fname, \
			filter_type, is_correct_type, 0.01, [0,1,1,0], None, training_perc, \
			type, 2, bit_string, need_cal_hg_p_value, debug, commit, report)
		self.fname = fname
		self.output_file = output_file
		self.rpart_cp_ls = rpart_cp_ls
		self.loss_matrix_ls = loss_matrix_ls
		self.prior_prob_ls  = prior_prob_ls
		self.type = int(type)
		self.mty_ls = mty_ls
		self.bit_string = bit_string
		self.no_of_validations = int(no_of_validations)	
Exemplo n.º 3
0
    def __init__(self, hostname='zhoudb', dbname='graphdb', schema=None, fname=None, output_file=None, \
     filter_type=1, is_correct_type=2, rpart_cp_ls=[0.01], loss_matrix_ls=[[0,1,1,0]], prior_prob_ls=[0.5], \
     training_perc=0.8, no_of_validations=10, type=1, mty_ls=[0], bit_string='11111', need_cal_hg_p_value=0, debug=0, commit=0, report=0):
        """
		11-19-05 add no_of_validations
		03-17-06
			add type, mty_ls, bit_string
		"""
        rpart_prediction.__init__(self, hostname, dbname, schema, fname, fname, \
         filter_type, is_correct_type, 0.01, [0,1,1,0], None, training_perc, \
         type, 2, bit_string, need_cal_hg_p_value, debug, commit, report)
        self.fname = fname
        self.output_file = output_file
        self.rpart_cp_ls = rpart_cp_ls
        self.loss_matrix_ls = loss_matrix_ls
        self.prior_prob_ls = prior_prob_ls
        self.type = int(type)
        self.mty_ls = mty_ls
        self.bit_string = bit_string
        self.no_of_validations = int(no_of_validations)