The Flink document provides a scala example for the SVM algorithm:
val trainingDS: DataSet[LabeledVector] = env.readLibSVM(pathToTrainingFile)
val svm = SVM()
.setBlocks(10)
svm.fit(trainingDS)
How would the fit call be translated into java?
(The explicit expression "svm.fit (trainingDS)" gives a java compiler error:
"The fit method (DataSet, ParameterMap, FitOperation) in the SVM type is not applicable for arguments (DataSet)")
source
share