Welcome to the Bankruptcy Prediction Project! This repository contains code and resources for predicting bankruptcy in UK retail companies based on financial ratios data from 2017 to 2021. The project aims to help retail businesses become more aware of their financial situation and identify key financial ratios that are crucial in avoiding bankruptcy risks.
-
Clone the repository:
git clone https://github.com/abdullah9041/Bankruptcy-Prediction.git cd your-repo-name -
Set up a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
-
Prepare your dataset files (inactive and active companies) in Excel format and update paths in
config.py. -
Customize
config.pywith dataset paths and configuration. -
Run the main script:
python main.py
-
Explore output results and visualizations. The project uses ML algorithms like Logistic Regression, k-NN, Random Forest, Neural Networks, Linear SVM.
- Data cleaning and preprocessing.
- Exploratory data analysis (EDA) with visualizations.
- Train-test split and data normalization.
- Implementation of ML algorithms.
- Hyperparameter tuning and model evaluation.
Contributions welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch for your work.
- Make changes, write tests if needed.
- Test thoroughly.
- Submit a pull request explaining your changes.
This project is licensed under the MIT License.
