Hi, I have never used this code, but ml library depends heavily on Scala, so I wouldn’t recommend using it with Java.
However if you want to go this way (I’m not sure if that’s possible), you would have to pass the implicit parameters manually somehow (I don’t know how to do that from Java). In this case you can take a look at the method’s signature that parameters has a default value and the implicitly passed transformOperation comes from `StochasticOutlierSelection.transformLabeledVectors` or/and (?) `StochasticOutlierSelection.transformVectors`. Piotrek > On 2 Mar 2019, at 12:21, anissa moussaoui <anissa.moussa...@dcbrain.com> > wrote: > > Hello, > > I would like to use the StochasticOutlierSelection algorithm for anomaly > detection in a DataSet in java but the problem the doc is only in scala. > > In java doing : > > StochasticOutlierSelection stochasticOutliers= new > StochasticOutlierSelection(); > > the "tranform" operation of this algorithm take three parameters : training > dataSet, ParameterMap and TransformOperationDataSet on java but in scala doc > take one parameters > https://ci.apache.org/projects/flink/flink-docs-release-1.7/dev/libs/ml/sos.html#parameters > > <https://ci.apache.org/projects/flink/flink-docs-release-1.7/dev/libs/ml/sos.html#parameters>. > It's the same case for other algorithms like KNN un scala take only training > dataset un scala but un java takes three parameters ! > > My question is that i do not know what represent ParameterMap and > TransformOperationDataSet and how i initialize them and in an optimised way > fr my model? > > Do you have dôme exemple for flink ml un java please ? > > > Thank you in advance ! > Best, > > Anissa MOUSSAOUI > > > > <http://www.dcbrain.com/> <https://twitter.com/dcbrain_feed?lang=fr> > <https://www.linkedin.com/company/dcbrain> > <https://www.youtube.com/channel/UCSJrWPBLQ58fHPN8lP_SEGw> > > Pensez à la planète, imprimer ce papier que si nécessaire