train from graphs : labels.json #177
Replies: 5 comments 3 replies
-
can you be more specific about
what issues are you hitting?
struct_data = StructureData(
structures=structures,
energies=your_energies,
forces=your_forces,
stresses=your_stresses,
magmoms=your_magmoms,
)
make_graphs(struct_data) should give you the |
Beta Was this translation helpful? Give feedback.
-
I get then: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
It seems, there is a problem in make_graphs.py related to mp_id variable that is not present in data converted from vasp. Problems start from "for idx, (mp_id, graph_id) in enumerate(data.keys):". In fact, enumerate(data.keys)=[0 1 ...] There is no space for mp_id... |
Beta Was this translation helpful? Give feedback.
-
@chtchelkatchev hi, did you sovle this problem ? Could you please provide more details on how to specify graph files to use during training?
does it mean the above code will auto search and load the labels.json ile that contains graph info ? |
Beta Was this translation helpful? Give feedback.
-
Dear CHGNet users! Training Chgnet using graphs (via Graph Data) implies the presence of a labels.json file. As far as I understand, this file contains energies, forces,... for each graph. How to create graphs from VASP data is well explained in fine_tuning.ipynb. It is unclear how to create labels.json. I tried to use as labels.json a JSON file created when converting vasp data, but this was wrong, of cause. File make_graphs.py I also have investigated, but everything there is optimized for data downloaded from the MaterialsProject. Can you please add instructions (or an example) to the fine-tuning.ipynb on how to create a labels.json file that is compatible with the graphs generated from the vasp dataset? Thank You in advance.
Beta Was this translation helpful? Give feedback.
All reactions