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 <[email protected]> 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 < > [email protected]> 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 >
