This project demonstrates linear regression using the gradient descent method. Two scenarios are explored:
- Profit Prediction based on the number of customers per day.
- House Price Prediction based on house size and the number of rooms.
- Libraries Used:
numpy
,pandas
,matplotlib
- Data: The dataset consists of two columns:
Profit
(target) andCustomer Number per Day
(feature).
- Libraries Used:
numpy
,pandas
,matplotlib
- Data: The dataset consists of three columns:
Price
(target),House Size
, andRoom Number
(features).
- Download the
.py
file from this repository. - Run the file in your Python environment or copy the code into your own script.
Metrics such as cost function values and Mean Squared Error (MSE) are illustrated by graphs included in the visuals, which are plotted during the execution of the script.