CoolFace
Datasetpublic

OneScience-Group/mp20

MP-20 Dataset Description MP-20 is derived from the Materials Project database (Jain et al., 2013) and contains approximately 45,000 common inorganic materials. It covers most experimentally known materials with no more than 20 atoms in the unit cell. The data includes elemental compositions, CIF structures, space groups, formation energies per atom, DFT band gaps, bulk moduli, and magnetic densities. Source paper: A. Jain et al., Commentary: The Materials Project:… See the full description on the dataset page: https://huggingface.co/datasets/OneScience-Group/mp20.

sourceHugging Facecc-by-4.0updated 1mo agoView on Hugging Face
0likes171downloads
Dataset Card

<p align="center"> <strong> <span style="font-size: 30px;">MP-20</span> </strong> </p>

Dataset Description

MP-20 is derived from the Materials Project database (Jain et al., 2013) and contains approximately 45,000 common inorganic materials. It covers most experimentally known materials with no more than 20 atoms in the unit cell. The data includes elemental compositions, CIF structures, space groups, formation energies per atom, DFT band gaps, bulk moduli, and magnetic densities.

Source paper: A. Jain et al., Commentary: The Materials Project: A materials genome approach to accelerating materials innovation, APL Materials 1, 011002 (2013).<br> Paper: https://pubs.aip.org/aip/apm/article/1/1/011002/119685<br> DOI: https://doi.org/10.1063/1.4812323

This repository provides both raw CSV files and preprocessed caches. The data split contains 27,136 structures in the training set, 9,047 structures in the validation set, and 9,046 structures in the test set, for a total of 45,229 crystal structures.

The current data package contains 30 data files totaling approximately 83 MB.

Supported Tasks

This standardized data repository organizes the MP-20 training, validation, and test data for:

  • Data analysis and statistics for inorganic crystal structures
  • Training and evaluation of crystal structure generation tasks
  • Conditional modeling of material properties
  • Research on properties such as formation energy, band gap, bulk modulus, and magnetic density
  • Crystal data loading, preprocessing, and data pipeline validation

Dataset Format and Structure

The data files are located in the data/MP20/ directory:

text
data/MP20/
├── raw/mp_20/
│   ├── train.csv
│   ├── val.csv
│   └── test.csv
└── cache/mp_20/
    ├── train/
    ├── val/
    └── test/
File PathFormatShape / ContentDescription
raw/mp_20/train.csvCSV + CIF27,136 structuresRaw crystal and property data for the training set
raw/mp_20/val.csvCSV + CIF9,047 structuresRaw crystal and property data for the validation set
raw/mp_20/test.csvCSV + CIF9,046 structuresRaw crystal and property data for the test set
cache/mp_20/train/NPY + JSON27,136 structuresPreprocessed cache for the training set
cache/mp_20/val/NPY + JSON9,047 structuresPreprocessed cache for the validation set
cache/mp_20/test/NPY + JSON9,046 structuresPreprocessed cache for the test set
metadata/sha256_manifest.txtSHA25630 recordsData file integrity checksum manifest

CSV Data Format

Each row in a CSV file corresponds to one crystal structure. The cif field stores complete multiline CIF text, so the number of samples cannot be determined using a standard text line count.

FieldTypeDescription
material_idstrMaterials Project structure ID
pretty_formulastrChemical formula
elementslist[str]Set of elements in the structure
cifstrCrystal structure in CIF format
spacegroup_numberintSpace group number
formation_energy_per_atomfloatFormation energy per atom
dft_band_gapfloatDFT band gap
dft_bulk_modulusfloat / nullDFT bulk modulus; null for some samples
dft_mag_densityfloatDFT magnetic density

Cache Data Format

Each train, val, and test cache directory contains the following files:

FileTypeShapeDescription
atomic_numbers.npyint64[N_atoms_total]Atomic numbers concatenated across all structures
cell.npyfloat64[N_structures, 3, 3]Unit-cell matrices
num_atoms.npyint64[N_structures]Number of atoms in each structure
pos.npyfloat64[N_atoms_total, 3]Fractional coordinates concatenated across all structures
structure_id.npystr[N_structures]Structure IDs
formation_energy_per_atom.jsonJSON[N_structures]Formation energy per atom property
dft_band_gap.jsonJSON[N_structures]DFT band gap property
dft_bulk_modulus.jsonJSON[N_structures]DFT bulk modulus property
dft_mag_density.jsonJSON[N_structures]DFT magnetic density property

How to Use the Dataset

Download the dataset:

bash
hf download OneScience-Group/mp20 --repo-type dataset

Validate the dataset directory, sample counts, array shapes, and SHA256 checksums:

bash
python scripts/validate_mp20.py \
  --dataset-root data/MP20 \
  --checksum-manifest metadata/sha256_manifest.txt

Skip SHA256 verification and check only the data structure:

bash
python scripts/validate_mp20.py \
  --dataset-root data/MP20 \
  --skip-checksum

Official OneScience Information

PlatformOneScience Main RepositorySkills Repository
Giteehttps://gitee.com/onescience-ai/onesciencehttps://gitee.com/onescience-ai/oneskills
GitHubhttps://github.com/onescience-ai/OneSciencehttps://github.com/onescience-ai/oneskills

Limitations and License

This repository standardizes the directory structure of the MP-20 data and provides raw CSV files, preprocessed caches, a checksum manifest, and a validation script. It does not generate new samples or alter the original crystal structures or property data.

  • The structures and properties in the data come from the Materials Project and the original MP-20 data curation pipeline. When using the data, cite the 2013 Materials Project paper by Jain et al. and the specific data version used.
  • Some material properties contain missing values and must be filtered or masked as appropriate for the task.
  • The Materials Project states that its data is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. This repository uses the same data license; appropriate attribution must be retained when using or redistributing the data.
  • If individual entries contain third-party contributed data or additional restrictions, refer to the source of the corresponding entry and the information on its Materials Project page.