Skip to content

raess1593/jordan-predictor-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘Ÿ jordan-predictor-pro

Simple, reproducible Machine Learning pipeline to validate, clean, train, and predict sneaker prices from stock values.


๐Ÿ—‚๏ธ Project structure

  • data/ ๐Ÿ“: raw and cleaned CSV data (tracked with DVC)
  • src/ ๐Ÿง : Python scripts for generation, validation, cleaning, training, and prediction
  • notebooks/ ๐Ÿ““: optional exploration notebooks
  • tests/ ๐Ÿงช: test placeholders
  • dvc.yaml ๐Ÿ”: pipeline definition

๐Ÿš€ Quick Start

  1. Install dependencies:

    pip install -r requirements.txt
  2. Generate data and train model:

    python src/generate_raw_data.py
    python src/clean_data.py
    python src/train.py

    Or run the full pipeline:

    dvc repro
  3. Use the API or CLI for predictions ๐Ÿ”ฎ (see below)


Pipeline (DVC)

Run full pipeline:

dvc repro

Run step-by-step:

python src/validate_data.py
python src/clean_data.py
python src/train.py

๐Ÿงช Generate synthetic raw data

python src/generate_raw_data.py

CLI

python src/predict.py --stock 20

API (FastAPI) ๐ŸŒ

โš ๏ธ Important: Train the model first (see Quick Start above)!

Start the API server:

uvicorn src.api:app --reload

Example:

Open your browser at http://127.0.0.1:8000/docs for interactive Swagger UI.

Endpoints:

  • GET / - Welcome message
  • GET /health - Check if model is loaded
  • GET /predict?stock=<value> - Get price prediction

Example requests:

# Check health
curl "http://127.0.0.1:8000/health"

# Get prediction
curl "http://127.0.0.1:8000/predict?stock=20"

Releases

No releases published

Packages

 
 
 

Contributors

Languages