The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 6 new columns ({'history_group', 'pilot_user_index', 'past_n', 'shift_score', 'n_interactions', 'recent_n'}) and 8 missing columns ({'recent_valid', 'user_id', 'history_length', 'raw_tvd', 'null_mean', 'early_valid', 'excess_tvd', 'permutation_p'}).
This happened while the csv dataset builder was generating data using
hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation/preference_shift_scores_deidentified.csv (at revision e8bfa97d474da51eedb07e47a5467b986ea7abad), ['hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation@e8bfa97d474da51eedb07e47a5467b986ea7abad/amazon_tvd_deidentified.csv', 'hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation@e8bfa97d474da51eedb07e47a5467b986ea7abad/preference_shift_scores_deidentified.csv']
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 "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._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
pilot_user_index: int64
n_interactions: int64
past_n: int64
recent_n: int64
shift_score: double
history_group: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1003
to
{'user_id': Value('string'), 'history_length': Value('int64'), 'early_valid': Value('int64'), 'recent_valid': Value('int64'), 'raw_tvd': Value('float64'), 'null_mean': Value('float64'), 'excess_tvd': Value('float64'), 'permutation_p': Value('float64')}
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 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
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 6 new columns ({'history_group', 'pilot_user_index', 'past_n', 'shift_score', 'n_interactions', 'recent_n'}) and 8 missing columns ({'recent_valid', 'user_id', 'history_length', 'raw_tvd', 'null_mean', 'early_valid', 'excess_tvd', 'permutation_p'}).
This happened while the csv dataset builder was generating data using
hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation/preference_shift_scores_deidentified.csv (at revision e8bfa97d474da51eedb07e47a5467b986ea7abad), ['hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation@e8bfa97d474da51eedb07e47a5467b986ea7abad/amazon_tvd_deidentified.csv', 'hf://datasets/DKU-STATS201-Autumn2026/sherry_project_preference_shift_evaluation@e8bfa97d474da51eedb07e47a5467b986ea7abad/preference_shift_scores_deidentified.csv']
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.
user_id string | history_length int64 | early_valid int64 | recent_valid int64 | raw_tvd float64 | null_mean float64 | excess_tvd float64 | permutation_p float64 |
|---|---|---|---|---|---|---|---|
user_0001 | 7 | 3 | 4 | 0.333333 | 0.421 | -0.087667 | 1 |
user_0002 | 6 | 3 | 3 | 0.666667 | 0.807333 | -0.140667 | 1 |
user_0003 | 10 | 5 | 5 | 0.8 | 0.61 | 0.19 | 0.305389 |
user_0004 | 7 | 3 | 4 | 0.333333 | 0.433333 | -0.1 | 1 |
user_0005 | 18 | 9 | 9 | 0.444444 | 0.450667 | -0.006222 | 0.676647 |
user_0006 | 23 | 11 | 12 | 0.643939 | 0.585864 | 0.058076 | 0.351297 |
user_0007 | 7 | 3 | 4 | 0.75 | 0.854 | -0.104 | 1 |
user_0008 | 14 | 7 | 7 | 0.428571 | 0.58 | -0.151429 | 1 |
user_0009 | 10 | 5 | 5 | 0.8 | 0.6212 | 0.1788 | 0.321357 |
user_0010 | 8 | 4 | 4 | 0.75 | 0.6265 | 0.1235 | 0.479042 |
user_0011 | 6 | 3 | 3 | 0.333333 | 0.476 | -0.142667 | 1 |
user_0012 | 14 | 7 | 7 | 0.857143 | 0.726857 | 0.130286 | 0.295409 |
user_0013 | 9 | 4 | 5 | 0.25 | 0.3263 | -0.0763 | 1 |
user_0014 | 10 | 5 | 5 | 0.8 | 0.6052 | 0.1948 | 0.269461 |
user_0015 | 7 | 3 | 4 | 0.75 | 0.707 | 0.043 | 0.652695 |
user_0016 | 8 | 4 | 4 | 0.5 | 0.64 | -0.14 | 1 |
user_0017 | 15 | 7 | 8 | 0.375 | 0.568393 | -0.193393 | 1 |
user_0018 | 7 | 3 | 4 | 0.083333 | 0.292167 | -0.208833 | 1 |
user_0019 | 9 | 4 | 5 | 0.8 | 0.6992 | 0.1008 | 0.343313 |
user_0020 | 8 | 4 | 4 | 1 | 0.786 | 0.214 | 0.145709 |
user_0021 | 16 | 8 | 7 | 0.625 | 0.432107 | 0.192893 | 0.0998 |
user_0022 | 12 | 6 | 6 | 0.666667 | 0.621667 | 0.045 | 0.58483 |
user_0023 | 10 | 5 | 5 | 0.4 | 0.1824 | 0.2176 | 0.457086 |
user_0024 | 13 | 6 | 7 | 0 | 0 | 0 | 1 |
user_0025 | 8 | 4 | 4 | 0.75 | 0.635 | 0.115 | 0.46507 |
user_0026 | 12 | 5 | 6 | 0.833333 | 0.673333 | 0.16 | 0.219561 |
user_0027 | 7 | 3 | 4 | 0.75 | 0.8555 | -0.1055 | 1 |
user_0028 | 10 | 5 | 5 | 0.6 | 0.7716 | -0.1716 | 1 |
user_0029 | 10 | 5 | 5 | 0 | 0.2784 | -0.2784 | 1 |
user_0030 | 9 | 4 | 5 | 0.8 | 0.8085 | -0.0085 | 0.522954 |
user_0031 | 6 | 3 | 3 | 0.666667 | 0.508667 | 0.158 | 0.427146 |
user_0032 | 10 | 5 | 5 | 1 | 0.8372 | 0.1628 | 0.187625 |
user_0033 | 14 | 7 | 7 | 0.857143 | 0.732571 | 0.124571 | 0.331337 |
user_0034 | 9 | 4 | 5 | 0.8 | 0.5924 | 0.2076 | 0.187625 |
user_0035 | 10 | 5 | 5 | 0.6 | 0.7832 | -0.1832 | 1 |
user_0036 | 7 | 3 | 4 | 0.333333 | 0.426333 | -0.093 | 1 |
user_0037 | 18 | 9 | 9 | 0.666667 | 0.558222 | 0.108444 | 0.339321 |
user_0038 | 8 | 3 | 4 | 0.5 | 0.5735 | -0.0735 | 0.756487 |
user_0039 | 6 | 3 | 3 | 0.333333 | 0.333333 | 0 | 1 |
user_0040 | 9 | 4 | 3 | 0 | 0 | 0 | 1 |
user_0041 | 10 | 5 | 5 | 0.8 | 0.8356 | -0.0356 | 1 |
user_0042 | 15 | 7 | 8 | 0.75 | 0.529179 | 0.220821 | 0.055888 |
user_0043 | 6 | 3 | 3 | 1 | 0.606 | 0.394 | 0.203593 |
user_0044 | 33 | 16 | 17 | 0.382353 | 0.353412 | 0.028941 | 0.337325 |
user_0045 | 6 | 3 | 3 | 0 | 0 | 0 | 1 |
user_0046 | 8 | 4 | 4 | 0.5 | 0.486 | 0.014 | 0.634731 |
user_0047 | 6 | 3 | 3 | 0.666667 | 0.574667 | 0.092 | 0.55489 |
user_0048 | 6 | 3 | 3 | 0.666667 | 0.59 | 0.076667 | 0.588822 |
user_0049 | 16 | 7 | 8 | 0.607143 | 0.712714 | -0.105571 | 0.876248 |
user_0050 | 7 | 3 | 4 | 0.5 | 0.429667 | 0.070333 | 0.423154 |
user_0051 | 10 | 5 | 5 | 0.4 | 0.5496 | -0.1496 | 1 |
user_0052 | 10 | 5 | 5 | 0.8 | 0.6568 | 0.1432 | 0.407186 |
user_0053 | 15 | 7 | 8 | 0.607143 | 0.529821 | 0.077321 | 0.331337 |
user_0054 | 8 | 4 | 4 | 0.25 | 0.584 | -0.334 | 1 |
user_0055 | 11 | 5 | 5 | 0.6 | 0.6512 | -0.0512 | 0.780439 |
user_0056 | 19 | 9 | 10 | 0.455556 | 0.476511 | -0.020956 | 0.632735 |
user_0057 | 10 | 5 | 5 | 0.2 | 0.2 | -0 | 1 |
user_0058 | 12 | 6 | 6 | 0.333333 | 0.362 | -0.028667 | 1 |
user_0059 | 9 | 3 | 4 | 0.75 | 0.737667 | 0.012333 | 0.47505 |
user_0060 | 16 | 8 | 8 | 0.5 | 0.45275 | 0.04725 | 0.522954 |
user_0061 | 7 | 3 | 4 | 0.75 | 0.858 | -0.108 | 1 |
user_0062 | 9 | 4 | 5 | 0.4 | 0.5087 | -0.1087 | 0.676647 |
user_0063 | 8 | 4 | 4 | 0.5 | 0.561 | -0.061 | 1 |
user_0064 | 6 | 3 | 3 | 0.666667 | 0.265333 | 0.401333 | 0.399202 |
user_0065 | 19 | 9 | 10 | 0.888889 | 0.549067 | 0.339822 | 0.011976 |
user_0066 | 6 | 3 | 3 | 1 | 0.702 | 0.298 | 0.107784 |
user_0067 | 6 | 3 | 3 | 0 | 0 | 0 | 1 |
user_0068 | 7 | 3 | 4 | 0 | 0 | 0 | 1 |
user_0069 | 7 | 3 | 4 | 0.666667 | 0.734667 | -0.068 | 1 |
user_0070 | 6 | 3 | 3 | 0.333333 | 0.333333 | 0 | 1 |
user_0071 | 8 | 4 | 4 | 0.75 | 0.624 | 0.126 | 0.473054 |
user_0072 | 16 | 8 | 8 | 0.5 | 0.653 | -0.153 | 1 |
user_0073 | 10 | 5 | 5 | 0.6 | 0.436 | 0.164 | 0.377246 |
user_0074 | 7 | 3 | 4 | 0 | 0 | 0 | 1 |
user_0075 | 6 | 3 | 3 | 1 | 0.786667 | 0.213333 | 0.361277 |
user_0076 | 10 | 5 | 5 | 0.8 | 0.5492 | 0.2508 | 0.141717 |
user_0077 | 8 | 4 | 4 | 0.75 | 0.4935 | 0.2565 | 0.273453 |
user_0078 | 8 | 4 | 4 | 0.5 | 0.5785 | -0.0785 | 0.798403 |
user_0079 | 9 | 4 | 5 | 1 | 0.774 | 0.226 | 0.203593 |
user_0080 | 12 | 6 | 6 | 0.166667 | 0.377667 | -0.211 | 1 |
user_0081 | 16 | 8 | 8 | 0.625 | 0.42275 | 0.20225 | 0.137725 |
user_0082 | 14 | 7 | 7 | 0.571429 | 0.506 | 0.065429 | 0.407186 |
user_0083 | 7 | 3 | 4 | 0 | 0 | 0 | 1 |
user_0084 | 8 | 4 | 4 | 0.75 | 0.6175 | 0.1325 | 0.451098 |
user_0085 | 7 | 3 | 4 | 1 | 0.604333 | 0.395667 | 0.091816 |
user_0086 | 6 | 3 | 3 | 0.333333 | 0.464 | -0.130667 | 1 |
user_0087 | 6 | 3 | 3 | 1 | 0.800667 | 0.199333 | 0.403194 |
user_0088 | 12 | 6 | 6 | 0.5 | 0.553 | -0.053 | 0.770459 |
user_0089 | 6 | 3 | 3 | 0 | 0 | 0 | 1 |
user_0090 | 6 | 3 | 3 | 0.666667 | 0.609333 | 0.057333 | 0.62475 |
user_0091 | 44 | 22 | 22 | 0.181818 | 0.251818 | -0.07 | 0.826347 |
user_0092 | 6 | 3 | 3 | 0.333333 | 0.460667 | -0.127333 | 1 |
user_0093 | 10 | 5 | 5 | 1 | 0.4924 | 0.5076 | 0.017964 |
user_0094 | 6 | 3 | 3 | 0.666667 | 0.605333 | 0.061333 | 0.620758 |
user_0095 | 6 | 3 | 3 | 0.666667 | 0.594667 | 0.072 | 0.57485 |
user_0096 | 9 | 4 | 5 | 0.35 | 0.5068 | -0.1568 | 0.850299 |
user_0097 | 7 | 3 | 4 | 0.5 | 0.434333 | 0.065667 | 0.44511 |
user_0098 | 12 | 6 | 6 | 0.833333 | 0.530667 | 0.302667 | 0.097804 |
user_0099 | 18 | 9 | 8 | 0.75 | 0.439278 | 0.310722 | 0.015968 |
user_0100 | 7 | 3 | 4 | 0.25 | 0.283667 | -0.033667 | 1 |
Preference Shift Evaluation β AgentRecBench
Project Overview
This dataset repository supports a STATS201 research project investigating whether temporal changes in users' product-category preferences provide additional information for predicting LLM recommendation failures.
The project uses AgentRecBench as its upstream data source and evaluates preference shifts using Total Variation Distance (TVD).
Attempt 1 β Initial Exploration
File: preference_shift_scores_deidentified.csv
The initial pilot used the Amazon Short-term subset of AgentRecBench.
- 100 users and 458 historical interactions.
- 52 users eligible for TVD measurement.
- Mean TVD approximately 0.593.
The pilot revealed that sparse interaction histories could inflate TVD measurements, motivating a revised approach.
Attempt 2 β Permutation-Adjusted Preference Shift
File: amazon_tvd_deidentified.csv
The revised analysis uses the Amazon Long-term subset of AgentRecBench.
- 1,420 eligible users.
- Chronological histories divided into earlier and recent halves.
- Second-level product-category distributions compared using TVD.
- 500 within-user category-order permutations used to estimate chance-level TVD.
Measurement Definitions
Raw TVD: Total Variation Distance between earlier and recent category distributions.
Null Mean: Mean TVD across 500 shuffled category sequences for the same user.
Excess TVD: Raw TVD β Null Mean.
Preliminary Results
| Metric | Mean |
|---|---|
| Raw TVD | 0.525 |
| Shuffled TVD | 0.487 |
| Excess TVD | 0.038 |
These measurements describe observed changes in product-category distributions. They do not establish psychological preference changes or causal effects.
Dataset Fields
| Column | Description |
|---|---|
user_id |
Project-specific pseudonymous user identifier |
history_length |
Number of interactions in the analyzed user history |
early_valid |
Valid category observations in the earlier half |
recent_valid |
Valid category observations in the recent half |
raw_tvd |
Observed Total Variation Distance |
null_mean |
Mean shuffled TVD across 500 permutations |
excess_tvd |
Difference between observed and shuffled mean TVD |
permutation_p |
Within-user permutation-based p-value |
The published identifiers replace the original user IDs but do not guarantee complete anonymity.
Code and Reproducibility
GitHub repository:
https://github.com/STATS201-Autumn2026/sherry-project-preference-shift-evaluation
Attempt 2 notebook and documentation:
https://github.com/STATS201-Autumn2026/sherry-project-preference-shift-evaluation/tree/main/attempt2
The GitHub repository also contains a 10-task Gemini recommendation pilot. The pilot achieved Hit@5 = 0.60, but the sample is insufficient to establish the predictive value of TVD.
Source and Attribution
Upstream dataset: AgentRecBench
Associated paper: https://doi.org/10.52202/085713-5156
The upstream Hugging Face repository lists an MIT license. Users should also review any applicable terms governing the underlying Amazon-derived data.
Limitations
- TVD is sensitive to history length and category sparsity.
- Permutation adjustment provides a random-ordering benchmark, not proof of genuine preference change.
- User identifiers are pseudonymized, not guaranteed anonymous.
- The full recommendation-failure prediction analysis has not yet been completed.
- Downloads last month
- 59