7.1.4. Building Linear Regression from scratch in Python

preview_player
Показать описание
. In this video, I explained how to build a Linear Regression model from scratch in python.

Hello everyone! I am setting up a donation campaign for my YouTube Channel. If you like my videos and wish to support me financially, you can donate through the following means:

(No donation is small. Every penny counts)
Thanks in advance!

I am making a "Hands-on Machine Learning Course with Python" in YouTube. I'll be posting 3 videos per week: Monday Evening; Wednesday Evening; Friday Evening.

Рекомендации по теме
Комментарии
Автор

its really a great help for me....everything running so systematically and smoothly

sankhadas
Автор

In the function update_weights, while calculating dw there shld be summation over of the all values.
dw = - (2 * np.sum (self.X.T).dot(self.Y - Y_prediction)) / self.m

srikanth
Автор

very good explanation. Where you learnt the Machine learning

balajimanoharan
Автор

Thanks for recording these lectures, you explain well. Question: I'm unable to locate the part of the model that stores the values of the loss function in each iteration of the for loop and finally selects the global minimum.

deepika
Автор

Do we need to take transverse for more number of columns

baskaranl
Автор

when values were initialized b=0, if the value of bias is only one then why we need to update it??

JourneytoDivinity
Автор

Hi Siddhardhan, what is difference between Gradient descent and oridnary least squares and when should we use each one?

mohamedshawky
Автор

Instead of using def predict function can we also use return y_predict variable ? Because it's storing the value of linear regression prediction in y_prediction variable. I didn't get this logic.

Shashank_Shahi
Автор

Sir Model crete kia but usme data toh dal ke check hi ni ki uski accuracy !

being_mukul
Автор

Hey, i have copied your all code and i have the error :

self.m, self.n = X.shape
AttributeError: 'list' object has no attribute 'shape'

can you help me please

erwinbauze
Автор

Hi....great video...while running the dataset with 6 features...while fitting the data its throwing an error that operands could not be broadcast together...could u please help with that

pawan
Автор

Great video sid, this video made me understand whats going under the hood.
Doubt : bias will be different for different features?? eg: for a housing price prediction, the crime rate and number of rooms will have totally different intercept value?? Am i wrong??

robinabraham
Автор

Class linear_regression():
Def ___init(self, )


Def fit (self, )

Def update_weights(self, ):

Def predict (self, ):

Is given international error at the def fit

simonishabiyi
Автор

why are we building this model when we have this model in sklearn right? i mean is it necessary to study this also?
your videos are really helpful tho

Krishna-uz
Автор

sir why are we building this model i mean its already available on sklearn library ?? is it necessary ?

thahoorzain
Автор

class Linear_Regression():

def __init__(self, ):

def fit(self, ):

def update_weights(self, ):

def predict(self, ):


Input In [98]

^
IndentationError: expected an indented block



some should pls hlp me out... tried different methods but am still not getting it

ishabiyisimon
welcome to shbcf.ru