/ft_linear_regression

This project will be your first steps into AI and Machine Learning. You're going to start with a simple, basic machine learning algorithm. You will have to create a program that predicts the price of a car by using a linear function train with a gradient descent algorithm.

Primary LanguagePython

ft_linear_regression

This project will be your first steps into AI and Machine Learning. You're going to start with a simple, basic machine learning algorithm. You will have to create a program that predicts the price of a car by using a linear function train with a gradient descent algorithm.

You will implement a simple linear regression with a single feature - in this case, the mileage of the car
To do so, you need to create two programs :

  • The first program will be used to predict the price of a car for a given mileage.
    When you launch the program, it should prompt you for a mileage, and then give
    you back the estimated price for that mileage. The program will use the following

Before the run of the training program, theta0 and theta1 will be set to 0.

  • The second program will be used to train your model. It will read your dataset
    file and perform a linear regression on the data.
    Once the linear regression has completed, you will save the variables theta0 and
    theta1 for use in the first program.