I started working with spark, specifically with mllib library. several of the functions are limited in scope and private statements. How can I use these functions in my code? Example: KMeans.scala
private[mllib] def pointCost(
centers: TraversableOnce[BreezeVectorWithNorm],
point: BreezeVectorWithNorm): Double =
findClosest(centers, point)._2
If I make a class that extends kmeans and try to use this function appears I can not access it. The following error is shown:
error: method MethodInClassKMeans in class KMeans cannot be accessed in myClass
Can anyone give me any examples of how to get around this? Thanks and regards