-
I have trained a model, both lcurve.out and dp test shows good quality of this model. But when I uses python interface, dp.eval to recalculate the energies and forces based on the training data, bad results came out, especially the forces of the last three atoms were much different to the training result. This is the lcurve: This is how I retest the model: #training_systems = dpdata.LabeledSystem("../training_data", fmt = "deepmd/npy") item = ["coord","box","energy","force"] atype = np.loadtxt("../training_data/type.raw") pe, pf, pv = dp.eval(data["coord"][0], data["box"][0], atype) print('orignal energy:%f'%data['energy'][0]) output: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
See #3020 (comment) |
Beta Was this translation helpful? Give feedback.
Thank you for your help. Problem solved. It seemed that dp.eval wouldn't differ different atom type with the same element name. So I retrained my model with the default atom types created by dpdata, and finally done.