task_categories:tabular-classification size_categories:1K<n<10K language:en compas tabular_classification binary_classification UCI region:us
---
language:
- en
tags:
- compas
- tabular_classification
- binary_classification
- UCI
pretty_name: Bank
size_categories:
- 1K<n<10K
task_categories:
- tabular-classification
configs:
- encoding
- subscription
---
# Bank
The [Bank dataset](https://archive.ics.uci.edu/ml/datasets/bank+marketing) from the [UCI ML repository](https://archive.ics.uci.edu/ml/datasets).
Potential clients are contacted by a bank during a second advertisement campaign.
This datasets records the customer, the interaction with the AD campaign, and if they subscribed to a proposed bank plan or not.

# Configurations and tasks
| **Configuration** | **Task**                  | Description                                                     |
|-------------------|---------------------------|-----------------------------------------------------------------|
| encoding          |                           | Encoding dictionary showing original values of encoded features.|
| subscription      | Binary classification     | Has the customer subscribed to a bank plan?                     |

# Usage
```python
from datasets import load_dataset


dataset = load_dataset("mstz/bank", "subscription")["train"]
```

# Features
| **Name**                                      |**Type**   |
|-----------------------------------------------|-----------|
|`age`                                          |`int64`    |
|`job`                                          |`string`   |
|`marital_status`                               |`string`   |
|`education`                                    |`int8`     |
|`has_defaulted`                                |`int8`     |
|`account_balance`                              |`int64`    |
|`has_housing_loan`                             |`int8`     |
|`has_personal_loan`                            |`int8`     |
|`month_of_last_contact`                        |`string`   |
|`number_of_calls_in_ad_campaign`               |`string`   |
|`days_since_last_contact_of_previous_campaign` |`int16`    |
|`number_of_calls_before_this_campaign`         |`int16`    |
|`successfull_subscription`                     |`int8`     |