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:31:01 UTC
[flink] branch release-1.6 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.6
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.6 by this push:
new d1a489f [FLINK-11123][docs] fix the import of the class is missing in ml quick start document.
d1a489f is described below
commit d1a489f9eda733d914a885cd593b26f336a4d380
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/dev/libs/ml/quickstart.md b/docs/dev/libs/ml/quickstart.md
index ea6f804..fdd6650 100644
--- a/docs/dev/libs/ml/quickstart.md
+++ b/docs/dev/libs/ml/quickstart.md
@@ -134,6 +134,7 @@ We can simply import the dataset then using:
{% highlight scala %}
import org.apache.flink.ml.MLUtils
+import org.apache.flink.ml.math.Vector
val astroTrain: DataSet[LabeledVector] = MLUtils.readLibSVM(env, "/path/to/svmguide1")
val astroTest: DataSet[(Vector, Double)] = MLUtils.readLibSVM(env, "/path/to/svmguide1.t")