Package com.linkedin.feathr.common
Class FeatureTypeConfig
java.lang.Object
com.linkedin.feathr.common.FeatureTypeConfig
- All Implemented Interfaces:
Serializable
This class encapsulates the type definition for a feature. This implementation supports Feathr's high level semantic
type system (e.g. NUMERIC, BOOLEAN, VECTOR) and the new Tensor type system which includes additional metadata such
as category, dimensions, shape, value type and etc.
When the feature type annotation from the feature definition is processed, the following scenarios are expected:
1. No type annotated --> (FeatureType=UNSPECIFIED, TensorType=null)
2. High level semantic NON-TENSOR feature types --> (FeatureType=, TensorType=)
3. Parameterized Tensor type annotated --> (FeatureTypes = TENSOR, TensorType = )
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureTypeConfigstatic final FeatureTypeConfigstatic final FeatureTypeConfigstatic final FeatureTypeConfigstatic final FeatureTypeConfigstatic final FeatureTypeConfig -
Constructor Summary
ConstructorsConstructorDescriptionFeatureTypeConfig(FeatureTypes featureType) Constructs a new instance with the legacyFeatureTypes.FeatureTypeConfig(FeatureTypes featureType, TensorType tensorType, String documentation) Package private constructor where both the legacy type and tensor types are passed in.FeatureTypeConfig(TensorType tensorType) Constructs a new instance with the newTensorType. -
Method Summary
-
Field Details
-
UNDEFINED_TYPE_CONFIG
-
NUMERIC_TYPE_CONFIG
-
DENSE_VECTOR_TYPE_CONFIG
-
TERM_VECTOR_TYPE_CONFIG
-
CATEGORICAL_TYPE_CONFIG
-
CATEGORICAL_SET_TYPE_CONFIG
-
-
Constructor Details
-
FeatureTypeConfig
public FeatureTypeConfig() -
FeatureTypeConfig
Constructs a new instance with the legacyFeatureTypes. The correspondingTensorTypewill be populated -
FeatureTypeConfig
Constructs a new instance with the newTensorType. The corresponding the legacyFeatureTypeswill be populated asFeatureTypes.TENSOR -
FeatureTypeConfig
public FeatureTypeConfig(@Nonnull FeatureTypes featureType, @Nonnull TensorType tensorType, String documentation) Package private constructor where both the legacy type and tensor types are passed in. This constructor is reserved for internal use only and does not provide any of consistency checking between legacy types and TensorType from the other pubic constructors
-
-
Method Details