Skip to content

Luciano-C/Term-Deposit-Django-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this project

This project aims to practice some of the things I have been learning lately about Machine Learning, and being able to integrate those into more complex Django app. During this project, I have acquired and practiced various important skills including:

  • Some exploratory data analysis using plots.
  • Model selection and hyperparameter tuning using grid search with cross validation.
  • Predictive system using train test split.
  • Using the model in a Django app using pickle files.
  • Web scraping to get dollar and euro values from another website.
  • Django form based on a Django model.
  • File input in Django.
  • CRUD operations in Django.
  • Present the data in charts in the Django app using Chart.js.

About the problem

Term deposits are a major source of income for a bank. A term deposit is a cash investment held at a financial institution. Your money is invested for an agreed rate of interest over a fixed amount of time, or term. The bank has various outreach plans to sell term deposits to their customers such as email marketing, advertisements, telephonic marketing, and digital marketing.

Telephonic marketing campaigns still remain one of the most effective way to reach out to people. However, they require huge investment as large call centers are hired to actually execute these campaigns. Hence, it is crucial to identify the customers most likely to convert beforehand so that they can be specifically targeted via call.

The data is related to direct marketing campaigns (phone calls) of a Portuguese banking institution. The classification goal is to predict if the client will subscribe to a term deposit.

To run Django project

Commands on terminal

$ virtualenv venv
$ pip install -r requirements.txt
$ . venv/Scripts/activate
$ python manage.py runserver

To run Jupyter notebook

Commands on terminal

$ virtualenv venv
$ pip install -r requirements.txt
$ . venv/Scripts/activate
$ jupyter notebook

Note that if you installed the requirements to run the Django project, you don't need to install them again for the Jupyter Notebook and vice versa.

You will also need to create a .env file in the root folder with the following variables:

SECRET_KEY=Your secret key
DB_USER=Your user (usually root)
DB_PASSWORD=Your password
DB_HOST=Your host (usually localhost)
DB_PORT=Your port (usually 3306 for MySQL)
DB_NAME=Your database name

You can also just modify this information on settings.py file in CapitalCall folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published