我一直在尝试使用CrossValidator我的训练数据,但我总是收到错误消息:"An error occurred while calling o80267.evaluate.: java.lang.IllegalArgumentException: Field "rawPrediction" does not exist.Available fields: label, features, ...
一开始是因为没法直接在pyspark里使用map 来做model predict,但是scala是可以的!如下:
When we use Scala API a recommended way of getting predictions for RDD[LabeledPoint] using DecisionTreeModel is to simply map over RDD:
val la...