Skip to main content

No project description provided

Project description

Banking Project

This is the banking project contains models on customer chrun, revenue prediction, and more. For queries contact apurv@shorthillstech.com.

Installing

pip install pybanking

Usage

>>> from pybanking.example import custom_sklearn
>>> custom_sklearn.get_sklearn_version()
'0.24.2'

Churn Prediction

In this module, we have a dataset that consists of 10,000 customers mentioning their age, salary, marital_status, credit card limit, credit card category, etc. There are nearly 18 features.

Challenge: We have only 16.07% of customers who have churned. Thus, it’s a bit difficult to train our model to predict churning customers.

Use case: A manager at the bank is disturbed with more and more customers leaving their credit card services. With the help of pybanking now they can predict who is going to get churned so they can proactively go to the customer to provide them better services and turn customers’ decisions in the opposite direction.

Solution: .. code-block:: bash

>>> from pybanking.churn_prediction import model_churn
>>> df = model_churn.get_data()
>>> model = model_churn.pretrained("Logistic_Regression")
>>> X, y = model_churn.preprocess_inputs(df)
>>> model_churn.predict(X, model)

Marketing Prediction

In this module, 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 (variable y).

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.

Solution: .. code-block:: bash

>>> from pybanking.deposit_prediction import model_banking_deposit
>>> df = model_banking_deposit.get_data()
>>> model = model_banking_deposit.pretrained("Logistic_Regression")
>>> X, y = model_banking_deposit.preprocess_inputs(df)
>>> model_banking_deposit.predict(X, model)

Transaction Prediction

In this module, we help you identify which customers will make a specific transaction in the future, irrespective of the amount of money transacted. The data provided for this module has the same structure as the real data banks have available to solve this problem.

Our data science team is continually challenging our machine learning algorithms, working with the global data science community to make sure we can more accurately identify new ways to solve our most common challenge, binary classification problems such as: is a customer satisfied? Will a customer buy this product? Can a customer pay this loan?

Solution: .. code-block:: bash

>>> from pybanking.transaction_prediction import model_transaction
>>> df = model_transaction.get_data()
>>> model = model_transaction.pretrained("Logistic_Regression")
>>> X, y = model_transaction.preprocess_inputs(df)
>>> model_transaction.predict(X, model)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybanking-0.8.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file pybanking-0.8.tar.gz.

File metadata

  • Download URL: pybanking-0.8.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for pybanking-0.8.tar.gz
Algorithm Hash digest
SHA256 8915596588f1b47c551f36fe02b0fa177527d433bbf69f168b9a8fc7b64b1709
MD5 2af1efbd33facf8cbc05340b8452c7a6
BLAKE2b-256 2b6e020e9478fa8d87bc8a83460102b488e3d9d38f955c727b5be3c279d50dc6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page