Datasets:
parquet-converter
commited on
Commit
•
546a4c3
1
Parent(s):
aa2d71d
Update parquet files
Browse files- .gitattributes +0 -51
- README.md +0 -59
- imodels--credit-card/csv-test.parquet +3 -0
- imodels--credit-card/csv-train.parquet +3 -0
- test.csv +0 -0
- train.csv +0 -0
.gitattributes
DELETED
@@ -1,51 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators: []
|
3 |
-
language: []
|
4 |
-
language_creators: []
|
5 |
-
license: []
|
6 |
-
multilinguality: []
|
7 |
-
pretty_name: credit-card
|
8 |
-
size_categories:
|
9 |
-
- 10K<n<100K
|
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 credit-card dataset from UCI (link [here](https://www.kaggle.com/datasets/uciml/default-of-credit-card-clients-dataset)). 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 `default.payment.next.month`.
|
25 |
-
|
26 |
-
### Sample usage
|
27 |
-
|
28 |
-
Load the data:
|
29 |
-
|
30 |
-
```
|
31 |
-
from datasets import load_dataset
|
32 |
-
|
33 |
-
dataset = load_dataset("imodels/credit-card")
|
34 |
-
df = pd.DataFrame(dataset['train'])
|
35 |
-
X = df.drop(columns=['default.payment.next.month'])
|
36 |
-
y = df['default.payment.next.month'].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=['default.payment.next.month'])
|
57 |
-
y_test = df['default.payment.next.month'].values
|
58 |
-
print('accuracy', np.mean(m.predict(X_test) == y_test))
|
59 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
imodels--credit-card/csv-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ce07a34d929a20ab77dbffa6a407253a76a1cc883c5f845cb1b762bf9be84bb
|
3 |
+
size 438320
|
imodels--credit-card/csv-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d69fd9ddb1a384a794ada87aeb4903a1f74d1580b017b5268300ccc60f02f190
|
3 |
+
size 1728155
|
test.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
train.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|