Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringForge – Deployment-ready Code Quality ML Service

📌 Overview

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.


🎯 Objectives

  • 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 Description

  • 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.


📁 Project Structure

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

⚙️ Technology Stack

  • 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.


🚀 Setup Instructions (Without Docker)

1️⃣ Clone the Repository

git clone https://github.com/<your-username>/<repository-name>.git
cd <repository-name>

2️⃣ Create a Virtual Environment

python -m venv venv

Activate it:

Windows

venv\Scripts\activate

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Run the Application

python -m app.main

✅ Deployment Readiness

This 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

📌 Usage Context

This repository is intended for:

  • Academic evaluation
  • Demonstration of ML deployment readiness
  • Integration into backend services
  • Further containerization or cloud deployment (optional in future)

🔮 Future Enhancements

  • Add REST API layer (FastAPI)
  • Enable Docker-based deployment
  • Add CI/CD pipeline
  • Add monitoring and logging
  • Extend support for additional code quality metrics

📄 License

This project is developed for academic and research purposes.

About

Deployment-ready ML model artifact for code quality analysis using FastAPI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages