Machine learning(3-Linear Algebra Review )

时间:2021-06-08 13:43:50   收藏:0   阅读:22

1、Matrices and vectors

技术分享图片

a notation R3×3

技术分享图片

this is a three dimensional vector , a notation R3

2、Addition and scalar multiplication

3、Matrix-vector multiplication

4、Matrix-matrix multiplication

5、Matrix multiplication properties

6、Inverse and transpose

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

技术分享图片

原文:https://www.cnblogs.com/wangzheming35/p/14861953.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!