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
source: string
T: int64
delta: double
n_mc: int64
rows: list<item: struct<S: int64, regret: double, se: double, ci95: double, mean_alarms: double>>
  child 0, item: struct<S: int64, regret: double, se: double, ci95: double, mean_alarms: double>
      child 0, S: int64
      child 1, regret: double
      child 2, se: double
      child 3, ci95: double
      child 4, mean_alarms: double
slope: double
intercept: double
r2: double
gap: struct<rows: list<item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: (... 72 chars omitted)
  child 0, rows: list<item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: double, log_ (... 35 chars omitted)
      child 0, item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: double, log_S_plus_1: d (... 23 chars omitted)
          child 0, T: int64
          child 1, S: int64
          child 2, upper_factor: double
          child 3, lower_factor: double
          child 4, diff: double
          child 5, log_S_plus_1: double
          child 6, rel_err: double
  child 1, worst_rel_err: double
lemmaA5: struct<rows: list<item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: doub (... 94 chars omitted)
  child 0, rows: list<item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: double, ratio_to_ (... 37 chars omitted)
      child 0, item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: double, ratio_to_1plogT: dou (... 25 chars omitted)
          child 0, T: int64
          child 1, n_mc: int64
          child 2, R_var: double
          child 3, se: double
          child 4, harmonic_pred: double
          child 5, ratio_to_1plogT: double
          child 6, mean_alarms: double
  child 1, max_rel_err: double
  child 2, ratio_spread: double
to
{'source': List(Value('string')), 'lemmaA5': {'rows': List({'T': Value('int64'), 'n_mc': Value('int64'), 'R_var': Value('float64'), 'se': Value('float64'), 'harmonic_pred': Value('float64'), 'ratio_to_1plogT': Value('float64'), 'mean_alarms': Value('float64')}), 'max_rel_err': Value('float64'), 'ratio_spread': Value('float64')}, 'gap': {'rows': List({'T': Value('int64'), 'S': Value('int64'), 'upper_factor': Value('float64'), 'lower_factor': Value('float64'), 'diff': Value('float64'), 'log_S_plus_1': Value('float64'), 'rel_err': Value('float64')}), 'worst_rel_err': Value('float64')}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, 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 129, 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 489, 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 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, 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 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              source: string
              T: int64
              delta: double
              n_mc: int64
              rows: list<item: struct<S: int64, regret: double, se: double, ci95: double, mean_alarms: double>>
                child 0, item: struct<S: int64, regret: double, se: double, ci95: double, mean_alarms: double>
                    child 0, S: int64
                    child 1, regret: double
                    child 2, se: double
                    child 3, ci95: double
                    child 4, mean_alarms: double
              slope: double
              intercept: double
              r2: double
              gap: struct<rows: list<item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: (... 72 chars omitted)
                child 0, rows: list<item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: double, log_ (... 35 chars omitted)
                    child 0, item: struct<T: int64, S: int64, upper_factor: double, lower_factor: double, diff: double, log_S_plus_1: d (... 23 chars omitted)
                        child 0, T: int64
                        child 1, S: int64
                        child 2, upper_factor: double
                        child 3, lower_factor: double
                        child 4, diff: double
                        child 5, log_S_plus_1: double
                        child 6, rel_err: double
                child 1, worst_rel_err: double
              lemmaA5: struct<rows: list<item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: doub (... 94 chars omitted)
                child 0, rows: list<item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: double, ratio_to_ (... 37 chars omitted)
                    child 0, item: struct<T: int64, n_mc: int64, R_var: double, se: double, harmonic_pred: double, ratio_to_1plogT: dou (... 25 chars omitted)
                        child 0, T: int64
                        child 1, n_mc: int64
                        child 2, R_var: double
                        child 3, se: double
                        child 4, harmonic_pred: double
                        child 5, ratio_to_1plogT: double
                        child 6, mean_alarms: double
                child 1, max_rel_err: double
                child 2, ratio_spread: double
              to
              {'source': List(Value('string')), 'lemmaA5': {'rows': List({'T': Value('int64'), 'n_mc': Value('int64'), 'R_var': Value('float64'), 'se': Value('float64'), 'harmonic_pred': Value('float64'), 'ratio_to_1plogT': Value('float64'), 'mean_alarms': Value('float64')}), 'max_rel_err': Value('float64'), 'ratio_spread': Value('float64')}, 'gap': {'rows': List({'T': Value('int64'), 'S': Value('int64'), 'upper_factor': Value('float64'), 'lower_factor': Value('float64'), 'diff': Value('float64'), 'log_S_plus_1': Value('float64'), 'rel_err': Value('float64')}), 'worst_rel_err': Value('float64')}}
              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.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Reproduction bundle — The Cost of Learning Under Multiple Change Points

Independent CPU-only reproduction of Gafni, Iyengar & Zeevi, ICML 2026 (OpenReview xQLcklRDfM, arXiv 2602.11406).

Logbook: https://huggingface.co/spaces/JG1310/repro-the-cost-of-learning-under-multiple-change-points

Contents

Path What it is
atc_core.py ATC (Algorithm 1), exact + geometric scan; sliding-window and discounted-mean baselines; environment generators; population SNR quantities (Eqs. 9–13)
claim1.py Claim 1 — horizon-freeness, threshold re-derivation, Lemmas A.2/A.4/A.5, Theorem 4.1/4.2 scaling, log(S) gap
claim2.py Claim 2 — Proposition 3.1 sweep, confounding isolation, passive baselines, constant thresholds, NAB
claim3.py Claim 3 — selective detection sweep, adversarial + dense regimes, complexity
make_figures.py All logbook figures
data/ NAB ec2_cpu_utilization_ac20cd.csv (from the public Numenta Anomaly Benchmark repo; md5 14a0e0d6b9d46a2dbdcfac9464336c02, byte-identical to the copy vendored in the authors' release)
outputs/*.json Every measured number, including per-configuration raw rows
figures/*.png Rendered figures
logs/*.log Verbatim stdout of every run
pages/*.md Logbook page sources

Reproducing

pip install numpy scipy matplotlib joblib numba
cd repro

# Claim 1 — fast re-derivation checks, then the paper-scale sweeps
python3 claim1.py hf thr gap lb          # horizon-freeness, Eq. (7) calibration, log(S) gap, LB optimisation
python3 claim1.py l2 l4 l5               # Lemmas A.2 / A.4 / A.5 at 20,000 replications
python3 claim1.py t41 t41s               # Theorem 4.1: Fig. 3(c) at 5000 MC, Fig. 9 linear-in-S

# Claim 2
python3 claim2.py conf p31 passive const nab

# Claim 3
python3 claim3.py sel adv dense comp

python3 make_figures.py

All re-derivation checks are self-asserting: a violated lemma or structural check raises and exits non-zero. t41, t41s, passive, const, adv and dense are measurement sweeps and print fits rather than asserting.

Runtime on 16 CPU cores: roughly 12 min for the Claim 1 sweep at the paper's 5000 Monte-Carlo replications, and about 1.5 h for the whole bundle.

Implementation notes

atc_core.py was written from the paper's equations, then diffed line-by-line against the authors' released code (icml/ATC.py at https://github.com/gafnito/cost-of-learning-multiple-change-points, the URL given in the paper's footnote 3). The module docstring records the full comparison: which conventions differ (restart index, regret summation range, sigma placement — all resolved in favour of the paper) and which were confirmed identical (alpha_r schedule, threshold, scan range, alarm rule, and the midpoint candidate in the geometric scan).

We also found that Algorithm 1 line 7 is a typo: it typesets sigma inside the radical, contradicting the dimensionally correct Eq. (4). We follow Eq. (4), as does the authors' release.

The exact-scan inner loop is algebraically rewritten to be division- and sqrt-free (see the comment in run_atc); it was verified bit-exact against a direct transcription of Eq. (4) on multiple seeds before use.

A correction worth recording

check_sel in claim3.py previously compared App. A.1.6's ceiling R(t) <= min{a Delta^2, sigma^2 (gamma_t^r)^2} against total post-change regret minus a Delta=0 control run, and appeared to falsify it. That comparison is invalid: the Delta=0 control never restarts, so it does not contain the fresh Theta(sigma^2 log L) estimation-variance cost that a large-Delta run pays after its restart, and subtracting it leaves a positive variance residue. The check now forms the paper's own Lemma A.1 bias/variance decomposition across the Monte-Carlo ensemble and compares only the bias branch, which is the quantity the ceiling actually bounds. Under the corrected comparison the ceiling holds at every Delta (worst ratio 0.97).

Downloads last month
20