cos18 / ft_linear_regression

An introduction to machine learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_linear_regression

An introduction to machine learning

Objective

  • Create a program that predicts the price of a car by using a linear function train with a gradient descent algorithm
  • (Bonus) Plotting the data and predict line (linear regression) to see the trend of prediction
  • (Bonus) Calculate the precision of the prediction

How to Run

Prerequisite

You need to install poetry with Python 3.8+

# Install poetry
curl -sSL https://install.python-poetry.org | python3 -

# Install package & create venv
poetry install

Prediction

poetry run predict

Training

poetry run train

About

An introduction to machine learning


Languages

Language:Python 100.0%