Skip to content

Recommendation model with text embedding as item feature #713

@robin495

Description

@robin495

Hi!

I'm trying to build a model with text embeddings from books as one input parameter along with reading history.

I have done text analysis to get fixed sized embeddings representing each books content. I have a 1x150 dimensional vector with the text embeddings. Is it correct to build the item feature data that is feeded into the dataset.build_item_features on the following format: [item_id:{feature0:embeddingvector[0],feature1:embeddingvector[1]} .. etc]?

Like this example:

embedding_vector = [1,2,1,0]

item_data_test = [['item_id1',{'feature_0':1,'feature_1':2,'feature_2':1,'feature_3':0}]]

item_features_test = dataset.build_item_features(item_data_test, normalize=True)

Thanks,
Robin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions