mstz commited on
Commit
b83d9c0
1 Parent(s): a730e07

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -7
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
- - `encoding` Encoding of non-numerical variables.
26
- - `two-years-recidividity` Binary classification of violent recidivism.
27
- - `two-years-recidividity-no-race` As above, but the `race` feature is removed.
28
- - `priors-prediction` Regression on the number of prior offenses of defendant.
29
- - `priors-prediction-no-race` As above, but the `race` feature is removed.
30
- - `race` Multiclass classification, predict `race` out of other features.
 
 
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` | |