Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
provenance: struct<timestamp_utc: string, bcfl_version: string, torch_version: string, device: string, gpu_name: (... 206 chars omitted)
  child 0, timestamp_utc: string
  child 1, bcfl_version: string
  child 2, torch_version: string
  child 3, device: string
  child 4, gpu_name: string
  child 5, dataset_source: string
  child 6, train_samples: int64
  child 7, test_samples: int64
  child 8, client_sizes: list<item: int64>
      child 0, item: int64
  child 9, rounds: int64
  child 10, local_epochs: int64
  child 11, lr: double
  child 12, seed: int64
  child 13, fast: bool
  child 14, elapsed_seconds: double
fig3: struct<15: list<item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: (... 584 chars omitted)
  child 0, 15: list<item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: int64, sel (... 120 chars omitted)
      child 0, item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: int64, selected_miner (... 108 chars omitted)
          child 0, s_d: int64
          child 1, latency: double
          child 2, energy: double
          child 3, a_fork: int64
          child 4, num_miners: int64
          child 5, selected_miners: list<item: int64>
              child 0, item: int64
          child 6, selected_devices: list<item: int64>
              child 0, item: int64
          child 7, accuracy: double
          child 8, macro_f1: double
          child 9, loss: double
  child 1, 2
...
_fork: int64, num_miners: int64, t_fl: double, t_verify: double, t_pow_prop: double, t_fork_ (... 162 chars omitted)
          child 0, a_fork: int64
          child 1, num_miners: int64
          child 2, t_fl: double
          child 3, t_verify: double
          child 4, t_pow_prop: double
          child 5, t_fork_waste: double
          child 6, t_download: double
          child 7, t_total: double
          child 8, e_fl: double
          child 9, e_verify: double
          child 10, e_pow_prop: double
          child 11, e_fork_waste: double
          child 12, e_download: double
          child 13, e_total: double
      child 3, Proposed BC-FL (40): struct<a_fork: int64, num_miners: int64, t_fl: double, t_verify: double, t_pow_prop: double, t_fork_ (... 162 chars omitted)
          child 0, a_fork: int64
          child 1, num_miners: int64
          child 2, t_fl: double
          child 3, t_verify: double
          child 4, t_pow_prop: double
          child 5, t_fork_waste: double
          child 6, t_download: double
          child 7, t_total: double
          child 8, e_fl: double
          child 9, e_verify: double
          child 10, e_pow_prop: double
          child 11, e_fork_waste: double
          child 12, e_download: double
          child 13, e_total: double
train_samples: int64
dataset: string
source: string
num_clients: int64
client_sizes: list<item: int64>
  child 0, item: int64
test_samples: int64
keywords: list<item: string>
  child 0, item: string
to
{'dataset': Value('string'), 'keywords': List(Value('string')), 'num_clients': Value('int64'), 'client_sizes': List(Value('int64')), 'train_samples': Value('int64'), 'test_samples': Value('int64'), 'source': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, 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 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, 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 574, 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 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, 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 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, 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 373, 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 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              provenance: struct<timestamp_utc: string, bcfl_version: string, torch_version: string, device: string, gpu_name: (... 206 chars omitted)
                child 0, timestamp_utc: string
                child 1, bcfl_version: string
                child 2, torch_version: string
                child 3, device: string
                child 4, gpu_name: string
                child 5, dataset_source: string
                child 6, train_samples: int64
                child 7, test_samples: int64
                child 8, client_sizes: list<item: int64>
                    child 0, item: int64
                child 9, rounds: int64
                child 10, local_epochs: int64
                child 11, lr: double
                child 12, seed: int64
                child 13, fast: bool
                child 14, elapsed_seconds: double
              fig3: struct<15: list<item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: (... 584 chars omitted)
                child 0, 15: list<item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: int64, sel (... 120 chars omitted)
                    child 0, item: struct<s_d: int64, latency: double, energy: double, a_fork: int64, num_miners: int64, selected_miner (... 108 chars omitted)
                        child 0, s_d: int64
                        child 1, latency: double
                        child 2, energy: double
                        child 3, a_fork: int64
                        child 4, num_miners: int64
                        child 5, selected_miners: list<item: int64>
                            child 0, item: int64
                        child 6, selected_devices: list<item: int64>
                            child 0, item: int64
                        child 7, accuracy: double
                        child 8, macro_f1: double
                        child 9, loss: double
                child 1, 2
              ...
              _fork: int64, num_miners: int64, t_fl: double, t_verify: double, t_pow_prop: double, t_fork_ (... 162 chars omitted)
                        child 0, a_fork: int64
                        child 1, num_miners: int64
                        child 2, t_fl: double
                        child 3, t_verify: double
                        child 4, t_pow_prop: double
                        child 5, t_fork_waste: double
                        child 6, t_download: double
                        child 7, t_total: double
                        child 8, e_fl: double
                        child 9, e_verify: double
                        child 10, e_pow_prop: double
                        child 11, e_fork_waste: double
                        child 12, e_download: double
                        child 13, e_total: double
                    child 3, Proposed BC-FL (40): struct<a_fork: int64, num_miners: int64, t_fl: double, t_verify: double, t_pow_prop: double, t_fork_ (... 162 chars omitted)
                        child 0, a_fork: int64
                        child 1, num_miners: int64
                        child 2, t_fl: double
                        child 3, t_verify: double
                        child 4, t_pow_prop: double
                        child 5, t_fork_waste: double
                        child 6, t_download: double
                        child 7, t_total: double
                        child 8, e_fl: double
                        child 9, e_verify: double
                        child 10, e_pow_prop: double
                        child 11, e_fork_waste: double
                        child 12, e_download: double
                        child 13, e_total: double
              train_samples: int64
              dataset: string
              source: string
              num_clients: int64
              client_sizes: list<item: int64>
                child 0, item: int64
              test_samples: int64
              keywords: list<item: string>
                child 0, item: string
              to
              {'dataset': Value('string'), 'keywords': List(Value('string')), 'num_clients': Value('int64'), 'client_sizes': List(Value('int64')), 'train_samples': Value('int64'), 'test_samples': Value('int64'), 'source': Value('string')}
              because column names don't match

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.

BC-FL Federated Google Speech Commands (50 Non-Uniform Edge Clients)

Exact 8-keyword (go, stop, left, right, up, down, yes, no) spectrogram partition used in the open-source reproducible benchmark of:

D. Kushwaha, M. Kalavadia, V. Hegde, and O. J. Pandey, "Energy-Efficient and Latency-Aware Blockchain-Enabled Federated Learning for Edge Networks," IEEE TCAS-II, vol. 71, no. 3, pp. 1126–1130, 2024.

Contents

  • bcfl_gkws_50clients.npz β€” Precomputed 32Γ—32 standardized log-magnitude STFT spectrograms:
    • x_train: (16000, 1, 32, 32) float32 (2,000 samples per keyword)
    • y_train: (16000,) int64 (0..7 matching go, stop, left, right, up, down, yes, no)
    • client_id: (16000,) int64 (0..49, non-uniform Dirichlet Ξ±=0.75 split, D_n ∈ [72, 650])
    • x_test: (3276, 1, 32, 32) float32 (strictly from official testing_list.txt, zero leakage)
    • y_test: (3276,) int64
  • metadata.json β€” Exact client sample counts, keyword order, and split provenance.
  • results.json β€” Complete verified benchmark outputs (Fig. 3, Fig. 4, $\beta$-Pareto, $\lambda$-PoW stress).

Quick Load

import numpy as np
from huggingface_hub import hf_hub_download

path = hf_hub_download("v1nayh3g/bcfl-gkws-50clients", "bcfl_gkws_50clients.npz", repo_type="dataset")
data = np.load(path)
x_train, y_train, client_id = data["x_train"], data["y_train"], data["client_id"]
x_test, y_test = data["x_test"], data["y_test"]

License & Attribution

Derived from Google Speech Commands v0.02 (P. Warden, 2018, arXiv:1804.03209), distributed under CC-BY-4.0.

Downloads last month
43

Paper for v1nayh3g/bcfl-gkws-50clients