Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
English
ArXiv:
License:

Fix the dataset card so that every config loads; correct the schema, paper link and typos

#3
by rul048 - opened

Only README.md changes. No data file, config name or data_files path changes.

Problems

  1. load_dataset fails for the six large configs. load_dataset("materialyze/matpes", "pbe") (also r2scan, pbe-2025.1, r2scan-2025.1, pbe-2025.2, r2scan-2025.2, with or without streaming) stops with Couldn't cast array of type double to null. The dataset viewer fails the same way for these configs. Cause: the card declares dataset_info for a config named default, which no config uses, so datasets infers the types from the first rows. formation_energy_per_atom is null in the first ~45,000-49,000 records (it is set only for mp- records), so the column is typed as null and the first real value breaks the load.
  2. The small configs load, but not exactly. With the current card and datasets >= 4.7, pbe-atoms loads 89 rows, but composition is inferred as Json and every float of the record is rounded to about 10 digits (e.g. volume 3442.7999999999997 in the file loads as 3442.8).
  3. The declared schema does not match the records. builder_meta, cm5_partial_charges and ddec6 are missing; composition and composition_reduced are dicts such as {"Y": 1.0, "Ti": 1.0}, not lists of element/amount; structure.properties is always {}, not a string.
  4. Wrong paper on the Hub page. The Hub links arXiv:2306.06482 (TensorNet), taken from an unused link definition, while the MatPES paper is only given as a doi.org link.
  5. Typos and broken links: "converegence"; the DIRECT link https//doi.org/... lacks the colon; [pymatgen] has no link definition; [M3GNet], [CHGNet] and [TensorNet] are defined but unused.
  6. The card does not mention the 2025.2 -train, -valid and -test files that are in the repository.

Changes

  • dataset_info now has one entry per config, with the actual columns and types (28 columns; 26 for the -atoms configs, which have no charges). composition and composition_reduced are declared as a struct with one float64 field per element (89 elements), so they load with older datasets versions too; elements absent from a record come back as null.
  • Paper link changed to https://arxiv.org/abs/2503.04070; unused link definitions removed.
  • Typos and broken links fixed.
  • Two sentences added: the pbe and r2scan configs always point to the latest version, and for v2025.2 a random 90/5/5 split by record is provided as MatPES-{PBE,R2SCAN}-2025.2-{train,valid,test}.jsonl (and .json).

Tests

Local folder with the new card and the data files of this repository (sha256 equal to the LFS ids on the Hub), datasets 5.2.0 and huggingface_hub 2.4.0. Every loaded row was compared with json.loads of the corresponding line.

Config Rows in file Rows loaded Rows differing
pbe 433,189 433,189 0
r2scan 386,544 386,544 0
pbe-2025.2 433,189 433,189 0
r2scan-2025.2 386,544 386,544 0
pbe-2025.1 434,712 434,712 0
r2scan-2025.1 387,897 387,897 0
pbe-atoms 89 89 0
r2scan-atoms 89 89 0
  • With the current card the same files fail as described in problems 1 and 2.
  • The -atoms configs also load exactly with datasets 3.6.0, 4.0.0 and 4.6.1 (the large configs were tested with 5.2.0 only).
  • Streaming (streaming=True) also reads every row exactly: pbe 433,189 and r2scan-2025.1 387,897 rows, 0 differing.
  • The YAML header parses with huggingface_hub.DatasetCard.load, and every data_files path exists in the repository.

Not changed (for discussion)

  • pbe and r2scan still return the full file as a single train split, as before.
  • composition and composition_reduced now load as a dict with all 89 elements, None for absent ones ({k: v for k, v in row["composition"].items() if v is not None} gives the original). Declaring them with the json type would keep only the elements present, but with a Json column datasets 5.2.0 rounds every float of the record to about 10 significant digits, so the struct form was chosen.
  • A missing cm5_partial_charges / ddec6 key loads as None, and occu loads as 1.0 instead of 1.
shyuep changed pull request status to merged
shyuep deleted the refs/pr/3 ref

Sign up or log in to comment