Skip to content

Upgrade insurance price project to FastAPI ML Prediction API#1

Merged
amanda622 merged 1 commit into
mainfrom
portfolio-upgrade-fastapi
Jun 11, 2026
Merged

Upgrade insurance price project to FastAPI ML Prediction API#1
amanda622 merged 1 commit into
mainfrom
portfolio-upgrade-fastapi

Conversation

@amanda622

Copy link
Copy Markdown
Owner

This PR upgrades the Insurance Price project from a basic ML demo into a production-style FastAPI prediction API with a simple web UI.
Changes include:

  • Clean project structure with src/package layout
  • Reproducible scikit-learn pipeline
  • FastAPI endpoints for prediction and health check
  • Simple web UI and Swagger documentation
  • SQLAlchemy prediction logging
  • Pytest test suite
  • Ruff linting
  • Docker support
  • Updated README and deployment guide

Validation:

  • 14 pytest tests passed
  • Ruff check passed
  • Docker image builds successfully
  • Manual API test through Swagger returned prediction results

@amanda622 amanda622 marked this pull request as ready for review June 11, 2026 10:38
@amanda622

Copy link
Copy Markdown
Owner Author

Reviewed the changed files. Local validation passed: pytest, ruff, Docker build, and manual Swagger API test.

@amanda622 amanda622 merged commit 4a902c0 into main Jun 11, 2026
2 checks passed
@amanda622 amanda622 deleted the portfolio-upgrade-fastapi branch June 11, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants