Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'los_7'}) and 1 missing columns ({'los_3'}).
This happened while the csv dataset builder was generating data using
hf://datasets/zhongys97/EHRGym-MIMIC-Extract/mortality_los/train_los7_labels.csv (at revision f8a51b335682b1fb389c5c1e6f374642148fe280)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
subject_id: int64
hadm_id: int64
los_7: bool
label_type: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 716
to
{'subject_id': Value(dtype='int64', id=None), 'hadm_id': Value(dtype='int64', id=None), 'los_3': Value(dtype='bool', id=None), 'label_type': Value(dtype='string', id=None)}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1428, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 989, in stream_convert_to_parquet
builder._prepare_split(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'los_7'}) and 1 missing columns ({'los_3'}).
This happened while the csv dataset builder was generating data using
hf://datasets/zhongys97/EHRGym-MIMIC-Extract/mortality_los/train_los7_labels.csv (at revision f8a51b335682b1fb389c5c1e6f374642148fe280)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
subject_id int64 | hadm_id int64 | los_3 bool | label_type string |
|---|---|---|---|
3 | 145,834 | true | boolean |
6 | 107,064 | true | boolean |
9 | 150,750 | true | boolean |
11 | 194,540 | false | boolean |
12 | 112,213 | true | boolean |
13 | 143,045 | true | boolean |
17 | 194,023 | false | boolean |
19 | 109,235 | false | boolean |
26 | 197,661 | false | boolean |
30 | 104,557 | false | boolean |
31 | 128,652 | true | boolean |
35 | 166,707 | true | boolean |
41 | 101,757 | true | boolean |
43 | 146,828 | true | boolean |
45 | 157,907 | false | boolean |
52 | 190,797 | false | boolean |
53 | 155,385 | false | boolean |
55 | 190,665 | false | boolean |
56 | 181,711 | false | boolean |
59 | 104,130 | false | boolean |
62 | 116,009 | false | boolean |
71 | 111,944 | false | boolean |
73 | 194,730 | false | boolean |
78 | 100,536 | false | boolean |
79 | 181,542 | false | boolean |
81 | 175,016 | false | boolean |
83 | 158,569 | false | boolean |
85 | 116,630 | false | boolean |
88 | 123,010 | false | boolean |
97 | 127,870 | true | boolean |
100 | 153,952 | false | boolean |
101 | 175,533 | true | boolean |
103 | 130,744 | true | boolean |
105 | 161,160 | true | boolean |
115 | 114,585 | true | boolean |
117 | 140,784 | false | boolean |
127 | 141,647 | true | boolean |
130 | 198,214 | true | boolean |
133 | 191,817 | true | boolean |
134 | 167,887 | false | boolean |
135 | 192,180 | false | boolean |
140 | 165,618 | false | boolean |
143 | 143,808 | false | boolean |
145 | 198,161 | true | boolean |
146 | 190,707 | true | boolean |
147 | 103,631 | true | boolean |
150 | 108,732 | false | boolean |
151 | 151,029 | true | boolean |
157 | 110,545 | false | boolean |
161 | 121,804 | false | boolean |
162 | 195,893 | false | boolean |
169 | 192,839 | false | boolean |
171 | 153,112 | true | boolean |
173 | 153,697 | false | boolean |
174 | 110,104 | true | boolean |
175 | 159,223 | false | boolean |
177 | 196,896 | true | boolean |
178 | 196,159 | false | boolean |
179 | 161,310 | true | boolean |
188 | 160,697 | false | boolean |
191 | 142,081 | true | boolean |
195 | 118,936 | true | boolean |
199 | 185,360 | false | boolean |
201 | 161,473 | true | boolean |
202 | 108,295 | false | boolean |
208 | 160,195 | true | boolean |
209 | 135,807 | true | boolean |
212 | 189,635 | false | boolean |
214 | 197,273 | false | boolean |
225 | 130,684 | true | boolean |
226 | 108,072 | false | boolean |
228 | 167,764 | true | boolean |
234 | 188,399 | true | boolean |
236 | 151,459 | true | boolean |
238 | 174,168 | false | boolean |
240 | 159,468 | false | boolean |
241 | 177,846 | false | boolean |
242 | 192,980 | false | boolean |
243 | 129,066 | false | boolean |
245 | 105,501 | true | boolean |
249 | 116,935 | true | boolean |
255 | 112,013 | false | boolean |
256 | 153,771 | true | boolean |
261 | 118,523 | true | boolean |
262 | 106,019 | false | boolean |
265 | 101,608 | true | boolean |
267 | 163,714 | true | boolean |
271 | 173,727 | false | boolean |
273 | 158,689 | false | boolean |
274 | 130,546 | true | boolean |
275 | 129,886 | true | boolean |
276 | 135,156 | false | boolean |
279 | 192,224 | true | boolean |
287 | 174,293 | false | boolean |
290 | 138,303 | true | boolean |
294 | 152,578 | false | boolean |
298 | 119,446 | false | boolean |
301 | 160,332 | false | boolean |
302 | 191,028 | false | boolean |
309 | 162,308 | false | boolean |
End of preview.
No dataset card yet
- Downloads last month
- 26