KarimUllahPWELEBATCH
9 views
25 slides
Aug 09, 2024
Slide 1 of 25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
About This Presentation
..
Size: 4.92 MB
Language: en
Added: Aug 09, 2024
Slides: 25 pages
Slide Content
Linear Algebra review (optional) Matrices and vectors Machine Learning
Dimension of matrix: number of rows x number of columns Matrix: Rectangular array of numbers:
Matrix Elements (entries of matrix) “ , entry” in the row, column.
Vector: An n x 1 matrix. n -dimensional vector 1-indexed vs 0-indexed: element
Linear Algebra review (optional) Addition and scalar multiplication Machine Learning
Matrix Addition
Scalar Multiplication
Combination of Operands
Linear Algebra review (optional) Matrix-vector multiplication Machine Learning
Example
Details: m x n matrix (m rows, n columns) n x 1 matrix (n-dimensional vector) m-dimensional vector To get , multiply ’s row with elements of vector , and add them up.
Example
House sizes:
Linear Algebra review (optional) Matrix-matrix multiplication Machine Learning
Example
Details: m x n matrix (m rows, n columns) n x o matrix (n rows, o columns) m x o matrix The column of the matrix is obtained by multiplying with the column of . (for = 1,2,…,o)
Example 2 7 7
House sizes: Matrix Matrix Have 3 competing hypotheses: 1. 2. 3.
Linear Algebra review (optional) Matrix multiplication properties Machine Learning
Let and be matrices. Then in general, (not commutative.) E .g.
Let Let Compute Compute
Identity Matrix For any matrix , Denoted (or ). Examples of identity matrices: 2 x 2 3 x 3 4 x 4
Linear Algebra review (optional) Inverse and transpose Machine Learning
Not all numbers have an inverse. Matrix inverse: If A is an m x m matrix, and if it has an inverse, Matrices that don’t have an inverse are “singular” or “degenerate”
Matrix Transpose Example: Let be an m x n matrix, and let Then is an n x m matrix, and