[ 
https://issues.apache.org/jira/browse/FLINK-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14983802#comment-14983802
 ] 

Chiwan Park commented on FLINK-2948:
------------------------------------

Hi [~lequocdo], thanks for reporting the problem. But I think that this is not 
problem of the documentation. If you are using Flink 0.9.1, you have to follow 
the documentation for Flink 0.9.1 
(https://ci.apache.org/projects/flink/flink-docs-release-0.9/libs/ml/svm.html). 
In the documentation, the example looks good to me.

> Cannot compile example code in SVM quickstart guide
> ---------------------------------------------------
>
>                 Key: FLINK-2948
>                 URL: https://issues.apache.org/jira/browse/FLINK-2948
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation, Machine Learning Library
>    Affects Versions: 0.9.1
>            Reporter: Do Le Quoc
>            Priority: Minor
>              Labels: newbie
>
> Cannot compile example SVM code 
> (https://ci.apache.org/projects/flink/flink-docs-master/libs/ml/svm.html).    
> {quote}
> [error]  found   : 
> org.apache.flink.api.scala.DataSet[org.apache.flink.ml.common.LabeledVector] 
> [error]  required: 
> org.apache.flink.api.scala.DataSet[(org.apache.flink.ml.math.Vector, Double)] 
> [error] Error occurred in an application involving default arguments. [error] 
>        val predictionDS: DataSet[(Vector, Double)] = svm.predict(testingDS) 
> [error]                                                   ^
> [error] one error found [error] (compile:compile) Compilation failed  
> {quote}
> *Fix:*  
> -deleted-val predictionDS: DataSet[(Vector, Double)] = 
> svm.predict(testingDS)-deleted-
> +inserted+val predictionDS: DataSet[LabeledVector] = 
> svm.predict(testingDS)+inserted+



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to