org.apache.spark.ml.attribute

AttributeGroup

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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)

    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)

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(attrIndex: Int): Attribute

    Gets an attribute by its index.

  7. def apply(attrName: String): Attribute

    Gets an attribute by its name.

  8. final def asInstanceOf[T0]: T0

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

    Optional array of attributes.

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

  10. def clone(): AnyRef

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

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

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

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

    Gets an attribute by its index.

  15. def getAttr(attrName: String): Attribute

    Gets an attribute by its name.

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

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

    Test whether this attribute group contains a specific attribute.

  18. def hashCode(): Int

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

    Index of an attribute specified by name.

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. val name: String

    name of the attribute group (the ML column name)

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

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. val numAttributes: Option[Int]

    optional number of attributes.

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

  26. def size: Int

    Size of the attribute group.

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

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

    Definition Classes
    AnyRef
  28. def toMetadata(): Metadata

    Converts to ML metadata

  29. def toMetadata(existingMetadata: Metadata): Metadata

    Converts to ML metadata with some existing metadata.

  30. def toString(): String

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

    Converts to a StructField.

  32. def toStructField(existingMetadata: Metadata): StructField

    Converts to a StructField with some existing metadata.

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members