Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark

    Core Spark functionality.

    Core Spark functionality. org.apache.spark.SparkContext serves as the main entry point to Spark, while org.apache.spark.rdd.RDD is the data type representing a distributed collection, and provides most parallel operations.

    In addition, org.apache.spark.rdd.PairRDDFunctions contains operations available only on RDDs of key-value pairs, such as groupByKey and join; org.apache.spark.rdd.DoubleRDDFunctions contains operations available only on RDDs of Doubles; and org.apache.spark.rdd.SequenceFileRDDFunctions contains operations available on RDDs that can be saved as SequenceFiles. These operations are automatically available on any RDD of the right type (e.g. RDD[(Int, Int)] through implicit conversions.

    Java programmers should reference the org.apache.spark.api.java package for Spark programming APIs in Java.

    Classes and methods marked with Experimental are user-facing features which have not been officially adopted by the Spark project. These are subject to change or removal in minor releases.

    Classes and methods marked with Developer API are intended for advanced users want to extend Spark through lower level interfaces. These are subject to changes or removal in minor releases.

    Definition Classes
    apache
  • package ml

    DataFrame-based machine learning APIs to let users quickly assemble and configure practical machine learning pipelines.

    DataFrame-based machine learning APIs to let users quickly assemble and configure practical machine learning pipelines.

    Definition Classes
    spark
  • package attribute

    The ML pipeline API uses DataFrames as ML datasets.

    ML attributes

    The ML pipeline API uses DataFrames as ML datasets. Each dataset consists of typed columns, e.g., string, double, vector, etc. However, knowing only the column type may not be sufficient to handle the data properly. For instance, a double column with values 0.0, 1.0, 2.0, ... may represent some label indices, which cannot be treated as numeric values in ML algorithms, and, for another instance, we may want to know the names and types of features stored in a vector column. ML attributes are used to provide additional information to describe columns in a dataset.

    ML columns

    A column with ML attributes attached is called an ML column. The data in ML columns are stored as double values, i.e., an ML column is either a scalar column of double values or a vector column. Columns of other types must be encoded into ML columns using transformers. We use Attribute to describe a scalar ML column, and AttributeGroup to describe a vector ML column. ML attributes are stored in the metadata field of the column schema.

    Definition Classes
    ml
  • Attribute
  • AttributeGroup
  • AttributeType
  • BinaryAttribute
  • NominalAttribute
  • NumericAttribute
  • UnresolvedAttribute

class NumericAttribute extends Attribute

A numeric attribute with optional summary statistics.

Source
attributes.scala
Linear Supertypes
Attribute, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumericAttribute
  2. Attribute
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attrType: AttributeType

    Attribute type.

    Attribute type.

    Definition Classes
    NumericAttributeAttribute
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(other: Any): Boolean
    Definition Classes
    NumericAttribute → AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    NumericAttribute → AnyRef → Any
  11. val index: Option[Int]

    Index of the attribute.

    Index of the attribute. None if it is not set.

    Definition Classes
    NumericAttributeAttribute
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isNominal: Boolean

    Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.

    Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.

    Definition Classes
    NumericAttributeAttribute
  14. def isNumeric: Boolean

    Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.

    Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.

    Definition Classes
    NumericAttributeAttribute
  15. val max: Option[Double]
  16. val min: Option[Double]
  17. val name: Option[String]

    Name of the attribute.

    Name of the attribute. None if it is not set.

    Definition Classes
    NumericAttributeAttribute
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. val sparsity: Option[Double]
  22. val std: Option[Double]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toMetadata(): Metadata

    Converts to ML metadata

    Converts to ML metadata

    Definition Classes
    Attribute
  25. def toMetadata(existingMetadata: Metadata): Metadata

    Converts to ML metadata with some existing metadata.

    Converts to ML metadata with some existing metadata.

    Definition Classes
    Attribute
  26. def toString(): String
    Definition Classes
    Attribute → AnyRef → Any
  27. def toStructField(): StructField

    Converts to a StructField.

    Converts to a StructField.

    Definition Classes
    Attribute
  28. def toStructField(existingMetadata: Metadata): StructField

    Converts to a StructField with some existing metadata.

    Converts to a StructField with some existing metadata.

    existingMetadata

    existing metadata to carry over

    Definition Classes
    Attribute
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def withIndex(index: Int): NumericAttribute

    Copy with a new index.

    Copy with a new index.

    Definition Classes
    NumericAttributeAttribute
  33. def withMax(max: Double): NumericAttribute

    Copy with a new max value.

  34. def withMin(min: Double): NumericAttribute

    Copy with a new min value.

  35. def withName(name: String): NumericAttribute

    Copy with a new name.

    Copy with a new name.

    Definition Classes
    NumericAttributeAttribute
  36. def withSparsity(sparsity: Double): NumericAttribute

    Copy with a new sparsity.

  37. def withStd(std: Double): NumericAttribute

    Copy with a new standard deviation.

  38. def withoutIndex: NumericAttribute

    Copy without the index.

    Copy without the index.

    Definition Classes
    NumericAttributeAttribute
  39. def withoutMax: NumericAttribute

    Copy without the max value.

  40. def withoutMin: NumericAttribute

    Copy without the min value.

  41. def withoutName: NumericAttribute

    Copy without the name.

    Copy without the name.

    Definition Classes
    NumericAttributeAttribute
  42. def withoutSparsity: NumericAttribute

    Copy without the sparsity.

  43. def withoutStd: NumericAttribute

    Copy without the standard deviation.

  44. def withoutSummary: NumericAttribute

    Copy without summary statistics.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Attribute

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members