Spark Multiclass Classification Example

前端 未结 2 1587
渐次进展
渐次进展 2020-12-25 09:35

Do you guys know where can I find examples of multiclass classification in Spark. I spent a lot of time searching in books and in the web, and so far I just know that it is

2条回答
  •  滥情空心
    2020-12-25 10:00

    Are you using Spark 1.6 rather than Spark 2.1? I think the problem is that in spark 2.1 the transform method returns a dataset, which can be implicitly converted to a typed RDD, where as prior to that, it returns a data frame or row.

    Try as a diagnostic specifying the return type of the transform function as RDD[LabeledPoint] and see if you get the same error.

提交回复
热议问题