You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ji...@apache.org on 2018/12/11 04:07:23 UTC

[flink] branch release-1.7 updated: [FLINK-11123][docs] fix the import of the class is missing in ml quick start document.

This is an automated email from the ASF dual-hosted git repository.

jincheng pushed a commit to branch release-1.7
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.7 by this push:
     new f045dfd  [FLINK-11123][docs] fix the import of the class is missing in ml quick start document.
f045dfd is described below

commit f045dfd501343bc9c72c665a6c599e42a221bd67
Author: sunjincheng121 <su...@gmail.com>
AuthorDate: Tue Dec 11 08:37:27 2018 +0800

    [FLINK-11123][docs] fix the import of the class is missing in ml quick start document.
    
    This closes #7269
---
 docs/dev/libs/ml/quickstart.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/dev/libs/ml/quickstart.md b/docs/dev/libs/ml/quickstart.md
index e056b28..2e9a7b9 100644
--- a/docs/dev/libs/ml/quickstart.md
+++ b/docs/dev/libs/ml/quickstart.md
@@ -153,6 +153,8 @@ A conversion can be done using a simple normalizer mapping function:
  
 {% highlight scala %}
 
+import org.apache.flink.ml.math.Vector
+
 def normalizer : LabeledVector => LabeledVector = { 
     lv => LabeledVector(if (lv.label > 0.0) 1.0 else -1.0, lv.vector)
 }