Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
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 1 new columns ({'hazard_type'})

This happened while the csv dataset builder was generating data using

hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews/practice_labels.csv (at revision 1e4bbe42e19fa3f9dcad246546d63ef947bdb639), ['hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews@1e4bbe42e19fa3f9dcad246546d63ef947bdb639/_to_label_practice_candidates_ids.csv', 'hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews@1e4bbe42e19fa3f9dcad246546d63ef947bdb639/practice_labels.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
              review_id: string
              hazard_type: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 519
              to
              {'review_id': Value('string')}
              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 1 new columns ({'hazard_type'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews/practice_labels.csv (at revision 1e4bbe42e19fa3f9dcad246546d63ef947bdb639), ['hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews@1e4bbe42e19fa3f9dcad246546d63ef947bdb639/_to_label_practice_candidates_ids.csv', 'hf://datasets/Tarakeshwaran/CIT_Hackathon_PS08_reviews@1e4bbe42e19fa3f9dcad246546d63ef947bdb639/practice_labels.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.

review_id
string
R783231520
R686194983
R537070358
R902073762
R060482445
R240262860
R299071417
R778432666
R317202258
R752158428
R909389545
R428942387
R235329215
R428741343
R033439835
R356024326
R871451284
R213099180
R664062388
R915311815
R049063922
R036965089
R323051548
R448478961
R957351372
R244481349
R352760959
R210241188
R918193315
R543382279
R745154591
R718887539
R436273834
R094603283
R736799288
R300468762
R488969676
R417854880
R175756564
R067213266
R751038738
R825911568
R061066906
R274109037
R040670394
R890790893
R293825418
R449520819
R158745954
R444865038
R742990063
R973228557
R679178306
R786080904
R163673056
R615113880
R780157070
R094682397
R577427025
R950808357
R155626321
R324220984
R337505882
R129754466
R825234731
R951915973
R274372257
R415499739
R909254333
R315675150
R941658813
R866879517
R271415764
R804363106
R714084808
R327961159
R931744076
R597057071
R651935159
R002034257
R608106295
R654877015
R424309145
R558275316
R196396453
R993896249
R515487278
R556246513
R090232005
R593723772
R593578596
R604446940
R561072208
R282919359
R367236745
R807161578
R375162291
R832123004
R836725262
R759377742
End of preview.

PS08: Small Model Big Data

Theme: Model Training | 24-hour hackathon, teams of two, AI coding tools allowed.

What you build

Screen millions of product reviews on a CPU within 90 minutes and flag the ones that report a safety hazard.

What is in this repository

build_reviews.py and a manifest that rebuild the 2-million-review file from the official Amazon Reviews 2023 download (the review text is not redistributed), the hazard rubric, and 200 labelled example review IDs.

Output format

Top-1,000 flags review_id,score,hazard_type; and for the hidden set review_id,hazard_type (none = no hazard).

Source and licence

Amazon Reviews 2023 (Hou et al. 2024, McAuley Lab). No licence is stated; download the text from the official site with the script. Use this data only for the event and for non-commercial work, with attribution. Hidden test data and answer keys are not included. Read the student problem statement document for the full task, scoring and rules.

Downloads last month
11

Collection including Tarakeshwaran/CIT_Hackathon_PS08_reviews