Datasets:
File size: 3,744 Bytes
7d0d7a1 89438aa 7d0d7a1 89438aa b7abdae 7d0d7a1 b9af923 b83d9c0 b9af923 b83d9c0 b9af923 b83d9c0 b9af923 b7abdae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
---
configs:
- config_name: two-years-recidividity
data_files:
- path: two-years-recidividity/train.csv
split: train
default: true
- config_name: two-years-recidividity-no-race
data_files:
- path: two-years-recidividity-no-race/train.csv
split: train
default: false
- config_name: priors-prediction
data_files:
- path: priors-prediction/train.csv
split: train
default: false
- config_name: priors-prediction-no-race
data_files:
- path: priors-prediction-no-race/train.csv
split: train
default: false
language: en
license: cc
pretty_name: Compas
size_categories: 1M<n<10M
tags:
- tabular_classification
- binary_classification
- multiclass_classification
task_categories:
- tabular-classification
---
# Compas
The [Compas dataset](https://github.com/propublica/compas-analysis) for recidivism prediction.
Dataset known to have racial bias issues, check this [Propublica article](https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing) on the topic.
# Configurations and tasks
| **Configuration** | **Task** | Description |
|----------------------------------|---------------------------|-----------------------------------------------------------------|
| encoding | | Encoding dictionary showing original values of encoded features.|
| two-years-recidividity | Binary classification | Will the defendant be a violent recidivist? |
| two-years-recidividity-no-race | Binary classification | As above, but the `race` feature is removed. |
| priors-prediction | Regression | How many prior crimes has the defendant committed? |
| priors-prediction-no-race | Binary classification | As above, but the `race` feature is removed. |
| race | Multiclass classification | What is the `race` of the defendant? |
# Usage
```python
from datasets import load_dataset
dataset = load_dataset("mstz/compas", "two-years-recidividity")["train"]
```
# Features
|**Feature** |**Type** |**Description** |
|---------------------------------------|-----------|---------------------------------------|
|`sex` |`int64` | |
|`age` |`int64` | |
|`race` |`int64` | |
|`number_of_juvenile_fellonies` |`int64` | |
|`decile_score` |`int64` |Criminality score |
|`number_of_juvenile_misdemeanors` |`int64` | |
|`number_of_other_juvenile_offenses` |`int64` | |
|`number_of_prior_offenses` |`int64` | |
|`days_before_screening_arrest` |`int64` | |
|`is_recidivous` |`int64` | |
|`days_in_custody` |`int64` |Days spent in custody |
|`is_violent_recidivous` |`int64` | |
|`violence_decile_score` |`int64` |Criminality score for violent crimes |
|`two_years_recidivous` |`int64` | | |