matrices and vectors
play

Matrices and vectors Machine Learning Andrew Ng Matrix: - PowerPoint PPT Presentation

Linear Algebra review (op3onal) Matrices and vectors Machine Learning Andrew Ng Matrix: Rectangular array of numbers: Dimension of matrix: number of


  1. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Matrices ¡and ¡ vectors ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  2. Matrix: ¡ Rectangular ¡array ¡of ¡numbers: ¡ Dimension ¡of ¡matrix: ¡number ¡of ¡rows ¡x ¡number ¡of ¡columns ¡ Andrew ¡Ng ¡

  3. Matrix ¡Elements ¡ (entries ¡of ¡matrix) ¡ “ ¡ ¡, ¡ ¡ ¡entry” ¡in ¡the ¡ ¡ ¡ ¡ ¡ ¡ ¡row, ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡column. ¡ Andrew ¡Ng ¡

  4. Vector: ¡ An ¡n ¡x ¡1 ¡matrix. ¡ 1-­‑indexed ¡vs ¡0-­‑indexed: ¡ element ¡ Andrew ¡Ng ¡

  5. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Addi3on ¡and ¡scalar ¡ mul3plica3on ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  6. Matrix ¡Addi4on ¡ Andrew ¡Ng ¡

  7. Scalar ¡Mul4plica4on ¡ Andrew ¡Ng ¡

  8. Combina4on ¡of ¡Operands ¡ Andrew ¡Ng ¡

  9. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Matrix-­‑vector ¡ mul3plica3on ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  10. Example ¡ Andrew ¡Ng ¡

  11. Details: ¡ m ¡x ¡n ¡matrix ¡ n ¡x ¡1 ¡matrix ¡ m-­‑dimensional ¡ (m ¡rows, ¡ (n-­‑dimensional ¡ vector ¡ n ¡columns) ¡ vector) ¡ To ¡get ¡ ¡ ¡ ¡ ¡, ¡mul3ply ¡ ¡ ¡ ¡’s ¡ ¡ ¡ ¡ ¡ ¡ ¡row ¡with ¡elements ¡ of ¡vector ¡ ¡ ¡, ¡and ¡add ¡them ¡up. ¡ Andrew ¡Ng ¡

  12. Example ¡ Andrew ¡Ng ¡

  13. House ¡sizes: ¡ Andrew ¡Ng ¡

  14. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Matrix-­‑matrix ¡ mul3plica3on ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  15. Example ¡ Andrew ¡Ng ¡

  16. Details: ¡ m ¡x ¡n ¡matrix ¡ n ¡x ¡o ¡matrix ¡ m ¡x ¡o ¡ (m ¡rows, ¡ (n ¡rows, ¡ matrix ¡ n ¡columns) ¡ o ¡columns) ¡ The ¡ ¡ ¡ ¡ ¡ ¡ ¡column ¡of ¡the ¡matrix ¡ ¡ ¡ ¡ ¡ ¡is ¡obtained ¡by ¡mul3plying ¡ ¡ ¡ ¡ ¡with ¡the ¡ ¡ ¡ ¡ ¡ ¡ ¡column ¡of ¡ ¡ ¡ ¡ ¡. ¡(for ¡ ¡ ¡ ¡= ¡1,2,…,o) ¡ Andrew ¡Ng ¡

  17. Example ¡ 7 2 7 Andrew ¡Ng ¡

  18. Have ¡3 ¡compe3ng ¡hypotheses: ¡ House ¡sizes: ¡ 1. ¡ 2. ¡ 3. ¡ Matrix ¡ Matrix ¡ Andrew ¡Ng ¡

  19. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Matrix ¡mul3plica3on ¡ proper3es ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  20. Let ¡ ¡ ¡ ¡ ¡and ¡ ¡ ¡ ¡ ¡be ¡matrices. ¡Then ¡in ¡general, ¡ (not ¡commuta3ve.) ¡ E.g. ¡ Andrew ¡Ng ¡

  21. Let ¡ Compute ¡ Let ¡ Compute ¡ Andrew ¡Ng ¡

  22. Iden4ty ¡Matrix ¡ Denoted ¡ ¡ ¡ ¡ ¡(or ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡). ¡ Examples ¡of ¡iden3ty ¡matrices: ¡ 2 ¡x ¡2 ¡ 3 ¡x ¡3 ¡ 4 ¡x ¡4 ¡ For ¡any ¡matrix ¡ ¡ ¡ ¡, ¡ Andrew ¡Ng ¡

  23. Linear ¡Algebra ¡ review ¡(op3onal) ¡ Inverse ¡and ¡ transpose ¡ Machine ¡Learning ¡ Andrew ¡Ng ¡

  24. 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” ¡ Andrew ¡Ng ¡

  25. Matrix ¡Transpose ¡ Example: ¡ Let ¡ ¡ ¡ ¡ ¡be ¡an ¡m ¡x ¡n ¡matrix, ¡and ¡let ¡ ¡ Then ¡ ¡ ¡ ¡ ¡is ¡an ¡n ¡x ¡m ¡matrix, ¡and ¡ Andrew ¡Ng ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend