Linear Regression Model

Can someone tell me why I got this error? estimate charges should be 2100 not (40,50,100). I have run the code everything was working but how come the linear model is not loaded

You define estimate_charges as a tuple.
Tuples aren’t callable.

You need to have a function named estimate_charges.

Here i have define estimate_charges

Don’t use function as a variable there.

Right Syntax : function(x,y,z)

You’re doing function=(x,y,z) which is wrong syntax

1 Like

Here’s an article about Simple Linear Regression.
Hope you guys enjoy it. Feel free to comment if anything wrong and give suggestion.
https://medium.com/@faysal.miah01/simple-linear-regression-ca4cf01e0e2d

1 Like

Here’s an article about Simple Linear Regression.
Hope you guys enjoy it. Feel free to comment if anything wrong and give suggestion.
https://medium.com/@faysal.miah01/multiple-linear-regression-9c835d6d8b5b

1 Like