Hey, You could also take a look at MLeap, which provides a runtime for any Spark transformer and does not have any dependencies on a SparkContext or Spark libraries (excepting MLlib-local for linear algebra).
https://github.com/combust/mleap On Tue, Jan 31, 2017 at 2:33 AM, Aseem Bansal <asmbans...@gmail.com> wrote: > If you want to predict using dataset then transform is the way to go. If > you want to predict on vectors then you will have to wait on this issue to > be completed https://issues.apache.org/jira/browse/SPARK-10413 > > On Tue, Jan 31, 2017 at 3:01 PM, Holden Karau <hol...@pigscanfly.ca> > wrote: > >> You most likely want the transform function on KMeansModel (although that >> works on a dataset input rather than a single element at a time). >> >> On Tue, Jan 31, 2017 at 1:24 AM, Madabhattula Rajesh Kumar < >> mrajaf...@gmail.com> wrote: >> >>> Hi, >>> >>> I am not able to find predict method on "ML" version of Kmeans. >>> >>> Mllib version has a predict method. KMeansModel.predict(point: Vector) >>> . >>> How to predict the cluster point for new vectors in ML version of kmeans >>> ? >>> >>> Regards, >>> Rajesh >>> >> >> >> >> -- >> Cell : 425-233-8271 <(425)%20233-8271> >> Twitter: https://twitter.com/holdenkarau >> > >