Chandan Singh commited on
Commit
a7490ff
1 Parent(s): 8477b23

update widget

Browse files
Files changed (1) hide show
  1. README.md +82 -1
README.md CHANGED
@@ -3,50 +3,131 @@ license: mit
3
  tags:
4
  - tabular-classification
5
  - sklearn
 
6
  datasets:
7
  - imodels/compas-recidivism
8
  widget:
9
  structuredData:
10
  age:
11
  - 40.0
 
 
 
 
12
  priors_count:
13
  - 0.0
 
 
 
 
14
  days_b_screening_arrest:
15
  - -1.0
 
 
 
 
16
  c_jail_time:
17
  - 0.0
 
 
 
 
18
  juv_fel_count:
19
  - 0.0
 
 
 
 
20
  juv_other_count:
21
  - 0.0
 
 
 
 
22
  juv_misd_count:
23
  - 0.0
 
 
 
 
24
  c_charge_degree:F:
25
  - 0.0
 
 
 
 
26
  c_charge_degree:M:
27
  - 1.0
 
 
 
 
28
  race:African-American:
29
  - 0.0
 
 
 
 
30
  race:Asian:
31
  - 0.0
 
 
 
 
32
  race:Caucasian:
33
  - 1.0
 
 
 
 
34
  race:Hispanic:
35
  - 0.0
 
 
 
 
36
  race:Native_American:
37
  - 0.0
 
 
 
 
38
  race:Other:
39
  - 0.0
 
 
 
 
40
  age_cat:25_-_45:
41
  - 1.0
 
 
 
 
42
  age_cat:Greater_than_45:
43
  - 0.0
 
 
 
 
44
  age_cat:Less_than_25:
45
  - 0.0
 
 
 
 
46
  sex:Female:
47
  - 0.0
 
 
 
 
48
  sex:Male:
49
  - 1.0
 
 
 
 
50
  ---
51
 
52
 
@@ -77,7 +158,7 @@ import joblib
77
  import pandas as pd
78
 
79
  REPO_ID = "imodels/figs-compas-recidivism"
80
- FILENAME = "figs_model.joblib"
81
 
82
  model = joblib.load(cached_download(
83
  hf_hub_url(REPO_ID, FILENAME)
 
3
  tags:
4
  - tabular-classification
5
  - sklearn
6
+ - imodels
7
  datasets:
8
  - imodels/compas-recidivism
9
  widget:
10
  structuredData:
11
  age:
12
  - 40.0
13
+ - 25.0
14
+ - 36.0
15
+ - 23.0
16
+ - 29.0
17
  priors_count:
18
  - 0.0
19
+ - 1.0
20
+ - 11.0
21
+ - 1.0
22
+ - 0.0
23
  days_b_screening_arrest:
24
  - -1.0
25
+ - -1.0
26
+ - -1.0
27
+ - -1.0
28
+ - 0.0
29
  c_jail_time:
30
  - 0.0
31
+ - 1.0
32
+ - 2.0
33
+ - 0.0
34
+ - -1.0
35
  juv_fel_count:
36
  - 0.0
37
+ - 0.0
38
+ - 0.0
39
+ - 0.0
40
+ - 0.0
41
  juv_other_count:
42
  - 0.0
43
+ - 0.0
44
+ - 0.0
45
+ - 0.0
46
+ - 0.0
47
  juv_misd_count:
48
  - 0.0
49
+ - 0.0
50
+ - 0.0
51
+ - 1.0
52
+ - 0.0
53
  c_charge_degree:F:
54
  - 0.0
55
+ - 1.0
56
+ - 0.0
57
+ - 0.0
58
+ - 0.0
59
  c_charge_degree:M:
60
  - 1.0
61
+ - 0.0
62
+ - 1.0
63
+ - 1.0
64
+ - 1.0
65
  race:African-American:
66
  - 0.0
67
+ - 0.0
68
+ - 0.0
69
+ - 0.0
70
+ - 0.0
71
  race:Asian:
72
  - 0.0
73
+ - 0.0
74
+ - 0.0
75
+ - 0.0
76
+ - 0.0
77
  race:Caucasian:
78
  - 1.0
79
+ - 0.0
80
+ - 1.0
81
+ - 1.0
82
+ - 1.0
83
  race:Hispanic:
84
  - 0.0
85
+ - 0.0
86
+ - 0.0
87
+ - 0.0
88
+ - 0.0
89
  race:Native_American:
90
  - 0.0
91
+ - 0.0
92
+ - 0.0
93
+ - 0.0
94
+ - 0.0
95
  race:Other:
96
  - 0.0
97
+ - 1.0
98
+ - 0.0
99
+ - 0.0
100
+ - 0.0
101
  age_cat:25_-_45:
102
  - 1.0
103
+ - 1.0
104
+ - 1.0
105
+ - 0.0
106
+ - 1.0
107
  age_cat:Greater_than_45:
108
  - 0.0
109
+ - 0.0
110
+ - 0.0
111
+ - 0.0
112
+ - 0.0
113
  age_cat:Less_than_25:
114
  - 0.0
115
+ - 0.0
116
+ - 0.0
117
+ - 1.0
118
+ - 0.0
119
  sex:Female:
120
  - 0.0
121
+ - 0.0
122
+ - 0.0
123
+ - 0.0
124
+ - 0.0
125
  sex:Male:
126
  - 1.0
127
+ - 1.0
128
+ - 1.0
129
+ - 1.0
130
+ - 1.0
131
  ---
132
 
133
 
 
158
  import pandas as pd
159
 
160
  REPO_ID = "imodels/figs-compas-recidivism"
161
+ FILENAME = "sklearn_model.joblib"
162
 
163
  model = joblib.load(cached_download(
164
  hf_hub_url(REPO_ID, FILENAME)