rllm.datasets.BankMarketing

class rllm.datasets.BankMarketing(cached_dir: str, forced_reload: bool | None = False)[source]

Bases: Dataset

The Bank Marketing dataset is related to direct marketing campaigns of a Portuguese banking institution. The marketing campaigns were based on phone calls. Often, more than one contact to the same client was required in order to assess if the product (bank term deposit) would be subscribed. The classification goal is to predict if the client will subscribe to a term deposit.

The dataset encompasses a variety of features pertaining to clients and their banking information. The primary objective is to predict whether a client will subscribe to a term deposit.

Parameters:
  • cached_dir (str) – Root directory where dataset should be saved.

  • forced_reload (bool) – If set to True, this dataset will be re-processed again.

Statics:
Name   Clients  Features
Size   45211    16
download()[source]

download the datasets to self.raw_dir

process()[source]

process data and save to ‘./cached_dir/{dataset}/processed/’.

property processed_filenames

file names in the self.processed_dir

property raw_filenames

file names in the self.raw_dir