flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas FOURNIER (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-4846) FlinkML - Pass "env" has an implicit parameter in MLUtils.readLibSVM
Date Mon, 17 Oct 2016 13:42:58 GMT
Thomas FOURNIER created FLINK-4846:
--------------------------------------

             Summary: FlinkML - Pass "env" has an implicit parameter in MLUtils.readLibSVM
                 Key: FLINK-4846
                 URL: https://issues.apache.org/jira/browse/FLINK-4846
             Project: Flink
          Issue Type: Improvement
            Reporter: Thomas FOURNIER
            Priority: Minor


With Flink ML you can import file via MLUtils.readLibSVM (import org.apache.flink.ml.MLUtils)

For example:

val env = ExecutionEnvironment.getExecutionEnvironment
val astroTrain: DataSet[LabeledVector] = MLUtils.readLibSVM(env, "src/main/resources/svmguide1")

I'd like to pass "env" as an implicit parameter and use the method as such:

val astroTrain: DataSet[LabeledVector] = MLUtils.readLibSVM("src/main/resources/svmguide1")

Is it ok (not a scala specialist yet :) ) ?




 




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

Mime
View raw message