Questions tagged [vector-space-models]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
12 views

How to represent a document in test data with the Document-Term Matrix created from the training set?

I build a classifier of documents using the vector representation of each document in the training set (i.e a row in the Document-Term Matrix). Now I need to test the model on the test data. But how ...
1
vote
0answers
3k views

Getting 'ValueError: setting an array element with a sequence.' when attempting to fit mixed-type data

I have already seen this, this and this question, but none of the suggestions seemed to fix my problem (so I have reverted them). I have the following code: ...
1
vote
0answers
26 views

What is the best technique to transform documents into vectors?

What is the best algorithm between doc2vec and Singular Value Decomposition (SVD) to transform a set of 600 documents of around 1000 words each into vectors ?
1
vote
0answers
24 views

Can I sum up feature vectors of a user‘s collection?

I want to find items that are similar to items users already have in their collection. Every item has attributes, so I created feature vectors where every element of the vector represents an attribute ...
1
vote
0answers
47 views

How can I train a model to modify a vector by rewarding the model based on the modified vectors nearest neighbors?

I am experimenting with a document retrieval system in which I have documents represented as vectors. When queries come in, they are turned to vectors by the same method as used for the documents. The ...
0
votes
1answer
7 views

what is the difference between positional vector and attention vector used in transformer model?

what is the difference between positional vector and attention vector used in transformer model ? , i saw a video in youtue and the defintion for positional vector was give as :* "vector that ...
0
votes
0answers
4 views

Difference in Plots of VAR Plot_Forecast vs Simple Overlay on Pyplot

I am sure, I am doing some thing extremely silly but for the life of me not able to figure our cause of the issue. So here it is: Step 0: Form my training set ...
0
votes
1answer
16 views

How can we use the cosine similarity formula on document feature vector without a direction?

In mathematics, a vector has both magnitude and direction. In data science, for identifying document similarity we convert the document into a feature vector. Then apply cosine angle formula between ...
0
votes
0answers
75 views

Building Search Engine using Vector Space Model using a private database

Im trying to build a search engine for a private dataset using vector space model and have encountered following problem. Dataset Dataset is private. It is a collection of unstructed pdf . I have ...
0
votes
0answers
13 views

How to include engineered features as factors, along with a CountVectorizer matrix?

I'm doing a classification task on Excel files. For the example in this picture, it would not really make sense to include the 4 columns on the right inside the CountVectorizer matrix. From my ...
-1
votes
1answer
426 views

How to improve Vector Space Models with semantic similarity?

I try to construct a classic querying system where I find the most probable candidate text for a query by computing cosine similarities of TFIDF vectors of normalized text of possible answers. This ...