Packages

class PowerIterationClusteringModel extends Saveable with Serializable

Model produced by PowerIterationClustering.

Annotations
@Since( "1.3.0" )
Source
PowerIterationClustering.scala
Linear Supertypes
Serializable, Serializable, Saveable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PowerIterationClusteringModel
  2. Serializable
  3. Serializable
  4. Saveable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PowerIterationClusteringModel(k: Int, assignments: RDD[Assignment])

    k

    number of clusters

    assignments

    an RDD of clustering PowerIterationClustering#Assignments

    Annotations
    @Since( "1.3.0" )

Value Members

  1. val assignments: RDD[Assignment]
    Annotations
    @Since( "1.3.0" )
  2. val k: Int
    Annotations
    @Since( "1.3.0" )
  3. def save(sc: SparkContext, path: String): Unit

    Save this model to the given path.

    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.

    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.

    Definition Classes
    PowerIterationClusteringModelSaveable
    Annotations
    @Since( "1.4.0" )