Class DenseVectorFeatureType

java.lang.Object
com.linkedin.feathr.common.types.FeatureType
com.linkedin.feathr.common.types.DenseVectorFeatureType

public class DenseVectorFeatureType extends FeatureType
A FeatureType class for Feathr's DENSE_VECTOR feature type.
  • Field Details

  • Method Details

    • withSize

      public static DenseVectorFeatureType withSize(int size)
      Returns a DenseVectorType for a vector of known fixed size.
      Parameters:
      size - The fixed vector size for features of this type. If a feature's type is DenseVectorFeatureType with size 100, then for all instances of this feature (in all examples/observations) the feature value will always be represented as an array of length 100.
    • withUnknownSize

      public static DenseVectorFeatureType withUnknownSize()
      Returns a DenseVectorType for a vector of unknown/dynamic size. If a feature's type is DenseVectorFeatureType with size UNKNOWN_SIZE, then instances of this feature in various examples/observations may have different sizes.
    • getSize

      public int getSize()
      Returns:
      the size, which might be UNKNOWN_SIZE
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object