ValueError: The number of types of the training data is 3, but that of the model is only 2.The latter must be no less than the former. #4705
Unanswered
ZZC-MK2000
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I see that you set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I sbatch my training job, an error was occured during the training process. "ValueError: The number of types of the training data is 3, but that of the model is only 2.The latter must be no less than the former.You may need to reset one or both of them. Usually, the former is given by
model/type_map
in the training parameter (if set) or the maximum number in the training data. The latter is given bymodel/descriptor/sel
in the training parameter."Some training parameter I set the in param.json is:
"type_map": ["O", "In", "Hf"],
"mass_map": [16, 114.82, 178.5],
"init_data_prefix": "/public/home/benkesheng2/In2O3-HfO2",
"init_data_sys": [
"PO1/dp/init/PO1.POSCAR.01x01x01/02.md/sys-0080-0032-0016/deepmd",
"PO2/init/PO2.POSCAR.01x01x01/02.md/sys-0112-0032-0032/deepmd",
"PO3/init/PO3.POSCAR.01x01x01/02.md/sys-0144-0032-0048/deepmd"
],
"sys_configs_prefix": "/public/home/benkesheng2/In2O3-HfO2",
"sys_configs": [
["PO1/dp/init/PO1.POSCAR.01x01x01/02.md/sys-0080-0032-0016/scale-1.000/000000/POSCAR"],
["PO2/init/PO2.POSCAR.01x01x01/02.md/sys-0112-0032-0032/scale-1.000/000000/POSCAR"],
["PO3/init/PO3.POSCAR.01x01x01/02.md/sys-0144-0032-0048/scale-1.000/000000/POSCAR"]
],
"default_training_param": {
"model": {
"type_map": ["O", "In", "Hf"],
"descriptor": {
"type": "se_e2_a",
"sel": [100,100,100],
"rcut_smth": 2.0,
"rcut": 8.5,
"neuron":[25, 50, 100],
"resnet_dt": false,
"axis_neuron": 16,
"seed": 123456,
"activation_function": "tanh",
"precision": "float64",
"trainable": true,
"exclude_types":[],
"set_davg_zero": false
param.json
I have no idea about how
model/descriptor/sel
causes The number of types to have a value of 2. I'll be appreciated if anyone can help me to fix this error.Beta Was this translation helpful? Give feedback.
All reactions