Machine learning module for banking
Project description
Banking Project
Machine learning is important for banking and finance because it can help banks and financial institutions to automate and improve their processes. Machine learning can help banks to identify and prevent fraud, to better assess risk, and to make better lending and investment decisions. Machine learning can also help financial institutions to better understand and predict customer behavior. This is an opensource library which aims to create state of the art machine learning models to help all financial institutions deploy technology at scale.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pybanking-0.9.1.tar.gz
.
File metadata
- Download URL: pybanking-0.9.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1abf76b508c760cc01c3eb92d8fa772bbb13a164365c55b5cea4dd50a2433cb4 |
|
MD5 | 47b1323ecae6f878ab5a428b8b1de763 |
|
BLAKE2b-256 | 4c6f1158917d2c83698450005467fadff8b877ae088a8b420fce65bcdddff6ca |