当前位置:网站首页>Yyds dry goods inventory embedded matrix
Yyds dry goods inventory embedded matrix
2022-07-05 03:04:00 【LolitaAnn】
This article is my note sharing , The content mainly comes from teacher Wu Enda's in-depth learning course . [1]
Embedding matrix
We talked about it earlier word embedding. In this section, let's talk about embedding matrix.
In the process of learning , In fact, I will one hot The pile of vectors of is transformed into a embedding Matrix .
That is to say, what you finally get should be a embedding Matrix , Not every word vector .
Let's continue our previous example , Suppose your dictionary is 1 ten thousand . Now you do word embedding choice 300 Features .
Then what you finally get should be a 300×10000 The matrix of dimensions .
We call this matrix word embedding The big matrix of .
from Embedding matrix Get words in e vector
Method 1
Remember ours one-hot Vector . The length of the vector is the length of the word list . The position of the word in the alphabet in the vector is 1, The rest of the figures are 0.
So I want to get . Of a word word embedding, We just need to put one-hot Multiply our vector by word embedding The matrix of .
So we can get the word in the corresponding position e vector .
Those who have studied linear algebra in the above formula should not be difficult to understand .
Let's take a simple example .
Method 2
Theoretically speaking, the above method is feasible , But it is not so used in practical applications . In practical application, we usually use a function to directly create word word embedding To find , Find the vector of the corresponding position .
In practice, you will never use one 10000 Of length word embedding, Because it's really a little short . So you should be exposed to a very large matrix . If a large matrix is multiplied by a super long one-hot If the vectors of are multiplied , Its computational overhead is very large .
边栏推荐
- PHP cli getting input from user and then dumping into variable possible?
- Use of kubesphere configuration set (configmap)
- 单项框 复选框
- Machine learning experiment report 1 - linear model, decision tree, neural network part
- ELK日志分析系统
- [2022 repair version] community scanning code into group activity code to drain the complete operation source code / connect the contract free payment interface / promote the normal binding of subordi
- TCP security of network security foundation
- There is a question about whether the parallelism can be set for Flink SQL CDC. If the parallelism is greater than 1, will there be a sequence problem?
- D3js notes
- Returns the lowest common ancestor of two nodes in a binary tree
猜你喜欢
Use of kubesphere configuration set (configmap)
Avoid material "minefields"! Play with super high conversion rate
Sqoop command
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Tiny series rendering tutorial
Azkaban安装部署
Design and implementation of high availability website architecture
Flume configuration 4 - customize mysqlsource
LeetCode146. LRU cache
This + closure + scope interview question
随机推荐
Comparison of advantages and disadvantages between platform entry and independent deployment
Pdf things
D3js notes
TCP security of network security foundation
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
【LeetCode】98. Verify the binary search tree (2 brushes of wrong questions)
Linux Installation redis
单项框 复选框
Ubantu disk expansion (VMware)
Design and practice of kubernetes cluster and application monitoring scheme
Pat class a 1162 postfix expression
Design and implementation of kindergarten management system
Scientific research: are women better than men?
Multi person online anonymous chat room / private chat room source code / support the creation of multiple chat rooms at the same time
Qrcode: generate QR code from text
[105] Baidu brain map - Online mind mapping tool
Three line by line explanations of the source code of anchor free series network yolox (a total of ten articles, which are guaranteed to be explained line by line. After reading it, you can change the
ELFK部署
Share the newly released web application development framework based on blazor Technology
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience