+ 2

Python Data Science

I don't understand linear regression. What are things like the intercept, and how does the fit() function and predict() function work and how do we use them (what do they do etc). It will be great if someone could give a brief overview of the main concepts in this course. I thank everyone in advance.

16th Jul 2020, 1:44 PM
Peanuts Berkenshine
Peanuts Berkenshine - avatar
4 odpowiedzi
+ 1
I have not learnt this . You might want to go over and over again on it
16th Jul 2020, 2:38 PM
MatanzaBC
MatanzaBC - avatar
0
Linear regression is a simple way to model the relationship between variables. The intercept is the value of the output when the input is zero, while the slope (coefficient) shows how much the output changes with a unit change in input. The fit() function trains the model by finding the best line through the data (minimizing error). The predict() function then uses that trained line to estimate outcomes for new input values. In short, you first train with fit(), then forecast with predict(). It’s a foundation for understanding more advanced machine learning techniques.
11th Sep 2025, 2:13 PM
Mayank kumar Verma
Mayank kumar Verma - avatar