def BuildModel(self, data, labels, options): mVote = MajorityVote() randomForest = RandomForest(self.form, self.numTrees) randomForest.set_combination_rule(mVote) randomForest.set_labels(labels) randomForest.train(data) return randomForest