Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,17 +20,27 @@ configs:
|
|
| 20 |
---
|
| 21 |
# Compas
|
| 22 |
The [Compas dataset](https://github.com/propublica/compas-analysis) for recidivism prediction.
|
|
|
|
| 23 |
|
| 24 |
# Configurations and tasks
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
# Features
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|**Feature** |**Type** |**Description** |
|
| 35 |
|---------------------------------------|-----------|---------------------------------------|
|
| 36 |
|`sex` |`int64` | |
|
|
|
|
| 20 |
---
|
| 21 |
# Compas
|
| 22 |
The [Compas dataset](https://github.com/propublica/compas-analysis) for recidivism prediction.
|
| 23 |
+
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.
|
| 24 |
|
| 25 |
# Configurations and tasks
|
| 26 |
+
| **Configuration** | **Task** | Description |
|
| 27 |
+
|----------------------------------|---------------------------|-----------------------------------------------------------------|
|
| 28 |
+
| encoding | | Encoding dictionary showing original values of encoded features.|
|
| 29 |
+
| two-years-recidividity | Binary classification | Will the defendant be a violent recidivist? |
|
| 30 |
+
| two-years-recidividity-no-race | Binary classification | As above, but the `race` feature is removed. |
|
| 31 |
+
| priors-prediction | Regression | How many prior crimes has the defendant committed? |
|
| 32 |
+
| priors-prediction-no-race | Binary classification | As above, but the `race` feature is removed. |
|
| 33 |
+
| race | Multiclass classification | What is the `race` of the defendant? |
|
| 34 |
|
|
|
|
| 35 |
|
| 36 |
+
# Usage
|
| 37 |
+
```python
|
| 38 |
+
from datasets import load_dataset
|
| 39 |
+
|
| 40 |
+
dataset = load_dataset("mstz/compas", "two-years-recidividity")["train"]
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
# Features
|
| 44 |
|**Feature** |**Type** |**Description** |
|
| 45 |
|---------------------------------------|-----------|---------------------------------------|
|
| 46 |
|`sex` |`int64` | |
|