Skip to content

upjotsingh/LinearRegression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Linear Regression Model

(PyCharm Project)

Output:

Brief Information About Data :

RangeIndex: 237 entries, 0 to 236
Data columns (total 4 columns):
Gender       237 non-null int64
Age Range       237 non-null int64
Head Size(cm^3)       237 non-null int64
Brain Weight(grams)       237 non-null int64
dtypes: int64(4)
memory usage: 7.5 KB

After Dropping Unnecessary Columns(Gender, Age ), We Got Data Head as :


We got Coefficient value of our Best Fit Regression Line : [0.26106902]
And Intercept as : 334.26127334704415

Comparision between Actual and Predicted Values :


Plot of our Best Fit Line :


Mean Absolute Error: 59.714833711783065
Mean Squared Error: 5200.615465989547
Root Mean Squared Error: 72.11529287182815

Model Score : 63.92 %

Thank You

About

Linear Regression Model for predicting out the Brain weight according to Brain Size.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages