A powerful AI-powered decision support tool for loan approval prediction and client analysis.
DecisionHub is designed to assist analysts in making informed decisions about potential clients quickly and efficiently. This project was developed during a hackathon with the aim of streamlining the decision-making process by incorporating relevant parameters and data points.
- π€ AI-Powered Loan Prediction - Machine learning model (XGBoost) analyzes loan factors and predicts approval chances
- π Parameterized Analysis - Define and customize parameters relevant to your decision-making process
- π Rejection Insights - Get clear reasons for declined applications and areas for improvement
- β‘ Real-time Data Integration - Access the most up-to-date information when evaluating clients
- π― User-Friendly Interface - Intuitive design for easy navigation and analysis
- π Scalability - Built to accommodate growing needs and increasing client volume
- Python 3.8 or higher
- pip (Python package manager)
-
Clone the repository
git clone https://github.com/DEADSAW/DecisionHub.git cd DecisionHub -
Create a virtual environment (recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Access the application Open your browser and navigate to
http://localhost:5000
- Navigate to the loan approval form
- Fill in the applicant's details:
- Personal information (name, gender, education)
- Employment status
- Income details (applicant and co-applicant)
- Loan amount and term
- Credit history
- Property area
- Submit the form to get an instant prediction
Use the Create Rules and Strategy features to define custom decision-making parameters:
- Create Rules: Define individual decision rules based on specific criteria
- Create Strategy: Combine multiple rules into comprehensive evaluation strategies
- Debug/Test: Test your rules and strategies against sample data
DecisionHub/
βββ app.py # Flask application entry point
βββ requirements.txt # Python dependencies
βββ bin/ # ML model binaries
β βββ xgboostModel.pkl # Trained XGBoost model
βββ data/ # Data files and schemas
β βββ columns_set.json # Feature columns configuration
β βββ loan_train.csv # Training dataset
β βββ loan_test.csv # Test dataset
β βββ *.csv # Sample data files
βββ scripts/ # Utility scripts
β βββ generate_sample_data.py # Script to generate sample data
βββ static/ # Static assets for Flask app
β βββ css/
β βββ fonts/
β βββ images/
βββ template/ # Flask HTML templates
β βββ index.html # Main prediction form
β βββ prediction.html # Prediction results
β βββ error.html # Error page
βββ frontend/ # Frontend pages and assets
β βββ pages/ # HTML, CSS, JS files
βββ notebook/ # Jupyter notebooks
β βββ Machine Learning Model Dev.ipynb
βββ docs/ # Documentation
β βββ images/ # Screenshots and images
βββ CONTRIBUTING.md # Contribution guidelines
βββ LICENSE # MIT License
βββ README.md # This file
- Backend: Python, Flask
- Machine Learning: XGBoost, scikit-learn, pandas, numpy
- Frontend: HTML5, CSS3, JavaScript
- Model Serialization: joblib
We welcome contributions! Please see our Contributing Guidelines for details on how to:
- Report bugs
- Suggest features
- Submit pull requests
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- DecisionHub is still in active development
- Some features may be under construction
- We appreciate your feedback on any issues encountered
This project is licensed under the MIT License - see the LICENSE file for details.
- Sangam Rai - Initial work - DEADSAW
- Built during a hackathon with the goal of streamlining decision-making processes
- Thanks to all contributors who have helped improve this project
Made with β€οΈ for better decision making

