Before jumping directly to the point let us know why there was a need for it. It will surely make us better understand why the hell we have to study this thing.
Earlier Development Process:
Developer after the completion of their whole source code of the software, puts(or commits) the code on repository like Github, SVN, etc. After the code completion, the code is now ready to get build(code compilation and other processes). After the build is complete, software/app is deployed on test server for testing purpose. …
Linear regression is a vast term that just says we are finding a relationship between the dependent and independent variable(s), no matter what technique(or mathematics) we are using.
OLS is just one of the technique to do linear regression.
error(e) = (observed value — predicted value)
Observed values → blue dots in picture below.
predicted values →points on the line(vertically below to the observed values)
This is a small and easy explanation on how to use them!
It’s a handy technique for concatenation of numpy arrays using its np.c_ and np.r_
Short definition of what they do:
np.c_ concatenates arrays along second axis.
np.r_ concatenates arrays along first axis.
Confusing right ?
Let’s create 2 arrays
b to learn with the example.
import numpy as npa = np.array([[1, 2, 3],
b = np.array([[4, 5, 6],
a’s shape: (2,3) i.e. (no. of rows, no. of columns) i.e. …
Create a Colab Notebook.
Go to below link and it will automatically ask you to create a notebook. Simply enter the name and hit enter.
Uploading the file.
First we need to upload the file(like csv, xlsx, etc) from our system to the Colab using the below code.
from google.colab import files
uploaded = files.upload()
As soon as you run the above code it will show you a “Browse” button as in below figure. Click on it and upload your file (in my case its
california_house.csv ). Wait till the file is 100% uploaded. …