fetch_traffic_violations#

skrub.datasets.fetch_traffic_violations(data_home=None)[source]#

Fetches the traffic violations dataset (classification), available at skrub-data/skrub-data-files

Description of the dataset:

This dataset contains traffic violation information from all electronic traffic violations issued in the Montgomery County, MD. Any information that can be used to uniquely identify the vehicle, the vehicle owner or the officer issuing the violation will not be published.

Parameters:
data_home: str or path, default=None

The directory where to download and unzip the files.

Returns:
bunchsklearn.utils.Bunch

A dictionary-like object with the following keys:

  • traffic_violations : pd.DataFrame, the dataframe

  • X : pd.DataFrame, features, i.e. the dataframe without the target labels

  • y : pd.DataFrame, target labels

  • metadata : a dictionary containing the name, description, source and target