xnn.common.data.hub.hdnnp4g.HDNNP4GBuilder#
- class xnn.common.data.hub.hdnnp4g.HDNNP4GBuilder[source]#
Bases:
DatasetBuilderBuilder for the four benchmark systems of Ko et al. (2021).
See the module docstring for the systems, the sources and the citations.
- load(*, split=None, cache_dir, system='au2_mgo', quiet=False)[source]#
Download and convert one system.
- Parameters:
split (str or None) –
Nonereturns{"all": structures};"all"returns the list.cache_dir (pathlib.Path) – Base cache directory; files are stored under
cache_dir/"hdnnp4g".system (str, optional) –
carbon_chain,ag_clusters,nacl_clusters,au2_mgo(default) orau2_mgo_minima.quiet (bool, optional) – Suppress progress output. Defaults to
False.
- Returns:
dict of {str – Structure dicts with
pos,atomic_numbers,energy,forces,chargesandtotal_charge;cellandpbcare periodic forau2_mgoandau2_mgo_minimaonly.- Return type:
- Raises:
ValueError – If
systemorsplitis unknown.