https://github.com/fernando24164/supervised-learning
https://github.com/fernando24164/supervised-learning
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fernando24164/supervised-learning
- Owner: fernando24164
- Created: 2019-08-17T19:02:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:56:51.000Z (over 2 years ago)
- Last Synced: 2025-01-28T02:44:22.717Z (4 months ago)
- Language: Python
- Homepage:
- Size: 658 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linear regression
A simple example of how to make a linear regression in scikit-learn,
train a model and create and API endpoint to predict new points## Prepare your environment
`docker-compose up`
This will launch a container which will serve an API endpoint
`localhost:8080`
## How to launch test
Connect to container
`docker exec -it bash`
`pytest`
## How to generate data
The script that generate mock data it is in linear_regression folder
This will generate your mockup data
`python generate_data.py`The next script will train our linear regression and save it in data folder
`python linear_regression.py`## Todo
- [ ] Frontend to interact with API