https://github.com/jmcheon/ft_linear_regression
This project is about AI and Machine Learning. A simple, basic machine learning algorithm. A program that predicts the price of a car by using a linear function train with a gradient descent algorithm.
https://github.com/jmcheon/ft_linear_regression
data-science linear-regression machine-learning math python3
Last synced: 3 months ago
JSON representation
This project is about AI and Machine Learning. A simple, basic machine learning algorithm. A program that predicts the price of a car by using a linear function train with a gradient descent algorithm.
- Host: GitHub
- URL: https://github.com/jmcheon/ft_linear_regression
- Owner: jmcheon
- Created: 2023-05-30T20:13:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T11:56:20.000Z (about 2 years ago)
- Last Synced: 2025-01-19T20:22:21.885Z (over 1 year ago)
- Topics: data-science, linear-regression, machine-learning, math, python3
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ft_linear_regression - An introduction to machine learning
>_**Summary: In this project, you will implement your first machine learning algorithm.**_
## Usage
1. Prediction before training
```python
python3 predict.py
```
- output
```
Type a Km to estimate price: 3421
Estimated price for km: 3421 is 0.
```
2. Train
- It generates `model.csv` which contains optimized theta values
```python
python3 train.py
```
3. Prediction after training
```python
python3 predict.py
```
- output
```
Type a Km to estimate price: 3421
Estimated price for km: 3421 is 8426.
```
4. Evaluation
- Evaluate the model using `r2 score`
```python
python3 evaluate.py
```
6. Visualization
```python
python3 plot.py
```
## Visualization
| Before Training | After Training |
|:---------------:|:--------------:|
|||
### Animated Training Process
