Giter Site home page Giter Site logo

risk_prediction_loan_application's Introduction

Risk Prediction for customer loan application

Project Structure

project_root/
│
├── src/
│   ├── pickel
│   │       └── model.pkl
│   ├── eda_notebooks
│   │         └── exploratory_data_analysis_initial_phase.ipynb
│   ├── base_model.py
│   ├── data_ingestion.py
│   ├── data_preprocessing.py
│   ├── model_deployment.py
│   ├── model_evaluation.py
│   ├── model_training.py
│   ├── pipeline.py
│   ├── utils.py
│   ├── pipeline.ipynb
├── .env
├── .gitignore
├── config.json
├── app.py
├── requirements.txt
├── index.html
├── .streamlit
│       └── config.toml
├── pipeline_stages.png
├── data/
│     ├── loan.csv
│     ├── plots
│           ├── corelation_btwn_principal_apr_repayment_amt.png
│           ├── correlation_heatmap.png
│           ├── loan_application_status_with_repay_trends_bargraph.png
│           ├── relation_between_cleint_paying_freq_and_fraud_score.png
│           ├── turnover_clients.png
│       
└── project_output_images/
            ├── 1.png, 2.png, 3.png, 4.png

Steps to run the project

  • brew install libomp {install as per your operating system- i was using macos}

  • To run the application

    • Go to root folder {project_root}
    • run: pip install -r requirements.txt
    • run: streamlit run app.py
  • Now If you want to run the piepline script, Please open pipeline.py and uncomment the main and run the script

Deatuils on Project structure:

  • src/ : Contains all the Python scripts for data ingestion, preprocessing, model training, evaluation, deployment, pipeline(main class) utils, pickel file for model, EDA notebook.

    • pickel/: Directory to contains the saved (trained model)
    • notebooks/ : Directory to contains the Exploratory Data Analysis(EDA) notebook to evaluate and understand data
    • app.py - The Streamlit application script for the web interface.
    • utils.py - Helper script to load env variables and get file paths for csv and model path
    • pipeline,ipynb - a notebook to run the and test pipeline block by block
  • .env : Set the environemnt variables for different paths

  • config.py : Helper script to store

  • Which columns to remove during training {columns which are not at all needed}

  • Store the target column name

  • requirements.txt - Lists all the Python packages that need to be installed.

  • data/ - Directory for storing input data and any processed datasets and plots generated during .ipynb notebook evaluations.

  • project_output_images/ - This folder contains my output images of the web-ui and display outputs of running model following pipeline stages

  • index.html : documentation html for intermal working of the pipeline

Details on Pipeline:

  • Read index.html

Possible error while setting up

risk_prediction_loan_application's People

Contributors

05satyam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.