Closed nahso closed 2 weeks ago
Hi @nahso,
To create a dataset, you will need to parse your xyz
file and provide the following data: atomic numbers, positions, cell (if you use PBC) and your properties (e.g. energy or forces. this depends on your data). Furthermore, you will need to provide a property_unit_dict
that maps every property to a physical unit. Then you can create the database file like in the tutorial example before.
In the following, I will try to answer your questions one by one.
atomref
values in tutorial 2. They try to estimate the average energy contribution per atom type. If you do not have this data available, or if like in your example only one atom type is present, just ignore the atomrefs
in the add_systems
function.atomrefs
for your dataset. And in the property_unit_dict
you still have the key energy_U0
, but this property is not present in your data. So just remove this._offset
key is missing, this is usually because you train a model on a datamodule, where the neighborlist is missing.I hope this helps to solve your issue.
I have a extxyz file and I want to input it to schnetpack to train a model. I follow this link https://schnetpack.readthedocs.io/en/latest/tutorials/tutorial_01_preparing_data.html, but there are so many questions. Here is my convert script:
Questions:
atomref
? Aren't theenergy
andforces
themselves reference data?energy_U0
field? Otherwise an exception will be thrown_offset
, see the exception:Properties of molecule with id 0:
Here is my dataset: total.zip
I didn't find any detailed documentations about how to convert my data file to
.db
file, all I had done is based on reverse engineering. So the code and questions may looked a little bit weired.Thank you.