EmbeddingFeature#
EmbeddingFeature#
hsfs.embedding.EmbeddingFeature(
    name=None,
    dimension=None,
    similarity_function_type="l2_norm",
    model=None,
    feature_group=None,
    embedding_index=None,
)
Represents an embedding feature.
Arguments
- name str | None: The name of the embedding feature.
- dimension int | None: The dimensionality of the embedding feature.
- similarity_function_type hsfs.embedding.SimilarityFunctionType: The type of similarity function used for the embedding feature. Available functions areL2,COSINE, andDOT_PRODUCT. (default isSimilarityFunctionType.L2).
- model: hsml.model.ModelA Model in hsml.
- feature_group: The feature group object that contains the embedding feature.
- embedding_index: EmbeddingIndexThe index for managing embedding features.
Properties#
dimenstion#
int: The dimensionality of the embedding feature.
embedding_index#
EmbeddingIndex: The index for managing embedding features.
feature_group#
FeatureGroup: The feature group object that contains the embedding feature.
model#
hsml.model.Model: The Model in hsml.
name#
str: The name of the embedding feature.
similarity_function_type#
SimilarityFunctionType: The type of similarity function used for the embedding feature.