This repository contains a deployment-ready machine learning model artifact developed as part of the SpringForge Code Quality Analysis initiative. The project provides a Python-based service that loads a pre-trained Architecture-Aware Anti-Pattern Classification Model and exposes it through a structured application layer.
The focus of this repository is model readiness for deployment, including clean code organization, model loading, schema definitions, and dependency management.
- Load and serve a pre-trained machine learning model
- Ensure clear separation between application logic and model artifacts
- Provide a clean, extensible structure suitable for deployment
- Maintain reproducibility and maintainability using Python best practices
- Model Type: Architecture-Aware Anti-Pattern Classification Model
- Format: Serialized using
joblib - Purpose: Detect and classify software architecture anti-patterns to support code quality analysis
The trained model is stored separately from the application logic to support scalability and easy updates.
SpringForge-CodeQuality-ML-Service/
│
├── app/
│ ├── main.py # Application entry point
│ ├── model_loader.py # Model loading logic
│ ├── schemas.py # Data schemas and validation
│ ├── __init__.py
│
├── models/
│ └── architecture_aware_antipattern_model.joblib
│
├── requirements.txt # Python dependencies
└── Dockerfile # Present but not used in this setup
- Programming Language: Python 3.x
- Libraries: NumPy, Pandas, Scikit-learn, Joblib
- Environment: Python Virtual Environment (
venv) - Version Control: Git & GitHub
⚠️ Note: Docker is not used in the current execution or deployment of this project.
git clone https://github.com/<your-username>/<repository-name>.git
cd <repository-name>python -m venv venvActivate it:
Windows
venv\Scripts\activatepip install -r requirements.txtpython -m app.mainThis repository is considered deployment-ready because:
- The trained model is serialized and versioned
- Application logic is modular and clean
- Dependencies are explicitly defined
- Environment isolation is supported via virtual environments
- The project can be easily integrated into a larger deployment pipeline
This repository is intended for:
- Academic evaluation
- Demonstration of ML deployment readiness
- Integration into backend services
- Further containerization or cloud deployment (optional in future)
- Add REST API layer (FastAPI)
- Enable Docker-based deployment
- Add CI/CD pipeline
- Add monitoring and logging
- Extend support for additional code quality metrics
This project is developed for academic and research purposes.