当前位置:网站首页>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 .
边栏推荐
- Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
- Ubantu disk expansion (VMware)
- Azkaban overview
- Sqoop command
- Azkaban actual combat
- Dart series: collection of best practices
- ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
- Usage scenarios and solutions of ledger sharing
- Zabbix
- Sqoop installation
猜你喜欢
Class inheritance in C #
Hmi-32- [motion mode] add light panel and basic information column
El select, El option drop-down selection box
Mongodb common commands
ELK日志分析系统
Single line function*
Hmi-30- [motion mode] the module on the right side of the instrument starts to write
Spark SQL learning bullet 2
看 TDengine 社区英雄线上发布会,听 TD Hero 聊开发者传奇故事
Sqoop command
随机推荐
Acwing第 58 场周赛【完结】
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
[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
VM in-depth learning (XXV) -class file overview
Kbp206-asemi rectifier bridge kbp206
El select, El option drop-down selection box
qrcode:将文本生成二维码
Cut! 39 year old Ali P9, saved 150million
Azkaban安装部署
[micro service SCG] 33 usages of filters
Elk log analysis system
SPI and IIC communication protocol
有个疑问 flink sql cdc 的话可以设置并行度么, 并行度大于1会有顺序问题吧?
Idea inheritance relationship
FBO and RBO disappeared in webgpu
Spark SQL learning bullet 2
Spoon inserts and updates the Oracle database, and some prompts are inserted with errors. Assertion botch: negative time
IPv6 experiment
040. (2.9) relieved
Accuracy problem and solution of BigDecimal