Skip to content

A linear regression implementation using gradient descent with python

License

Notifications You must be signed in to change notification settings

touir1/linear-regression-SGD

Repository files navigation

linear-regression-SGD

npm npm

A linear regression implementation using stochastic gradient descent with python.

This project is part of the #100DaysOfMLCode challenge proposed By Siraj Raval.

Jupyter notebooks

To visualize the jupyter notebooks content, you can use the links below.

Dependencies

I'm using pipenv for the dependencies. So for installing dependencies, you need to:

  • pip install pipenv After that you only need to execute pipenv install.

If you don't want to use pipenv, you can install the dependencies manually:

I'm also using a video codec to render the animation into a gif file. The one i'm using is imagemagick.

How to run

If you are using pipenv:

  • Go to the project directory
  • Execute in a command promt (windows) or a terminal (linux): pipenv shell
  • Execute: python -m ipykernel install --user --name=my-virtualenv-name
  • Execute: jupyter notebook
  • In the jupyter notebook web app, open the corresponding .ipynb file.

If you don't use pipenv:

  • Execute: jupyter notebook
  • In the jupyter notebook web app, open the corresponding .ipynb file.

Note: If you are unfamiliar with jupyter notebook, you can visit their website to learn more:

Authors

License

linear-regression-SGD is published under the MIT license.

Special thanks

Siraj Raval for starting the #100DaysOfMLCode challenge.

About

A linear regression implementation using gradient descent with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published