daft.DataType.embedding#

classmethod DataType.embedding(dtype: daft.datatype.DataType, size: int) daft.datatype.DataType[source]#

Create an Embedding DataType: embeddings are fixed size arrays, where each element in the array has a numeric dtype and each array has a fixed length of size.

Parameters
  • dtype – DataType of each element in the list (must be numeric)

  • size – length of each list