Attribute type.
Attribute type.
optional index
optional index
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
optional name
optional name
Converts to ML metadata
Converts to ML metadata
Converts to ML metadata with some existing metadata.
Converts to ML metadata with some existing metadata.
Converts to a StructField
.
Converts to a StructField
.
Converts to a StructField
with some existing metadata.
Converts to a StructField
with some existing metadata.
existing metadata to carry over
optional values.
optional values. If set, its size must be 2.
Copy with a new index.
Copy with a new index.
Copy with a new name.
Copy with a new name.
Copy with new values.
Copy with new values.
name for negative
name for positive
Copy without the index.
Copy without the index.
Copy without the name.
Copy without the name.
Copy without the values.
:: DeveloperApi :: A binary attribute.