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
scenario_id: string
scenario_label: string
industry: string
stress_scenario: string
reliability_target: double
horizon_days: int64
budget_limit: double
description: string
equipment: list<item: struct<asset_id: string, name: string, asset_type: string, criticality: string, age_years (... 286 chars omitted)
  child 0, item: struct<asset_id: string, name: string, asset_type: string, criticality: string, age_years: double, o (... 274 chars omitted)
      child 0, asset_id: string
      child 1, name: string
      child 2, asset_type: string
      child 3, criticality: string
      child 4, age_years: double
      child 5, operating_hours: double
      child 6, vibration_index: double
      child 7, temperature_c: double
      child 8, days_since_last_pm: int64
      child 9, failure_probability_30d: double
      child 10, mtbf_hours: double
      child 11, mttr_hours: double
      child 12, pm_duration_hours: double
      child 13, downtime_cost_per_hour: double
      child 14, required_part_id: string
      child 15, location: string
technicians: list<item: struct<technician_id: string, name: string, specialty: string, skill_level: double, hourl (... 65 chars omitted)
  child 0, item: struct<technician_id: string, name: string, specialty: string, skill_level: double, hourly_rate: dou (... 53 chars omitted)
      child 0, technician_id: string
      child 1, name: string
      child 2, specialty: string
      child 3, skill_level: double
      child 4, hourly_rate: double
      
...
ing>
                  child 0, type: string
              child 2, specialty: struct<type: string>
                  child 0, type: string
              child 3, skill_level: struct<type: string>
                  child 0, type: string
              child 4, hourly_rate: struct<type: string>
                  child 0, type: string
  child 4, spare_parts: struct<type: string, items: struct<type: string, required: list<item: string>, properties: struct<pa (... 198 chars omitted)
      child 0, type: string
      child 1, items: struct<type: string, required: list<item: string>, properties: struct<part_id: struct<type: string>, (... 169 chars omitted)
          child 0, type: string
          child 1, required: list<item: string>
              child 0, item: string
          child 2, properties: struct<part_id: struct<type: string>, name: struct<type: string>, unit_cost: struct<type: string>, s (... 105 chars omitted)
              child 0, part_id: struct<type: string>
                  child 0, type: string
              child 1, name: struct<type: string>
                  child 0, type: string
              child 2, unit_cost: struct<type: string>
                  child 0, type: string
              child 3, stock_on_hand: struct<type: string>
                  child 0, type: string
              child 4, lead_time_days: struct<type: string>
                  child 0, type: string
              child 5, critical: struct<type: string>
                  child 0, type: string
to
{'$schema': Value('string'), 'title': Value('string'), 'type': Value('string'), 'required': List(Value('string')), 'properties': {'industry': {'type': Value('string')}, 'scenario_label': {'type': Value('string')}, 'equipment': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'asset_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'asset_type': {'type': Value('string')}, 'criticality': {'enum': List(Value('string'))}, 'age_years': {'type': Value('string')}, 'operating_hours': {'type': Value('string')}, 'vibration_index': {'type': Value('string')}, 'temperature_c': {'type': Value('string')}, 'days_since_last_pm': {'type': Value('string')}, 'mtbf_hours': {'type': Value('string')}, 'mttr_hours': {'type': Value('string')}}}}, 'technicians': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'technician_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'specialty': {'type': Value('string')}, 'skill_level': {'type': Value('string')}, 'hourly_rate': {'type': Value('string')}}}}, 'spare_parts': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'part_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'unit_cost': {'type': Value('string')}, 'stock_on_hand': {'type': Value('string')}, 'lead_time_days': {'type': Value('string')}, 'critical': {'type': Value('string')}}}}}}
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
              scenario_id: string
              scenario_label: string
              industry: string
              stress_scenario: string
              reliability_target: double
              horizon_days: int64
              budget_limit: double
              description: string
              equipment: list<item: struct<asset_id: string, name: string, asset_type: string, criticality: string, age_years (... 286 chars omitted)
                child 0, item: struct<asset_id: string, name: string, asset_type: string, criticality: string, age_years: double, o (... 274 chars omitted)
                    child 0, asset_id: string
                    child 1, name: string
                    child 2, asset_type: string
                    child 3, criticality: string
                    child 4, age_years: double
                    child 5, operating_hours: double
                    child 6, vibration_index: double
                    child 7, temperature_c: double
                    child 8, days_since_last_pm: int64
                    child 9, failure_probability_30d: double
                    child 10, mtbf_hours: double
                    child 11, mttr_hours: double
                    child 12, pm_duration_hours: double
                    child 13, downtime_cost_per_hour: double
                    child 14, required_part_id: string
                    child 15, location: string
              technicians: list<item: struct<technician_id: string, name: string, specialty: string, skill_level: double, hourl (... 65 chars omitted)
                child 0, item: struct<technician_id: string, name: string, specialty: string, skill_level: double, hourly_rate: dou (... 53 chars omitted)
                    child 0, technician_id: string
                    child 1, name: string
                    child 2, specialty: string
                    child 3, skill_level: double
                    child 4, hourly_rate: double
                    
              ...
              ing>
                                child 0, type: string
                            child 2, specialty: struct<type: string>
                                child 0, type: string
                            child 3, skill_level: struct<type: string>
                                child 0, type: string
                            child 4, hourly_rate: struct<type: string>
                                child 0, type: string
                child 4, spare_parts: struct<type: string, items: struct<type: string, required: list<item: string>, properties: struct<pa (... 198 chars omitted)
                    child 0, type: string
                    child 1, items: struct<type: string, required: list<item: string>, properties: struct<part_id: struct<type: string>, (... 169 chars omitted)
                        child 0, type: string
                        child 1, required: list<item: string>
                            child 0, item: string
                        child 2, properties: struct<part_id: struct<type: string>, name: struct<type: string>, unit_cost: struct<type: string>, s (... 105 chars omitted)
                            child 0, part_id: struct<type: string>
                                child 0, type: string
                            child 1, name: struct<type: string>
                                child 0, type: string
                            child 2, unit_cost: struct<type: string>
                                child 0, type: string
                            child 3, stock_on_hand: struct<type: string>
                                child 0, type: string
                            child 4, lead_time_days: struct<type: string>
                                child 0, type: string
                            child 5, critical: struct<type: string>
                                child 0, type: string
              to
              {'$schema': Value('string'), 'title': Value('string'), 'type': Value('string'), 'required': List(Value('string')), 'properties': {'industry': {'type': Value('string')}, 'scenario_label': {'type': Value('string')}, 'equipment': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'asset_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'asset_type': {'type': Value('string')}, 'criticality': {'enum': List(Value('string'))}, 'age_years': {'type': Value('string')}, 'operating_hours': {'type': Value('string')}, 'vibration_index': {'type': Value('string')}, 'temperature_c': {'type': Value('string')}, 'days_since_last_pm': {'type': Value('string')}, 'mtbf_hours': {'type': Value('string')}, 'mttr_hours': {'type': Value('string')}}}}, 'technicians': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'technician_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'specialty': {'type': Value('string')}, 'skill_level': {'type': Value('string')}, 'hourly_rate': {'type': Value('string')}}}}, 'spare_parts': {'type': Value('string'), 'items': {'type': Value('string'), 'required': List(Value('string')), 'properties': {'part_id': {'type': Value('string')}, 'name': {'type': Value('string')}, 'unit_cost': {'type': Value('string')}, 'stock_on_hand': {'type': Value('string')}, 'lead_time_days': {'type': Value('string')}, 'critical': {'type': 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.

MaintOpt Sample Fleet Dataset

Synthetic equipment fleet data for the MaintOpt Maintenance & Spare Parts Optimizer.

Contents

File Description
sample_factory.json Factory production plant fleet (10 assets)
sample_aviation.json Aviation MRO component fleet (8 assets)
fleet_schema.json JSON schema for fleet data structure

Schema

Each fleet record contains:

  • equipment: asset ID, type, criticality, sensor readings, MTBF/MTTR
  • technicians: specialty, skill level, availability
  • spare_parts: stock levels, lead times, compatibility

Usage

import json
with open("sample_factory.json") as f:
    fleet = json.load(f)

License

Apache 2.0 — Aria AI Engineering Team

Downloads last month
49