Java Exapmle of Stochastic Outlier Selection

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Java Exapmle of Stochastic Outlier Selection

James.Y.Yang (g-mis.cncd02.Newegg) 42035

Hi,

 

I want to use Stochastic Outlier Selection in ML Library. But after I read the document [1] , I find there is not Java example. Sorry I am not familiar with Scala

So I appreciate that someone can share a Java example.

 

[1] https://ci.apache.org/projects/flink/flink-docs-release-1.7/dev/libs/ml/sos.html

 

Best Regards,

James Yang

Reply | Threaded
Open this post in threaded view
|

Re: Java Exapmle of Stochastic Outlier Selection

Rong Rong
Hi James,

Usually Flink ML is highly integrated with Scala. I did poke around to and try to make the example work in Java and it does require a significant amount of effort, but you can try:

First the implicit type parameters needs to be passed over to the execution environment to generate the DataSet appropriately. I found this link [1] might be useful depending on your use case.
Next you need to extract the TransformDataSetOperation from the StochasticOutlierSelection method since it's also an implicit argument to the transform method.

--
Rong



On Sat, Jan 12, 2019 at 12:39 AM James.Y.Yang (g-mis.cncd02.Newegg) 42035 <[hidden email]> wrote:

Hi,

 

I want to use Stochastic Outlier Selection in ML Library. But after I read the document [1] , I find there is not Java example. Sorry I am not familiar with Scala

So I appreciate that someone can share a Java example.

 

[1] https://ci.apache.org/projects/flink/flink-docs-release-1.7/dev/libs/ml/sos.html

 

Best Regards,

James Yang