Object/Class

com.github.gradientgmm

GradientGaussianMixture

Related Docs: class GradientGaussianMixture | package gradientgmm

Permalink

object GradientGaussianMixture extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GradientGaussianMixture
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(weights: Array[Double], means: Array[Vector], covs: Array[Matrix], optim: Optimizer = new GradientAscent()): GradientGaussianMixture

    Permalink

    Creates a new GradientGaussianMixture instance from arrays of weights, means and covariances

    Creates a new GradientGaussianMixture instance from arrays of weights, means and covariances

    weights

    Array of weights

    means

    Array of mean vectors

    covs

    Array of covariance matrices

    optim

    Optimization algorithm. Defaults to GradintAscent

  5. def apply(weights: Array[Double], means: Array[DenseVector[Double]], covs: Array[DenseMatrix[Double]], optim: Optimizer): GradientGaussianMixture

    Permalink

    Creates a new GradientGaussianMixture instance from arrays of weights, means and covariances

    Creates a new GradientGaussianMixture instance from arrays of weights, means and covariances

    weights

    Array of weights

    means

    Array of mean vectors

    covs

    Array of covariance matrices

    optim

    Optimization algorithm. Defaults to GradintAscent

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fit(data: RDD[Vector], k: Int, optim: Optimizer = new GradientAscent(), batchSize: Option[Int] = None, maxIter: Int = 100, convTol: Double = 1e-6, pointsPerCl: Int = 50, kMeansIters: Int = 20, kMeansTries: Int = 1, seed: Int = 0): GradientGaussianMixture

    Permalink

    Fit a Gaussian Mixture Model (see https://en.wikipedia.org/wiki/Mixture_model#Gaussian_mixture_model).

    Fit a Gaussian Mixture Model (see https://en.wikipedia.org/wiki/Mixture_model#Gaussian_mixture_model). The model is initialized using a K-means algorithm over a small sample and then fitting the resulting parameters to the data using this {GMMOptimization} object

    data

    Data to fit the model

    k

    Number of mixture components (clusters)

    optim

    Optimization algorithm

    batchSize

    number of samples processed per iteration

    maxIter

    maximum number of gradient ascent steps allowed

    convTol

    log-likelihood change tolerance for stopping criteria

    pointsPerCl

    The K-Means model will be trained with k*pointsPerCl points

    kMeansIters

    Number of iterations allowed for the K-means algorithm

    seed

    Random seed

    returns

    Fitted model

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def init(data: RDD[Vector], k: Int, optim: Optimizer = new GradientAscent(), pointsPerCl: Int = 50, nIters: Int = 20, nTries: Int = 1, seed: Long = 0): GradientGaussianMixture

    Permalink

    Creates a new GradientGaussianMixture instance initialized with the results of a K-means model fitted with a sample of the data

    Creates a new GradientGaussianMixture instance initialized with the results of a K-means model fitted with a sample of the data

    data

    training data in the form of an RDD of Spark vectors

    k

    Number of components in the mixture

    optim

    Optimizer object. Defaults to simple gradient ascent

    pointsPerCl

    The K-Means model will be trained with k*pointsPerCl points

    nIters

    Number of iterations allowed for the K-means model

    nTries

    Number of K-means models to try

    seed

    random seed

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped