/ft_linear_regression

Linear regression in Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

linear regression

Program written in Python to perform a gradient descent on a linear function, and print the best fit line on a graph, for educational purpose

Train

If you want to train with the providen dataset juste run make train, else if you want to train with your own dataset, just run python3.7 srcs/train.py [dataset]

Predict

To make a prediction you need to run python3.7 srcs/predict.py [input]

Dependencies

matplotlib

License

This project is licensed under the GNU General Public License 3.