A basic machine learning project that predicts loan approval status using a Naive Bayes classifier. This project demonstrates the steps of data preprocessing, model training, evaluation, and prediction with a focus on simplicity and clarity.
data/: Contains the dataset used for analysis and prediction.notebooks/: Jupyter notebooks for data analysis, feature engineering, and model building.README.md: Project overview and usage instructions.
- Cleans and preprocesses loan application data.
- Trains a Naive Bayes classifier to predict loan approval.
- Evaluates model accuracy with basic metrics.
- Saves the trained model for reuse.
- Allows new predictions with saved model.
- Python 3.x
- Pandas
- NumPy
- Scikit-learn
- Jupyter Notebook
- Pickle
-
Clone the repository:
git clone https://github.com/nurulashraf/naive-bayes-loan-prediction.git cd naive-bayes-loan-prediction -
Install dependencies:
pip install -r requirements.txt
-
Run the notebook:
Open
notebooks/naive_bayes_loan_prediction.ipynband step through the cells to see data preprocessing, model training, and evaluation.
This project is licensed under the MIT License.