facebookresearch / StarSpace

Learning embeddings for classification, retrieval and ranking.
MIT License
3.94k stars 531 forks source link

How is a single feature obtained from "bag of features" for tag prediction #310

Open sidhantls opened 1 year ago

sidhantls commented 1 year ago

An entity is represented with a feature vector and a document is represented as a bag of features. How is the bag of features aggregated to obtain the single document feature for training/evaluation?

The loss function is calculated based on Sim(A, B) where A and B are vectors. Now, if A is a document and B is a single tag, how is the vector for A obtained? According to the paper, A is presented as a bag of features. Are the bag of features aggregated together with a mean operation to obtain A?