Class AutoTensorizableTypes

java.lang.Object
com.linkedin.feathr.common.AutoTensorizableTypes

@Experimental public class AutoTensorizableTypes extends Object
Mappings from Feathr FeatureTypes to their "auto-tensorized" tensor type. In other words, when the feature owner does not specify a tensor type, Feathr will pick one based on the feature's FeatureType. These mappings define how Feathr will represent features having types NUMERIC, CATEGORICAL, etc., as Quince tensors.
  • Method Details

    • getDefaultTensorType

      public static Optional<TensorType> getDefaultTensorType(FeatureTypes featureType)
      Get the default tensor type for the given Feathr FeatureType, if there is one.
      Parameters:
      featureType - the Feathr featureType
      Returns:
      the automatically assigned Quince TensorType for the given Feathr FeatureType, if one exists