Skip to content

Commit

Permalink
Update the path to training and validation data dir in zinc_se_a_mask…
Browse files Browse the repository at this point in the history
….json (#3068)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
dingye18 and pre-commit-ci[bot] authored Dec 21, 2023
1 parent a0f30f4 commit a47cd06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions deepmd/descriptor/se_a_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,16 @@ def prod_force_virial(
atom_virial = tf.zeros([1, natoms[1], 9], dtype=force.dtype)

return force, virial, atom_virial

@classmethod
def update_sel(cls, global_jdata: dict, local_jdata: dict):
"""Update the selection and perform neighbor statistics.
Parameters
----------
global_jdata : dict
The global data, containing the training section
local_jdata : dict
The local data refer to the current class
"""
return local_jdata
4 changes: 2 additions & 2 deletions examples/zinc_protein/zinc_se_a_mask.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@
"training": {
"training_data": {
"systems": [
"example/zinc_protein/train_data_dp_mask/"
"examples/zinc_protein/train_data_dp_mask/"
],
"batch_size": 2,
"_comment7": "that's all"
},
"validation_data": {
"systems": [
"example/zinc_protein/val_data_dp_mask/"
"examples/zinc_protein/val_data_dp_mask/"
],
"batch_size": 2,
"_comment8": "that's all"
Expand Down

0 comments on commit a47cd06

Please sign in to comment.