コード例 #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
コード例 #2
0
ファイル: random_forest.py プロジェクト: rcurtin/benchmarks
  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