Classifying Documents with Document Embeddings
Learn to use the document embeddings to train a classifier.
We'll cover the following...
We’ll be training a simple multiclass (or a multinomial) logistic regression classifier on this data. The logistic regression model will look as follows:
Press + to interact
The image above depicts the multinomial logistic regression model. The model takes in an embedding vector and outputs a probability distribution over different available classes.
It’s a very simple model with a single layer, where the input is the embedding vector (e.g., a 128-element-long vector), and the output is a five-node softmax layer that will output the likelihood of the input belonging to each category as ...