joeljsv / hacktober2021

Register for Hacktoberfest and make four pull requests (PRs) between October 1st-31st to grab free SWAGS
https://hacktoberfest.digitalocean.com/
7 stars 114 forks source link

feat: add linear regression machine learning algo through OLS method #225

Open Cyntwikip opened 3 years ago

Cyntwikip commented 3 years ago

Description

My implementation of the Linear Regression Machine Learning algorithm through Ordinary Least Squares (OLS) method.

Sample Usage:

ols = OLS()
ols.fit(x.reshape(-1,1), y)
ols.predict(x)

Checklist: