Exemplo n.º 1
0
    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
Exemplo n.º 2
0
  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