-
Notifications
You must be signed in to change notification settings - Fork 137
Add extrapolation level calcualtion #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
cc0deb9
reading asi file
psn417 52a326d
Merge branch 'brucefan1983:master' into newest
psn417 b2a1b63
almost done, need debug
psn417 c026b3b
add dump
psn417 7f631fb
testing
psn417 e30c499
debug
psn417 2fa1b97
debug
psn417 3726fb9
change asi to float
psn417 c0be72e
Merge branch 'brucefan1983:master' into newest
psn417 12ec8f8
add doc
psn417 9588e08
Merge branch 'brucefan1983:master' into newest
psn417 2594abd
Merge branch 'brucefan1983:master' into newest
psn417 03bb8d9
Merge branch 'brucefan1983:master' into master
psn417 d88732d
Merge branch 'brucefan1983:master' into master
psn417 005b8ed
Merge branch 'brucefan1983:master' into master
psn417 fbf9476
debug
psn417 f77f47f
debug
psn417 d8a60e0
debug
psn417 d099bc4
Merge branch 'brucefan1983:master' into master
psn417 9244abd
Merge branch 'brucefan1983:master' into master
psn417 59c8480
Merge branch 'brucefan1983:master' into master
psn417 fe499e2
Merge branch 'master' of https://github.com/brucefan1983/GPUMD
psn417 78f5809
resolve problems
psn417 88d8bde
fix typo
psn417 5448ce4
fix typo
psn417 9c80271
Merge branch 'brucefan1983:master' into master
psn417 d8923e0
refactoring
psn417 1efe82f
Merge branch 'master' of https://github.com/psn417/GPUMD
psn417 e301bc9
debug
psn417 e63cad5
add name
psn417 38e32b6
speed up
psn417 e0921a6
Revert "speed up"
psn417 d8d4871
add cublas
psn417 a8ab142
Revert "speed up"
psn417 e613a5d
Merge branch 'cublas'
psn417 1b2fb1f
clean
psn417 5724a9d
add macros
psn417 67dd766
change include
psn417 54bf51c
change matrix
psn417 e2ffacd
change cuda version
psn417 146d4d5
better code
psn417 5960ce7
Merge branch 'master' of github.com:psn417/GPUMD
psn417 5ee9ee4
fix typo
psn417 0f9c250
remove space
psn417 9c647c6
fix bug
psn417 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.. _kw_compute_extrapolation: | ||
.. index:: | ||
single: compute_extrapolation (keyword in run.in) | ||
|
||
:attr:`compute_extrapolation` | ||
============================= | ||
|
||
This keyword is used to compute the extrapolation grade of structures in an NEP potential. | ||
|
||
The extrapolation grade `gamma` can be considered as the uncertainty of a structure relative to the training set. | ||
|
||
A structure with large `gamma` tends to have higher energy and force errors. | ||
|
||
Similiar methods have been applied to MTP ([Podryabinkin2023]_) and ACE ([Lysogorskiy2023]_). You can refer to their papers for more details. | ||
|
||
Before computing `gamma`, you need to obtain an `active set` from your training set. There are some Python scripts to do it <https://github.com/psn417/nep_active>. | ||
|
||
There are also some Python scripts to perform active learning automatically <https://github.com/psn417/nep_maker>. | ||
|
||
Syntax | ||
------ | ||
|
||
This keyword is used as follows:: | ||
|
||
compute_extrapolation asi_file <asi_file> gamma_low <gamma_low> gamma_high <gamma_high> check_interval <check_interval> dump_interval <dump_interval> | ||
|
||
:attr:`asi_file` is the name of the Active Set Inversion (ASI) file. This file is generate by the Python script in <https://github.com/psn417/nep_active>. | ||
|
||
:attr:`gamma_low`: Only if the max gamma value of a structure exceeds `gamma_low`, then the structure will be dumped into `extrapolation_dump.xyz` file. The default value is `0`. | ||
|
||
:attr:`gamma_high`: If the max gamma value of a structure exceeds `gamma_high`, then the simulation will stop. The default value is very large so it will never stop. | ||
|
||
:attr:`check_interval`: Since calculating gamma value is slow, you can check the gamma value every `check_interval` steps. The default value is `1` (check every step). | ||
|
||
:attr:`dump_interval`: You can set the minimum interval between dumps to `dump_interval` steps. The default value is `1`. | ||
|
||
Example | ||
------- | ||
|
||
.. code:: | ||
|
||
compute_extrapolation asi_file active_set.asi gamma_low 5 gamma_high 10 check_interval 10 dump_interval 10 | ||
|
||
This means that the structures with max gamma between 5-10 will be dumped. The gamma value will be checked every 10 steps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.