xnn.common.config.schema.DataConfig#
- class xnn.common.config.schema.DataConfig(train_path=None, val_path=None, test_path=None, cutoff=4.0, batch_size=16, num_workers=0, val_fraction=0.1, test_fraction=0.0, energy_key='energy', forces_key='forces', stress_key='stress')[source]#
Bases:
objectDataset paths and data-loading options.
- Variables:
train_path (Optional[str]) – Path to the training set (
.xyz/.extxyz/.npz/ any ASE-readable file). Defaults toNone.val_path (Optional[str]) – Path to the validation set. If
None, a validation split is carved out of the training set usingval_fraction. Defaults toNone.test_path (Optional[str]) – Path to a held-out test set, evaluated once after training. If
None, a test split is carved out of the training set whentest_fraction > 0; otherwise no test evaluation is performed. Defaults toNone.cutoff (float) – Neighbor-list cutoff radius; must match
model.cutoffand is kept in lockstep byConfig.__post_init__(). Defaults to4.0.batch_size (int) – Mini-batch size; set to
1to disable batch training. Defaults to16.num_workers (int) – Number of dataloader worker processes. Defaults to
0.val_fraction (float) – Fraction of the training set held out for validation when
val_pathisNone. Defaults to0.1.test_fraction (float) – Fraction of the training set held out as a test set when
test_pathisNone. Defaults to0.0(no test split).energy_key (str) – Name under which the reference energy is stored in the file (
atoms.info), e.g."REF_energy"for MACE-convention datasets. Defaults to"energy"(also read from the frame’s calculator).forces_key (str) – Name under which the reference forces are stored (
atoms.arrays). Defaults to"forces".stress_key (str) – Name under which the reference stress is stored (
atoms.info). Defaults to"stress".
- Parameters: