0
當我嘗試Apache Spark SVM的多類分類問題時,出現以下錯誤。有人可以解釋我是否有辦法做到SVM多元分類使用Apache星火MLlib我可以使用apache spark支持向量機做多類分類嗎?
Exception in thread "main" org.apache.spark.SparkException: Input validation failed.
at org.apache.spark.mllib.regression.GeneralizedLinearAlgorithm.run(GeneralizedLinearAlgorithm.scala:251)
at org.apache.spark.mllib.regression.GeneralizedLinearAlgorithm.run(GeneralizedLinearAlgorithm.scala:229)
at org.apache.spark.mllib.classification.SVMWithSGD$.train(SVM.scala:219)
at org.apache.spark.mllib.classification.SVMWithSGD$.train(SVM.scala:255)
at org.apache.spark.mllib.classification.SVMWithSGD.train(SVM.scala)
at SVMClass.main(SVMClass.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)