Added all activation functions for model compression.#1283
Added all activation functions for model compression.#1283wanghan-iapcm merged 18 commits intodeepmodeling:develfrom liangadam:devel
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #1283 +/- ##
==========================================
- Coverage 75.97% 75.89% -0.09%
==========================================
Files 91 91
Lines 7406 7414 +8
==========================================
Hits 5627 5627
- Misses 1779 1787 +8
Continue to review full report at Codecov.
|
doc/train/train-input.rst
Outdated
| One can load, modify, and export the input file by using our effective web-based tool `DP-GUI <https://deepmodeling.org/dpgui/input/deepmd-kit-2.0>`_. All training parameters below can be set in DP-GUI. By clicking "SAVE JSON", one can download the input file for furthur training. | ||
|
|
||
|
|
||
| **Available activation functions for descriptor:** |
There was a problem hiding this comment.
Because there is a lack of guidance on available activation functions, neither in DP-GUI nor for editing 'input.json' by oneself.
You can tell me if there is a more suitable place to add.
There was a problem hiding this comment.
Fine~ It's better to left document work to you because it‘s hard for me to think about it comprehensively.
wanghan-iapcm
left a comment
There was a problem hiding this comment.
How was this implementation tested?
By using dp test to compare the results of models (trained with different activation functions) before and after compression. The test results show that all compressed models are very accurate. Moreover, using lammps to run those models to make sure there are no abnormal result. |
It looks great. Have you tested all types of activation functions you implemented? |


Now the model with activation functions such as 'relu', 'relu6', 'softplus', 'sigmoid' in descriptor can be compressed, and the output results have been well tested.
Modified related document with activation function.