Skip to content
Discussion options

You must be logged in to vote

I trained a model with the data you provide. The model looks alright. You can test your model directly against the training data by


from deepmd.infer import DeepDipole 
import numpy as np
import dpdata
import os

trainset = [
        "./data"
        # "/home/ali/calculations/bn/train_deepwannier/data/processed",
]
 
## load all training data
model_path = './dipole.pb'
model = DeepDipole(model_path)
## evaluate the trainset
dipole_ref = []
global_ref = []
dipole_pred = []
global_pred = []
for data_dir in trainset:
    print('loading ', data_dir) 
    cells = np.load(os.path.join(data_dir,'set.000/box.npy'))
    coords = np.load(os.path.join(data_dir,'set.000/coord.npy'))
    atypes = np.…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alikhamze
Comment options

Comment options

You must be logged in to vote
1 reply
@alikhamze
Comment options

Answer selected by alikhamze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants