Github user BertrandDechoux commented on the pull request:

    https://github.com/apache/spark/pull/8849#issuecomment-142186614
  
    I think I still need to change the method signature.
    Predict on a RDD is the following
    > def predict(points: JavaRDD[Vector]): JavaRDD[java.lang.Integer]
    
    Distances on a RDD is the following
    > def distanceToCenters(points: RDD[Vector]): RDD[(Vector, 
Iterable[(VectorWithNorm, Double)])]
    
    I am more confortable with having the input point in the output but predict 
does no work like that.
    If you say the predict template should be followed, I will change the 
method signature.
    
    The second aspect is that I may want to output cluster indices instead of 
their locations.
    
    I would be glad to have your point of view @mengxr.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to