当前位置:网站首页>深度之眼(二)——矩阵及其基本运算
深度之眼(二)——矩阵及其基本运算
2022-07-02 14:26:00 【光追雨】
文章目录
一、矩阵的基本概念及意义以及常见的特殊矩阵
矩阵的意义又是什么,下面举一种线性变换
分清楚:零矩阵、单位矩阵和对角矩阵的区别
二、矩阵的加法减法数乘以及性质
三、矩阵的乘法以及性质
注意点:矩阵的相乘,必须保证第一行的列数等于第二行的行数
如:第一个矩阵A为m×s,第二个矩阵B则为s×n,得到矩阵C的则是m×n,C = AB
而cij则表示A矩阵的行乘以B矩阵的列
重点:矩阵的乘法不满足交换律
四、矩阵运算在深度学习中的应用(初级)
4.1 数字图片识别(神经网络)
一张图片有0 - 9其中一个数字,大小为10×10,相当于100个数字
- 展开成100个向量(1 * 100)
- 将(1100)的矩阵乘以w1(100512),编程(1*512)的一个扩展出来的矩阵
- 对(1*512)经过relu函数处理
- 将relu处理过后(1512)乘以w2(51210)生成(1*10)[因为想生成10个数]
- 经过softmax(后面会讲)处理,生成S1…S10的一个概率分布
经过w1和w2的处理体现出一种特征空间的变换
以上是单个样本的,如果有多张图片,则矩阵如下
五、矩阵的迹,矩阵的转置,对称矩阵(协方差矩阵)
5.1 矩阵的迹
两个矩阵的交换后相乘不相等,但是迹是一样的
证明:
5.2 矩阵的转置
aijT=aji
5.3 对称矩阵
对称阵的特点是:它的元素以对角线为对称轴对应相等很显然单位矩阵以及对角矩阵都为对称矩阵
协方差矩阵
协方差矩阵是对称阵
边栏推荐
- [essay solicitation activity] Dear developer, RT thread community calls you to contribute
- Hard core! One configuration center for 8 classes!
- How openharmony starts FA of remote devices
- [error record] error -32000 received from application: there are no running service protocol
- 【Leetcode】14. 最長公共前綴
- Use of openpose
- The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
- Digital IC hand tearing code -- voting device
- System Verilog实现优先级仲裁器
- Role and function of uboot
猜你喜欢
PhD battle-11 preview | review and prospect backdoor attack and defense of neural network
剑指 Offer 24. 反转链表
电脑自带软件使图片底色变为透明(抠图白底)
剑指 Offer 27. 二叉树的镜像
TCP congestion control details | 2 background
【征文活动】亲爱的开发者,RT-Thread社区喊你投稿啦
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
In MySQL and Oracle, the boundary and range of between and precautions when querying the date
Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
随机推荐
Talk about an experience of job hopping and being rejected
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
深度学习图像数据自动标注[通俗易懂]
【征文活动】亲爱的开发者,RT-Thread社区喊你投稿啦
基于多元时间序列对高考预测分析案例
Digital IC hand tearing code -- voting device
Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
[fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
Fuyuan medicine is listed on the Shanghai Stock Exchange: the market value is 10.5 billion, and Hu Baifan is worth more than 4billion
移动应用性能工具探索之路
pwm呼吸燈
pwm呼吸灯
linux安装postgresql + patroni 集群问题
Learning Weekly - total issue 60 - 25th week of 2022
Believe in yourself and finish the JVM interview this time
剑指 Offer 25. 合并两个排序的链表
Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
相信自己,这次一把搞定JVM面试
Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品