Class PowerIterationClusteringModel

All Implemented Interfaces:
Serializable, Saveable, scala.Serializable

public class PowerIterationClusteringModel extends Object implements Saveable, scala.Serializable
Model produced by PowerIterationClustering.

param: k number of clusters param: assignments an RDD of clustering PowerIterationClustering#Assignments

See Also:
  • Constructor Details

  • Method Details

    • load

      public static PowerIterationClusteringModel load(SparkContext sc, String path)
    • k

      public int k()
    • assignments

    • save

      public void save(SparkContext sc, String path)
      Description copied from interface: Saveable
      Save this model to the given path.

      This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/

      The model may be loaded using Loader.load.

      Specified by:
      save in interface Saveable
      sc - Spark context used to save model data.
      path - Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.