Graphlab - 如何在随机森林分类器中设置树参数的数量

Graphlab - How to set the number of trees parameter in random forest classifier

我正在训练随机森林分类器:

model = gl.random_forest_classifier.create(train, target = 'label',row_subsample = 0.5, column_subsample = 0.75, validation_set=validation, metric="auc",  max_iterations=10, max_depth = 15)

如何设置树数参数?这是一个二进制分类问题,文档说:

max_iterations : The maximum number of iterations to perform. For multi-class classification with K classes, each iteration will create K-1 trees.

"The num_trees keyword argument is deprecated. Please use the max_iterations argument instead. Any value provided for num_trees will be used in place of max_iterations."

所以,调整max_iterations也就是调整树的数量参数。