Class/Object

org.apache.spark.ml.attribute

AttributeGroup

Related Docs: object AttributeGroup | package attribute

Permalink

class AttributeGroup extends Serializable

:: DeveloperApi :: Attributes that describe a vector ML column.

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

Instance Constructors

  1. new AttributeGroup(name: String, attrs: Array[Attribute])

    Permalink

    Creates an attribute group with attributes.

    Creates an attribute group with attributes.

    name

    name of the attribute group

    attrs

    array of attributes. Attributes will be copied with their corresponding indices in the array.

  2. new AttributeGroup(name: String, numAttributes: Int)

    Permalink

    Creates an attribute group knowing only the number of attributes.

    Creates an attribute group knowing only the number of attributes.

    name

    name of the attribute group

    numAttributes

    number of attributes

  3. new AttributeGroup(name: String)

    Permalink

    Creates an attribute group without attribute info.

    Creates an attribute group without attribute info.

    name

    name of the attribute group

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(attrIndex: Int): Attribute

    Permalink

    Gets an attribute by its index.

  5. def apply(attrName: String): Attribute

    Permalink

    Gets an attribute by its name.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val attributes: Option[Array[Attribute]]

    Permalink

    Optional array of attributes.

    Optional array of attributes. At most one of numAttributes and attributes can be defined.

  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getAttr(attrIndex: Int): Attribute

    Permalink

    Gets an attribute by its index.

  13. def getAttr(attrName: String): Attribute

    Permalink

    Gets an attribute by its name.

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasAttr(attrName: String): Boolean

    Permalink

    Test whether this attribute group contains a specific attribute.

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AttributeGroup → AnyRef → Any
  17. def indexOf(attrName: String): Int

    Permalink

    Index of an attribute specified by name.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val name: String

    Permalink

    name of the attribute group (the ML column name)

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. val numAttributes: Option[Int]

    Permalink

    optional number of attributes.

    optional number of attributes. At most one of numAttributes and attrs can be defined.

  24. def size: Int

    Permalink

    Size of the attribute group.

    Size of the attribute group. Returns -1 if the size is unknown.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toMetadata(): Metadata

    Permalink

    Converts to ML metadata

  27. def toMetadata(existingMetadata: Metadata): Metadata

    Permalink

    Converts to ML metadata with some existing metadata.

  28. def toString(): String

    Permalink
    Definition Classes
    AttributeGroup → AnyRef → Any
  29. def toStructField(): StructField

    Permalink

    Converts to a StructField.

  30. def toStructField(existingMetadata: Metadata): StructField

    Permalink

    Converts to a StructField with some existing metadata.

  31. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members