GradientBoostedTree
参考文档。
train(input: RDD[LabeledPoint], boostingStrategy: BoostingStrategy): GradientBoostedTreesModel
Method to train a gradient boosting model.
input Training dataset: RDD of org.apache.spark.mllib.regression.LabeledPoint. For classification, labels should take values {0, 1, ..., numClasses-1}. For regression, labels are real numbers.
boostingStrategy Configuration options for the boosting algorithm.
returns GradientBoostedTreesModel that can be used for prediction.测试代码,使用kyposis数据集。

这篇博客介绍了Spark MLlib中GradientBoostedTree和随机森林的基础知识,结合参考文档深入理解,并提供了使用Kyposis数据集进行测试的代码示例。
1万+

被折叠的 条评论
为什么被折叠?



