- Web App where you can enter customers parameters and get credit scoring result
-
Machine Learning
- Implementation of XGBoost
- Model training and evaluation
- Classification of high and low risk customers
-
FastAPI Backend
- RESTful API development with FastAPI
- Request/response handling
- Model serving endpoints
-
PostgreSQL Database
- Database setup and configuration
- CRUD operations implementation
- Data persistence for ML models
- Query optimization
-
Containerization with Docker
- Dockerfile creation
- Container orchestration
- Multi-container applications with docker-compose
- Environment configuration
-
CI/CD with GitHub Actions [IN Progress]
- Automated testing pipeline
- Continuous integration workflow
- Automated deployment
- Code quality checks
The project demonstrates a production-ready ML system with automated testing, containerized deployment, and scalable database operations.
-
Python: Ensure you have Python 3.x installed. You can download it from python.org.
-
Virtual Environment: It's recommended to use a virtual environment to manage dependencies. You can create one using
venv
orvirtualenv
. -
Docker (Optional): If your project uses Docker, ensure Docker is installed and running on your machine. You can download it from docker.com.
For pulling use this command
docker pull https://hub.docker.com/repository/docker/metaphysicist/credit-score-classifier/general
For running use this command
docker run -it -p 8000:8000 metaphysicist/credit-score-classifier
-
Clone the Repository
git clone https://github.com/yourusername/yourproject.git cd yourproject
-
Create and Activate a Virtual Environment
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Run the Application
If using FastAPI with Uvicorn, you can start the server with:
uvicorn app.api.endpoints.prediction:router --reload
This will start the server on
http://127.0.0.1:8000
. -
Access the API
Open your browser or use a tool like
curl
or Postman to interact with the API athttp://127.0.0.1:8000
.
-
Build the Docker Image
docker build -t yourproject .
-
Run the Docker Container
docker run -p 8000:8000 yourproject
- Database Setup: If your project uses a database, ensure it is set up and running. Update the database connection settings in your configuration files as needed.
- Environment Variables: Set any necessary environment variables, such as API keys or database URLs, before running the application.
- If you encounter issues, check the logs for error messages.
- Ensure all dependencies are installed and up-to-date.
- Verify that your virtual environment is activated when running commands.