Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      JSON parse error: Column() changed from object to string in row 0
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 354, in _generate_tables
                  df = pandas_read_json(f)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
                  return json_reader.read()
                         ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
                  obj = self._get_object_parser(self.data)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
                  obj = FrameParser(json, **kwargs).parse()
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
                  self._parse()
                  ~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1391, in _parse
                  self.obj = DataFrame(
                             ~~~~~~~~~^
                      ujson_loads(json, precise_float=self.precise_float), dtype=None
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/pandas/core/frame.py", line 782, in __init__
                  mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 503, in dict_to_mgr
                  return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 114, in arrays_to_mgr
                  index = _extract_index(arrays)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 680, in _extract_index
                  raise ValueError(
                      "Mixing dicts with non-Series may lead to ambiguous ordering."
                  )
              ValueError: Mixing dicts with non-Series may lead to ambiguous ordering.
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4675, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2885, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3095, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2600, in _iter_arrow
                  yield from 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 357, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0

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.

pendulum-shift-2-di — Intervention-Focused Questions

Intervention-focused CLEVRER-style questions for the 240 intervened pendulum videos of jimchen2/jimchen2-pendulum-shift-2.

The source dataset ships 1,920 questions (8 per video) that test general pendulum/light concepts. This repository keeps those questions and adds a second, larger set that is specifically about the interventions themselves: what changed, when it changed, what stayed the same, why the shadow moved, and what would happen under counterfactual interventions.


1. The two interventions

type videos what changes at frame 96 (t = 8.0 s) what stays the same
light_shift 120 the light source switches to a new mean / amplitude / frequency / phase pendulum physics (theta_deg diff = 0.0)
torque_push 120 an external torque impulse A·exp(−(t−8)²/2σ²) is applied to the bob light trajectory

Frames 0–95 are identical to the originals, so the intervention boundary is clean.

2. Files

README.md                                  this file
README_intervention.md                     full intervention documentation (from the source)
index_intervention.csv                     240 rows: original index + intervention parameters
intervention_log.json                      per-video intervention details + post-cut statistics

questions/
  questions_train.json                     original 1,920 questions (unchanged, for reference)
  questions_train_corrected.json           original questions with 39 factual corrections
  questions_intervention.json              3,840 new intervention-focused questions (16/video)
  questions_intervention.csv               same 3,840 questions as a flat CSV
  questions_all.json                       combined 5,760 questions (24/video)
  questions_all.csv                        same 5,760 questions as a flat CSV
  taxonomy.json                            original question-type registry
  taxonomy_intervention.json               new template + concept registry
  corrections.json                         machine-readable list of corrections

generate_intervention_questions.py         reproducible generator for the new questions
apply_corrections.py                       applies the corrections and builds questions_all.json

3. Question format

Every question follows the source schema and adds a few metadata fields:

{
  "question_type": "descriptive",
  "question": "After the change, the light's average position shifts ___",
  "choices": ["to the left", "to the right", "very little", "in a circle"],
  "answer": 2,
  "answer_text": "to the right",
  "concept": "light mean shift",
  "question_id": 3,
  "intervention_type": "light_shift",
  "cut_frame": 96,
  "cut_time_s": 8.0,
  "target": "light",
  "rationale": "Light mean changed by -5.6 deg; higher angle = light moves left."
}
  • answer is always an index into choices (including descriptive questions).
  • answer_text is the correct choice as a string, for quick auditing.
  • rationale records the ground-truth quantity used to derive the answer.
  • target says which object the question is about (light, pendulum, shadow, or both).

4. The 16 new questions per video

light_shift (120 videos)

# type concept question
0 descriptive intervention timing At about what time does the change happen? → 8 s
1 descriptive intervention identification What changes? → light moves differently; pendulum unchanged
2 descriptive light trajectory Light sweep speed → much faster (new frequency 0.15–0.40 Hz vs 0.04–0.09 Hz)
3 descriptive light mean shift Light's average position → left / right / very little (from Δmean)
4 explanatory causal isolation Shadow changes but pendulum does not → light moved; pendulum unaffected
5 explanatory light-projection geometry Why the shadow sweeps differently → same bob, different light angle
6 explanatory interventional invariance Why the pendulum is unchanged → light changes only what we see
7 explanatory evaluation purpose Tests predicting the new light→shadow relationship
8 predictive shadow prediction Shadow after the cut → keeps sweeping, faster
9 predictive light extrapolation Light position one second after the clip → left / right / near average
10 predictive shadow amplitude Shadow sweep width → wider / narrower / same (from actual shadow range)
11 predictive interventional invariance Pendulum after 8 s → exactly as it would have been
12 counterfactual counterfactual isolation If the light had kept its old motion → only light/shadow differ
13 counterfactual light-shadow link If the light were switched off → shadow disappears
14 counterfactual amplitude scaling If the new amplitude doubled → shadow sweeps wider
15 counterfactual frequency scaling If the new frequency halved → shadow sweeps more slowly

torque_push (120 videos)

# type concept question
0 descriptive intervention timing At about what time does the change happen? → 8 s
1 descriptive intervention identification What changes? → pendulum is pushed; light unchanged
2 descriptive push effect Push adds energy → swing wider than without the push
3 descriptive push phase Bob's motion at the push → right / left / nearly still (from ω at frame 96)
4 explanatory external force Why the motion changes → an external torque was applied
5 explanatory shadow causality Why the shadow changes → the bob's motion changed
6 explanatory work-energy Why the energy changes → the torque does work on the moving bob
7 explanatory evaluation purpose Tests predicting the response to an external force
8 predictive shadow prediction Shadow after the push → keeps sweeping as the bob moves
9 predictive push energy Energy after the push → higher (ΔE > 0 for all 120 videos)
10 predictive post-push dynamics Swing → decays from a wider swing than without the push
11 predictive push phase Angular speed at the push → increases / decreases (from ω sign)
12 counterfactual counterfactual isolation If the push had not happened → pendulum old motion; light same
13 counterfactual push magnitude If the push were twice as strong → next peak higher
14 counterfactual push direction If the push were reversed → swing the other way / less energy
15 counterfactual phase dependence If the push were applied at the bottom → different effect

5. Corrections to the original questions

questions_train_corrected.json applies 39 answer corrections and one wording change. All of them are listed in corrections.json.

issue count old answer corrected answer reason
total mechanical energy 18 "repeatedly rises and falls" "steadily decreases" energy_j_per_kg is total mechanical energy and is strictly decreasing in every timeseries
light_shift shadow future 19 "settle to one spot and almost stop moving" "keep sweeping back and forth..." the light keeps moving after frame 96 (new amplitude 5–30°, frequency 0.15–0.40 Hz)
final-frame direction 2 (video_01820, video_01930) "moving to the right" "moving to the left" ω at the final frame is negative (bob moving left)
wording 68 "the shadow always moves in the same direction as the bob" "the shadow usually moves..." shadow motion is a superposition of bob motion and light motion; "always" was too strong

The original questions_train.json is kept unchanged in this repository so the corrections can be audited side by side.

6. Statistics

set videos questions per video descriptive explanatory predictive counterfactual
original (corrected) 240 1,920 8 480 480 480 480
intervention 240 3,840 16 960 960 960 960
combined 240 5,760 24 1,440 1,440 1,440 1,440

Answer slots are balanced (roughly 25 % each): 1,005 / 945 / 916 / 974 for slots 0 / 1 / 2 / 3 in the new set.

7. How the answers were derived

All new answers are computed from the frame-aligned ground truth in timeseries/video_XXXXX.csv plus the intervention parameters:

  • Light trajectory — light_angle_deg matches mean + amp·sin(2π f t + phase) with the old parameters before frame 96 and the new parameters after it. Δmean, amplitude ratio, and frequency ratio are computed from index_intervention.csv and intervention_log.json.
  • Shadow — the shadow segment endpoints (shadow_left_world, shadow_right_world) are in the timeseries. Shadow width questions use the actual range of the shadow midpoint before/after the cut, not just the light amplitude (the projection is nonlinear).
  • Pendulum — theta_rad, omega_rad_s, and alpha_rad_s2 are the dataset's own RK4 ground truth. The torque-push counterfactual is obtained by re-integrating the same ODE from the frame-96 state with the push torque removed (A·exp(−(t−8)²/2σ²), σ = 0.15 s, hard-gated at t ≥ 8.0 s).
  • Energy — E = ½(Lω)² + gL(1 − cos θ), matching the energy_j_per_kg column to machine precision.

The rationale field in every new question records the specific numbers used.

8. Reproduce

# Requires pandas + numpy
python3 generate_intervention_questions.py   # writes questions_intervention.json + taxonomy_intervention.json + questions_intervention.csv
python3 apply_corrections.py                 # writes questions_train_corrected.json + corrections.json + questions_all.json + questions_all.csv

The generator reads the 240 timeseries/*.csv files from the source dataset. Download them first, e.g.:

huggingface-cli download jimchen2/jimchen2-pendulum-shift-2 --repo-type dataset \
  --include "timeseries/*.csv" "index_intervention.csv" "intervention_log.json" \
  "questions/*.json" --local-dir .

9. Notes / caveats

  • The new questions are intervention-centric: some answers are constant across videos (e.g. "around 8 seconds", "much faster", "higher") because the intervention is identical in kind for every video. The variable-answer questions are the ones that depend on the sampled parameters (mean shift, amplitude ratio, shadow width, push phase).
  • light_shift is a nuisance-factor intervention: the pendulum trajectory is exactly unchanged. torque_push is a physical intervention: the pendulum trajectory changes, and the shadow changes with it even though the light does not.
  • The shadow is a projection of the bob through the light source. It is therefore affected by both the light's motion and the bob's motion. The questions distinguish the two causes explicitly.
  • The source dataset's 28 s simulation is longer than the 13.33 s video; the questions that ask about "one second after the video ends" evaluate the ground-truth ODE at t = 14.25 s.

10. Citation / attribution

Built on top of jimchen2/jimchen2-pendulum-shift-2 (intervened C-JEPA pendulum subset). Please cite the source dataset when using these questions.

Downloads last month
55