0% found this document useful (0 votes)
57 views1 page

Untitled11.ipynb - Colaboratory

This document discusses linear algebra and its role in machine learning. It defines linear algebra as a field of mathematics that is universally agreed to be a prerequisite for machine learning. Matrices are introduced as rectangular arrangements of numbers organized into rows and columns. Common matrix operations like accessing individual elements using row and column indices are demonstrated. Finally, the document outlines three methods for creating matrices using NumPy: using NumPy arrays, the matrix function, and functions like zeros() and ones().

Uploaded by

Nitesh Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Untitled11.ipynb - Colaboratory

This document discusses linear algebra and its role in machine learning. It defines linear algebra as a field of mathematics that is universally agreed to be a prerequisite for machine learning. Matrices are introduced as rectangular arrangements of numbers organized into rows and columns. Common matrix operations like accessing individual elements using row and column indices are demonstrated. Finally, the document outlines three methods for creating matrices using NumPy: using NumPy arrays, the matrix function, and functions like zeros() and ones().

Uploaded by

Nitesh Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

05/06/2022, 02:21 Untitled11.

ipynb - Colaboratory

Linear Algebra
What is Linear Algebra ?
Linear algebra is a field of mathematics that is universally agreed to be a prerequ
Although linear algebra is a large field with many complex theories and findings, t

Role of Linear Algebra in Machine Learning
1) When we learn linear algebra, we improve the awareness or instinct that plays su
2) Linear algebra helps in creating better machine learning algorithms.We can use o
3) Statistics are very important to organize and integrate data in machine learning

Matrix
A matrix is a rectangular arrangement of numbers into rows and columns.
Matrix is a way of writing similar things together to handle and manipulate them as

Technically, a matrix is a 2-D array of numbers (as far as Data Science is concerne

1   2   3
4   5   6
7   8   9
Generally, rows are denoted by ‘i’ and column are denoted by ‘j’. The elements are 

In above matrix

A12 = 2

To reach to the result, go along first row and reach to second column.

Matrices which have a single row are called row vectors, and those which have a sin

Matrix Creation :
Moving ahead let's learn creation of a matrix using NumPy. There are three methods:

Method 1: Using NumPy array to form a matrix.

Method 2: Using NumPy's inbuilt matrix function.

Method 3: Using miscellaneois functions such as zeros(), ones(), etc.

* Method I: Using array and reshape to convert array into matrix

https://colab.research.google.com/drive/1X_efHqBeTlSz3l11AP7WNr6PIBFlTxFB#printMode=true 1/2

You might also like