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

ASF GitHub Bot commented on FLINK-4850:
---------------------------------------

GitHub user thvasilo opened a pull request:

    https://github.com/apache/flink/pull/2658

    [FLINK-4850] [ml]  FlinkML - SVM predict Operation for Vector and not 
LaveledVector

    The current version of the quickstart guide includes erroneous code, this 
changes the function calls to have correct signatures and arguments.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thvasilo/flink quickstart-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2658.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2658
    
----
commit 6104b02244c08d1c8669dd3265516c915d82d8c4
Author: Theodore Vasiloudis <t...@sics.se>
Date:   2016-10-19T12:09:09Z

    Fixed code for FlinkML quickstart guide.

----


> FlinkML - SVM predict Operation for Vector and not LaveledVector
> ----------------------------------------------------------------
>
>                 Key: FLINK-4850
>                 URL: https://issues.apache.org/jira/browse/FLINK-4850
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Thomas FOURNIER
>            Assignee: Theodore Vasiloudis
>
> It seems that evaluate operation is defined for Vector and not LabeledVector.
> It impacts QuickStart guide for FlinkML when using SVM.
> 1- We need to update the documentation as follows:
>  val astroTest:DataSet[(Vector,Double)] = MLUtils
>       .readLibSVM(env, "src/main/resources/svmguide1.t")
>       .map(l => (l.vector, l.label))
> val predictionPairs = svm.evaluate(astroTest)
> 2- Update code such that LabeledVector can be used with evaluate method



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

Reply via email to