Skip to content

Undeadamien/ft_linear_regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear Regression - 42 Project

Predict car prices from mileage using linear regression from scratch in Python.

Features

  • Train a linear regression model with gradient descent
  • Normalize mileage data for better predictions
  • Save and load model parameters
  • Estimate price interactively
  • Visualize the dataset and regression line

Requirements

  • Python 3.11+

  • Install dependencies:

    pip install -r requirements.txt

Usage

Train the model

python train.py

Predict a price

python estimate.py

Visualize the regression

python plot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published