Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
image_idx: int64
rng_seed: double
params: struct<c: double>
child 0, c: double
output_sha256: string
wall_time_sec: double
image_shape: list<item: int64>
child 0, item: int64
function_module: string
severity: int64
master_seed: int64
n_images: int64
function_name: string
dataset: string
split: string
corruption: string
output_npy_sha256: string
to
{'dataset': Value('string'), 'corruption': Value('string'), 'severity': Value('int64'), 'split': Value('string'), 'master_seed': Value('int64'), 'n_images': Value('int64'), 'image_shape': List(Value('int64')), 'function_module': Value('string'), 'function_name': Value('string'), 'wall_time_sec': Value('float64'), 'output_npy_sha256': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
image_idx: int64
rng_seed: double
params: struct<c: double>
child 0, c: double
output_sha256: string
wall_time_sec: double
image_shape: list<item: int64>
child 0, item: int64
function_module: string
severity: int64
master_seed: int64
n_images: int64
function_name: string
dataset: string
split: string
corruption: string
output_npy_sha256: string
to
{'dataset': Value('string'), 'corruption': Value('string'), 'severity': Value('int64'), 'split': Value('string'), 'master_seed': Value('int64'), 'n_images': Value('int64'), 'image_shape': List(Value('int64')), 'function_module': Value('string'), 'function_name': Value('string'), 'wall_time_sec': Value('float64'), 'output_npy_sha256': Value('string')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
CILN-Bench: MNIST
This is a label noise dataset. We corrupt the MNIST noisy-label-train split, 27,000 images, with a known corruption type and severity. Four trained classifiers, called voters, label the corrupted inputs. Each voter's top class is one vote. The vote shares are the label distribution of the input. The true labels, every voter's softmax and the corruption seeds are included, so you can build any kind of label you want.
Settings
15 corruption types from MNIST-C. Most have severity 1, 3 and 5. scale only has its noisiest setting. The four structural corruptions are on or off, so each has one setting, saved as sev1. That gives 35 candidate settings. We keep a setting if its noise rate is at least 2.5%. 29 settings pass.
| Family | Corruptions |
|---|---|
| Noise | shot_noise, impulse_noise, spatter |
| Blur | glass_blur, motion_blur |
| Weather | brightness, fog |
| Geometric | rotate, shear, translate, scale |
| Structural | canny_edges, dotted_line, stripe, zigzag |
Released: brightness 1/3/5, canny_edges 1, fog 1/3/5, glass_blur 1/3/5, impulse_noise 1/3/5, motion_blur 3/5, rotate 3/5, scale 1, shear 3/5, shot_noise 5, spatter 1/3/5, stripe 1, translate 1/3/5, zigzag 1.
Dropped, below 2.5%: dotted_line, motion_blur 1, rotate 1, shear 1, shot_noise 1, shot_noise 3.
The noise rate is the share of votes that disagree with the true label. It goes from 2.5% to 71.5% across the 29 settings.
Voters
LeNet-5, MLP, ResNet-20 and DeiT3-Small. All were trained on the clean-label-train split, which is disjoint from the corrupted split.
Files
settings/
brightness_sev1/
noisy_label_train/
images.npy (27000, 28, 28, 1) uint8, corrupted images
labels.npy (27000,) int64, true labels
softmax_lenet5.npy (27000, 10) float32, one file per voter
softmax_mlp.npy
softmax_resnet20.npy
softmax_deit3_small.npy
avg_softmax.npy (27000, 10), mean over the voters
manifest.json
params.jsonl one line per image: seed, corruption parameters, sha256 of the image
noisy_label_valid/ same files, fewer images
... 29 settings
clean_start/ voter softmaxes on the clean inputs, labels.npy, clean_correct_mask.npy
splits/ index files for the clean-label-train, clean-label-valid, noisy-label-train, noisy-label-valid and test splits
sampled_labels/ the training labels we used in the paper
clean_start/clean_correct_mask.npy is True when every voter gets the clean input right. Those rows form the clean-start subset, called CILN-C in the paper.
sampled_labels/ has the training labels we used. For each row we pick one voter at random and use its top class. There is one label set per seed. Folder names are <setting>__S__seed<k> for the full release and <setting>__C__seed<k> for the clean-start subset. Each folder has y_noisy.npy, y_true.npy, voter_ids.npy and sampling_manifest.json.
How to load
import numpy as np
from huggingface_hub import snapshot_download
local = snapshot_download("sh-islam/ciln-bench-mnist", repo_type="dataset",
allow_patterns=["settings/rotate_sev5/noisy_label_train/*"])
images = np.load(f"{local}/settings/rotate_sev5/noisy_label_train/images.npy")
labels = np.load(f"{local}/settings/rotate_sev5/noisy_label_train/labels.npy")
avg = np.load(f"{local}/settings/rotate_sev5/noisy_label_train/avg_softmax.npy")
allow_patterns limits what gets downloaded. Leave it out to download everything.
MIT license.
- Downloads last month
- 135