Attribute type.
Index of the attribute.
Index of the attribute. None if it is not set.
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
Name of the attribute.
Name of the attribute. None if it is not set.
Copy with a new index.
Copy with a new name.
Copy without the index.
Copy without the name.
Converts to ML metadata
Converts to ML metadata with some existing metadata.
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
:: DeveloperApi :: Abstract class for ML attributes.