Class

org.apache.spark.mllib.stat

MultivariateOnlineSummarizer

Related Doc: package stat

Permalink

class MultivariateOnlineSummarizer extends MultivariateStatisticalSummary with Serializable

:: DeveloperApi :: MultivariateOnlineSummarizer implements MultivariateStatisticalSummary to compute the mean, variance, minimum, maximum, counts, and nonzero counts for instances in sparse or dense vector format in an online fashion.

Two MultivariateOnlineSummarizer can be merged together to have a statistical summary of the corresponding joint dataset.

A numerically stable algorithm is implemented to compute the mean and variance of instances: Reference: variance-wiki Zero elements (including explicit zero values) are skipped when calling add(), to have time complexity O(nnz) instead of O(n) for each column.

For weighted instances, the unbiased estimation of variance is defined by the reliability weights: see Reliability weights (Wikipedia).

Annotations
@Since( "1.1.0" ) @DeveloperApi()
Source
MultivariateOnlineSummarizer.scala
Linear Supertypes
Serializable, Serializable, MultivariateStatisticalSummary, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MultivariateOnlineSummarizer
  2. Serializable
  3. Serializable
  4. MultivariateStatisticalSummary
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MultivariateOnlineSummarizer()

    Permalink

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 add(sample: Vector): MultivariateOnlineSummarizer.this.type

    Permalink

    Add a new sample to this summarizer, and update the statistical summary.

    Add a new sample to this summarizer, and update the statistical summary.

    sample

    The sample in dense/sparse vector format to be added into this summarizer.

    returns

    This MultivariateOnlineSummarizer object.

    Annotations
    @Since( "1.1.0" )
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def count: Long

    Permalink

    Sample size.

    Sample size.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  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. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def max: Vector

    Permalink

    Maximum value of each dimension.

    Maximum value of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  15. def mean: Vector

    Permalink

    Sample mean of each dimension.

    Sample mean of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  16. def merge(other: MultivariateOnlineSummarizer): MultivariateOnlineSummarizer.this.type

    Permalink

    Merge another MultivariateOnlineSummarizer, and update the statistical summary.

    Merge another MultivariateOnlineSummarizer, and update the statistical summary. (Note that it's in place merging; as a result, this object will be modified.)

    other

    The other MultivariateOnlineSummarizer to be merged.

    returns

    This MultivariateOnlineSummarizer object.

    Annotations
    @Since( "1.1.0" )
  17. def min: Vector

    Permalink

    Minimum value of each dimension.

    Minimum value of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def normL1: Vector

    Permalink

    L1 norm of each dimension.

    L1 norm of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.2.0" )
  20. def normL2: Vector

    Permalink

    L2 (Euclidian) norm of each dimension.

    L2 (Euclidian) norm of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.2.0" )
  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def numNonzeros: Vector

    Permalink

    Number of nonzero elements in each dimension.

    Number of nonzero elements in each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def variance: Vector

    Permalink

    Unbiased estimate of sample variance of each dimension.

    Unbiased estimate of sample variance of each dimension.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
    Annotations
    @Since( "1.1.0" )
  27. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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