Package org.apache.spark.ml.attribute
Interface AttributeFactory
public interface AttributeFactory
Trait for ML attribute factories.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeStructField
(StructField field, boolean preserveName) Creates anAttribute
from aStructField
instance, optionally preserving name.fromMetadata
(Metadata metadata) Creates anAttribute
from aMetadata
instance.fromStructField
(StructField field) Creates anAttribute
from aStructField
instance.
-
Method Details
-
decodeStructField
Creates anAttribute
from aStructField
instance, optionally preserving name.- Parameters:
field
- (undocumented)preserveName
- (undocumented)- Returns:
- (undocumented)
-
fromMetadata
Creates anAttribute
from aMetadata
instance.- Parameters:
metadata
- (undocumented)- Returns:
- (undocumented)
-
fromStructField
Creates anAttribute
from aStructField
instance.- Parameters:
field
- (undocumented)- Returns:
- (undocumented)
-