随机森林允许的最大深度是多少?我正在使用Spark ML

问题描述 投票:0回答:1

我正在使用Spark ML。需要知道允许的最大深度?

随机森林最大限度

我知道默认值是5,但想知道我能走多远

pyspark random-forest apache-spark-ml depth
1个回答
0
投票

sourcecode告诉我们maxDepth是一个Int。您可以通过调用以下方式获取Scala中Int的最大值:

Int.MaxValue

输出:

Int = 2147483647

但是,它在implementation中被限制为= <30​​。

© www.soinside.com 2019 - 2024. All rights reserved.