File tree Expand file tree Collapse file tree 1 file changed +2
-44
lines changed Expand file tree Collapse file tree 1 file changed +2
-44
lines changed Original file line number Diff line number Diff line change @@ -334,55 +334,13 @@ def summary(self):
334334 return KMeansSummary (self ._call_java ("summary" ))
335335
336336
337- class KMeansSummary (JavaWrapper ):
337+ class KMeansSummary (ClusteringSummary ):
338338 """
339339 Summary of KMeans.
340340
341341 .. versionadded:: 2.1.0
342342 """
343-
344- def __init__ (self , _java_summary ):
345- super (KMeansSummary , self ).__init__ (_java_summary )
346-
347- @property
348- @since ("2.1.0" )
349- def clusterSizes (self ):
350- """
351- Size of (number of data points in) each cluster.
352- """
353- return self ._call_java ("clusterSizes" )
354-
355- @property
356- @since ("2.1.0" )
357- def predictions (self ):
358- """
359- return the DataFrame of predictions that is produced by KMeansModel.transform().
360- """
361- return self ._call_java ("predictions" )
362-
363- @property
364- @since ("2.1.0" )
365- def predictionCol (self ):
366- """
367- Name for column of predicted clusters.
368- """
369- return self ._call_java ("predictionCol" )
370-
371- @property
372- @since ("2.1.0" )
373- def featuresCol (self ):
374- """
375- Name for column of features.
376- """
377- return self ._call_java ("featuresCol" )
378-
379- @property
380- @since ("2.1.0" )
381- def k (self ):
382- """
383- Number of clusters.
384- """
385- return self ._call_java ("k" )
343+ pass
386344
387345
388346@ignore_unicode_prefix
You can’t perform that action at this time.
0 commit comments