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 Twitter: https://twitter.com/holdenkarau