Skip to content

nurulashraf/naive-bayes-loan-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naive Bayes Loan Prediction

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.

Project Structure

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

Features

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

Tools & Libraries

  • Python 3.x
  • Pandas
  • NumPy
  • Scikit-learn
  • Jupyter Notebook
  • Pickle

How to Use

  1. Clone the repository:

    git clone https://github.com/nurulashraf/naive-bayes-loan-prediction.git
    cd naive-bayes-loan-prediction
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the notebook:

    Open notebooks/naive_bayes_loan_prediction.ipynb and step through the cells to see data preprocessing, model training, and evaluation.


License

This project is licensed under the MIT License.

About

A simple machine learning project that predicts loan approval status using a Naive Bayes classifier. Includes data cleaning, model training, evaluation, and prediction steps to demonstrate the full workflow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors