【发布时间】:2016-05-20 09:45:23
【问题描述】:
我正在尝试在安装了 Spark 1.5.1 的 SparkR 上执行随机森林算法。我不清楚,为什么我会收到错误 -
Error: could not find function "includePackage"
此外,即使我在代码中使用 mapPartitions 函数,我也会收到错误消息 -
Error: could not find function "mapPartitions"
请找到以下代码:
rdd <- SparkR:::textFile(sc, "http://localhost:50070/explorer.html#/Datasets/Datasets/iris.csv",5)
includePackage(sc,randomForest)
rf <- mapPartitions(rdd, function(input) {
## my function code for RF
}
【问题讨论】:
标签: r apache-spark machine-learning sparkr