Machine learning(3-Linear Algebra Review )
2024-10-19 14:28:33
1、Matrices and vectors
- Matrix :Rectangular array of numbers
a notation R3×3
- Vector : An n×1 matrix
this is a three dimensional vector , a notation R3
2、Addition and scalar multiplication
3、Matrix-vector multiplication
内标相同即可乘,前行×后列得一行 (可运用Python直接计算,参考用python检查矩阵的计算)
4、Matrix-matrix multiplication
- Same as above
5、Matrix multiplication properties
- No commutative A×B ≠ B×A (B is not identity matrix)
- Yes associative (A×B)×C=A×(B×C)
- For any matrix A, A×I = I×A = A
6、Inverse and transpose
- Inverse :
we can use python to implement and for example :
from numpy import *
# 自行判断|A|≠0
# 求逆矩阵 ,建议:取小数点后一位化为分数
A = mat([[1, -1, 1],
[1, 1, 0],
[-1, 0, 1]])
B = A.I
print(B)
# [ 0.33333333 0.33333333 -0.33333333]
# [-0.33333333 0.66666667 0.33333333]
# [ 0.33333333 0.33333333 0.66666667]
# 0.333≈ 1/3 ,0.667≈ 2/3
- Transpose :
最新文章
- echarts之toolbox-orient
- Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules
- html: title换行方法 如a链接标签内title属性鼠标悬停提示内容换行
- 常用机器视觉工具----图像分析工具(blob分析)
- VS2010中如何查看DLL的导出接口
- DOM、SAX、JDOM、DOM4J四种XML解析方法PK
- leetcode 102 Binary Tree Level Order Traversal ----- java
- 通过[蜘蛛协议]Robots.txt禁止搜索引擎收录的方法
- django的模板页面里,如何获取一个集合的数据?
- ThinkPHP - 组织分类结构
- MongoDB:利用官方驱动改装为EF代码风格的MongoDB.Repository框架 二
- PhotoSwipe源码解读系列(二)
- springBoot 自动配置原理--自己新建一个 starter
- JavaScript中,JSON格式的字符串与JSON格式的对象相互转化
- python中的正则表达式--re模块
- Solidworks设计电路外形导入AltiumDesigner
- 磁盘挂载问题:Fdisk最大只能创建2T分区的盘,超过2T使用parted
- stm-ledstrip : Driver and test routine for WS2811 RGB-LED
- 十一、springboot之web开发之Filter
- Linux (x86) Exploit 开发系列教程之六(绕过ASLR - 第一部分)
热门文章
- eclipes常见操作总结及项目2和3经验总结
- 学习PHP中好玩的Gmagick图像操作扩展的使用
- js 签字插件
- 判断手机浏览器还是微信浏览器(PHP)
- 你会阅读appium官网文档吗
- P7581-「RdOI R2」路径权值【长链剖分,dp】
- 华为云计算IE面试笔记-请描述华为容灾解决方案全景图,并解释双活数据中心需要从哪些角度着手考虑双活设计
- 一、Ansible基础之入门篇
- 在Vue&;Element前端项目中,使用FastReport + pdf.js生成并展示自定义报表
- 11.4.5 LVS负载均衡常见工作模式总结以及ipvsadm