Untitled11.ipynb - Colaboratory
Untitled11.ipynb - Colaboratory
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