Lines Matching refs:train
4 The sample demonstrates how to train Random Trees classifier
63 def train(self, samples, responses):
68 self.model.train(samples, cv2.CV_ROW_SAMPLE, responses, varType = var_types, params = params)
78 def train(self, samples, responses):
79 self.model.train(samples, responses)
90 def train(self, samples, responses):
97 self.model.train(new_samples, cv2.CV_ROW_SAMPLE, new_responses, varType = var_types, params=params)
110 def train(self, samples, responses):
114 self.model.train(samples, responses, params = params)
124 def train(self, samples, responses):
136 self.model.train(samples, np.float32(new_responses), None, params = params)
170 model.train(samples[:train_n], responses[:train_n])
176 print 'train rate: %f test rate: %f' % (train_rate*100, test_rate*100)