parquet-converter commited on
Commit
26557ab
1 Parent(s): 191ab1f

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,53 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.lz4 filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.npy filter=lfs diff=lfs merge=lfs -text
14
- *.npz filter=lfs diff=lfs merge=lfs -text
15
- *.onnx filter=lfs diff=lfs merge=lfs -text
16
- *.ot filter=lfs diff=lfs merge=lfs -text
17
- *.parquet filter=lfs diff=lfs merge=lfs -text
18
- *.pb filter=lfs diff=lfs merge=lfs -text
19
- *.pickle filter=lfs diff=lfs merge=lfs -text
20
- *.pkl filter=lfs diff=lfs merge=lfs -text
21
- *.pt filter=lfs diff=lfs merge=lfs -text
22
- *.pth filter=lfs diff=lfs merge=lfs -text
23
- *.rar filter=lfs diff=lfs merge=lfs -text
24
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
- *.tar.* filter=lfs diff=lfs merge=lfs -text
26
- *.tflite filter=lfs diff=lfs merge=lfs -text
27
- *.tgz filter=lfs diff=lfs merge=lfs -text
28
- *.wasm filter=lfs diff=lfs merge=lfs -text
29
- *.xz filter=lfs diff=lfs merge=lfs -text
30
- *.zip filter=lfs diff=lfs merge=lfs -text
31
- *.zst filter=lfs diff=lfs merge=lfs -text
32
- *tfevents* filter=lfs diff=lfs merge=lfs -text
33
- # Audio files - uncompressed
34
- *.pcm filter=lfs diff=lfs merge=lfs -text
35
- *.sam filter=lfs diff=lfs merge=lfs -text
36
- *.raw filter=lfs diff=lfs merge=lfs -text
37
- # Audio files - compressed
38
- *.aac filter=lfs diff=lfs merge=lfs -text
39
- *.flac filter=lfs diff=lfs merge=lfs -text
40
- *.mp3 filter=lfs diff=lfs merge=lfs -text
41
- *.ogg filter=lfs diff=lfs merge=lfs -text
42
- *.wav filter=lfs diff=lfs merge=lfs -text
43
- # Image files - uncompressed
44
- *.bmp filter=lfs diff=lfs merge=lfs -text
45
- *.gif filter=lfs diff=lfs merge=lfs -text
46
- *.png filter=lfs diff=lfs merge=lfs -text
47
- *.tiff filter=lfs diff=lfs merge=lfs -text
48
- # Image files - compressed
49
- *.jpg filter=lfs diff=lfs merge=lfs -text
50
- *.jpeg filter=lfs diff=lfs merge=lfs -text
51
- *.webp filter=lfs diff=lfs merge=lfs -text
52
- train.csv filter=lfs diff=lfs merge=lfs -text
53
- test.csv filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,59 +0,0 @@
1
- ---
2
- annotations_creators: []
3
- language: []
4
- language_creators: []
5
- license: []
6
- multilinguality: []
7
- pretty_name: diabetes-readmission
8
- size_categories:
9
- - 100K<n<1M
10
- source_datasets: []
11
- tags:
12
- - interpretability
13
- - fairness
14
- - medicine
15
- task_categories:
16
- - tabular-classification
17
- task_ids: []
18
- ---
19
-
20
- Port of the diabetes-readmission dataset from UCI (link [here](https://archive.ics.uci.edu/ml/datasets/diabetes+130-us+hospitals+for+years+1999-2008)). See details there and use carefully.
21
-
22
- Basic preprocessing done by the [imodels team](https://github.com/csinva/imodels) in [this notebook](https://github.com/csinva/imodels-data/blob/master/notebooks_fetch_data/00_get_datasets_custom.ipynb).
23
-
24
- The target is the binary outcome `readmitted`.
25
-
26
- ### Sample usage
27
-
28
- Load the data:
29
-
30
- ```
31
- from datasets import load_dataset
32
-
33
- dataset = load_dataset("imodels/diabetes-readmission")
34
- df = pd.DataFrame(dataset['train'])
35
- X = df.drop(columns=['readmitted'])
36
- y = df['readmitted'].values
37
- ```
38
-
39
- Fit a model:
40
-
41
- ```
42
- import imodels
43
- import numpy as np
44
-
45
- m = imodels.FIGSClassifier(max_rules=5)
46
- m.fit(X, y)
47
- print(m)
48
- ```
49
-
50
-
51
- Evaluate:
52
-
53
-
54
- ```
55
- df_test = pd.DataFrame(dataset['test'])
56
- X_test = df.drop(columns=['readmitted'])
57
- y_test = df['readmitted'].values
58
- print('accuracy', np.mean(m.predict(X_test) == y_test))
59
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test.csv → imodels--diabetes-readmission/csv-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:791bc5550175685d56ad5ae921b9b7b23cc4ad81a476d371337794e63ef7744d
3
- size 12292268
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cfeb997a33f96d5b505ae05b85de16f2ce1f6567b338d5eed50d0fa497a164c
3
+ size 1433807
train.csv → imodels--diabetes-readmission/csv-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:35251c3248445e51d370b5665ea38b439bef00423fceef2edea6ed6c08c0cc99
3
- size 49159045
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e4f7cca1d366f35d5c5b3968102c0d2a4cc772f3f4296bc974ef24ec0805125
3
+ size 5577174