Lecture3 for machine leanring students .pptx

KarimUllahPWELEBATCH 9 views 25 slides Aug 09, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

..


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
Tags