org.apache.spark.ml.attribute

NominalAttribute

class NominalAttribute extends Attribute

:: DeveloperApi :: A nominal attribute.

Annotations
@DeveloperApi()
Source
attributes.scala
Linear Supertypes
Attribute, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NominalAttribute
  2. Attribute
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attrType: AttributeType

    Attribute type.

    Attribute type.

    Definition Classes
    NominalAttributeAttribute
  8. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getNumValues: Option[Int]

    Get the number of values, either from numValues or from values.

    Get the number of values, either from numValues or from values. Return None if unknown.

  14. def getValue(index: Int): String

    Gets a value given its index.

  15. def hasValue(value: String): Boolean

    Tests whether this attribute contains a specific value.

  16. def hashCode(): Int

    Definition Classes
    NominalAttribute → AnyRef → Any
  17. val index: Option[Int]

    optional index

    optional index

    Definition Classes
    NominalAttributeAttribute
  18. def indexOf(value: String): Int

    Index of a specific value.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. 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
    NominalAttributeAttribute
  21. 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
    NominalAttributeAttribute
  22. val isOrdinal: Option[Boolean]

    whether this attribute is ordinal (optional)

  23. val name: Option[String]

    optional name

    optional name

    Definition Classes
    NominalAttributeAttribute
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  27. val numValues: Option[Int]

    optional number of values.

    optional number of values. At most one of numValues and values can be defined.

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

    Definition Classes
    AnyRef
  29. def toMetadata(): Metadata

    Converts to ML metadata

    Converts to ML metadata

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

    Converts to ML metadata with some existing metadata.

    Converts to ML metadata with some existing metadata.

    Definition Classes
    Attribute
  31. def toString(): String

    Definition Classes
    Attribute → AnyRef → Any
  32. def toStructField(): StructField

    Converts to a StructField.

    Converts to a StructField.

    Definition Classes
    Attribute
  33. 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
  34. val values: Option[Array[String]]

    optional values.

    optional values. At most one of numValues and values can be defined.

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withIndex(index: Int): NominalAttribute

    Copy with a new index.

    Copy with a new index.

    Definition Classes
    NominalAttributeAttribute
  39. def withName(name: String): NominalAttribute

    Copy with a new name.

    Copy with a new name.

    Definition Classes
    NominalAttributeAttribute
  40. def withNumValues(numValues: Int): NominalAttribute

    Copy with a new numValues and empty values.

  41. def withValues(first: String, others: String*): NominalAttribute

    Copy with new values and empty numValues.

    Copy with new values and empty numValues.

    Annotations
    @varargs()
  42. def withValues(values: Array[String]): NominalAttribute

    Copy with new values and empty numValues.

  43. def withoutIndex: NominalAttribute

    Copy without the index.

    Copy without the index.

    Definition Classes
    NominalAttributeAttribute
  44. def withoutName: NominalAttribute

    Copy without the name.

    Copy without the name.

    Definition Classes
    NominalAttributeAttribute
  45. def withoutNumValues: NominalAttribute

    Copy without the numValues.

  46. def withoutValues: NominalAttribute

    Copy without the values.

Inherited from Attribute

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members