pwact 0.1.28__py3-none-any.whl → 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pwact/active_learning/environment.py +13 -11
- pwact/active_learning/explore/run_model_md.py +110 -0
- pwact/active_learning/explore/select_image.py +10 -5
- pwact/active_learning/init_bulk/direct.py +182 -0
- pwact/active_learning/init_bulk/duplicate_scale.py +1 -1
- pwact/active_learning/init_bulk/explore.py +300 -0
- pwact/active_learning/init_bulk/init_bulk_run.py +87 -47
- pwact/active_learning/init_bulk/relabel.py +149 -116
- pwact/active_learning/label/labeling.py +132 -18
- pwact/active_learning/train/train_model.py +13 -3
- pwact/active_learning/user_input/init_bulk_input.py +55 -6
- pwact/active_learning/user_input/iter_input.py +12 -0
- pwact/active_learning/user_input/resource.py +19 -7
- pwact/active_learning/user_input/scf_param.py +24 -6
- pwact/active_learning/user_input/train_param/nep_param.py +2 -2
- pwact/active_learning/user_input/train_param/optimizer_param.py +1 -1
- pwact/active_learning/user_input/train_param/work_file_param.py +1 -1
- pwact/main.py +18 -9
- pwact/utils/app_lib/do_direct_sample.py +145 -0
- pwact/utils/app_lib/do_eqv2model.py +41 -0
- pwact/utils/app_lib/lammps.py +1 -1
- pwact/utils/constant.py +32 -12
- pwact/utils/file_operation.py +12 -5
- pwact-0.2.1.dist-info/METADATA +17 -0
- {pwact-0.1.28.dist-info → pwact-0.2.1.dist-info}/RECORD +29 -25
- {pwact-0.1.28.dist-info → pwact-0.2.1.dist-info}/WHEEL +1 -1
- pwact-0.1.28.dist-info/METADATA +0 -107
- {pwact-0.1.28.dist-info → pwact-0.2.1.dist-info}/LICENSE +0 -0
- {pwact-0.1.28.dist-info → pwact-0.2.1.dist-info}/entry_points.txt +0 -0
- {pwact-0.1.28.dist-info → pwact-0.2.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pwact
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: PWACT is an open-source automated active learning platform based on PWMLFF for efficient data sampling.
|
|
5
|
+
Home-page: https://github.com/LonxunQuantum/PWact
|
|
6
|
+
Author: LonxunQuantum
|
|
7
|
+
Author-email: lonxun@pwmat.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
|
|
15
|
+
# Dependencies
|
|
16
|
+
|
|
17
|
+
Please refer to the [`user manual`](http://doc.lonxun.com/PWMLFF/pwact/)
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
pwact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
pwact/main.py,sha256=
|
|
2
|
+
pwact/main.py,sha256=jCqNp0tn8P7R8EdPt81bqZlC-Ixjp_rnnFxMT7JAfXI,15375
|
|
3
3
|
pwact/active_learning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
pwact/active_learning/environment.py,sha256=
|
|
4
|
+
pwact/active_learning/environment.py,sha256=1vzOWnCNR2OXMFKz4DjQF2wb0aw1Xkjnz7cy1YGQrus,512
|
|
5
5
|
pwact/active_learning/explore/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
pwact/active_learning/explore/run_model_md.py,sha256=
|
|
7
|
-
pwact/active_learning/explore/select_image.py,sha256=
|
|
6
|
+
pwact/active_learning/explore/run_model_md.py,sha256=n3f6aSMr1Cpw_cSUrlH28JwoWW7VLwUMcF1XB0ao2sw,27448
|
|
7
|
+
pwact/active_learning/explore/select_image.py,sha256=1zpTCs_15FRlffBYfy1HQ1r79p2dNM8u8ZHvPysQTvc,14597
|
|
8
8
|
pwact/active_learning/init_bulk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pwact/active_learning/init_bulk/aimd.py,sha256=XzDlX2vylaljQKoUnv6nrI2NfiOdHZpq8qr3DenA1F4,10465
|
|
10
|
-
pwact/active_learning/init_bulk/
|
|
11
|
-
pwact/active_learning/init_bulk/
|
|
12
|
-
pwact/active_learning/init_bulk/
|
|
10
|
+
pwact/active_learning/init_bulk/direct.py,sha256=TBB7f13wbbURDgn4_IkgRZ-rwQ3p4gviNVYIAldi97U,9680
|
|
11
|
+
pwact/active_learning/init_bulk/duplicate_scale.py,sha256=hlGAr27YJhOElMz5GMyN0wWoChia4Jj_tvENsJ3wSBs,9481
|
|
12
|
+
pwact/active_learning/init_bulk/explore.py,sha256=IAxdOHPzCWjfvrHywyOuBQG2V76rpBZtsyNLQyIMThs,15932
|
|
13
|
+
pwact/active_learning/init_bulk/init_bulk_run.py,sha256=QX0x1-DevQPSYP1PlWji3hZN55DbeSXJJxgCZZkJXBM,11514
|
|
14
|
+
pwact/active_learning/init_bulk/relabel.py,sha256=gP_qqMWT_hMIcwFBdNmyVBHBpkQS52BzbQK80rGTvPQ,11974
|
|
13
15
|
pwact/active_learning/init_bulk/relax.py,sha256=edyCZLEylUckIwOLBa55agUMo-aedj0dvoyG165YpuE,10450
|
|
14
16
|
pwact/active_learning/label/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
pwact/active_learning/label/labeling.py,sha256=
|
|
17
|
+
pwact/active_learning/label/labeling.py,sha256=Vq2hH9i3DH4X0XidrzxwE-MzgYiWQ0VkFWZKj1Lhc_I,21800
|
|
16
18
|
pwact/active_learning/slurm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
19
|
pwact/active_learning/slurm/slurm.py,sha256=-Dmc2B9y4_27THCR2tZFXnwJvMmifivJeZ2FX8iy2Tw,16881
|
|
18
20
|
pwact/active_learning/slurm/slurm_tool.py,sha256=-4tc5dkpAUP0vmEdmqM8oYLcsUwixa4Z8h5_E9Gevdg,1249
|
|
@@ -20,27 +22,27 @@ pwact/active_learning/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
20
22
|
pwact/active_learning/test/test.py,sha256=TXsk-gDDOHDLywVljpqA-zHK3-PrZbGAHnK1T7T6T-o,3587
|
|
21
23
|
pwact/active_learning/train/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
24
|
pwact/active_learning/train/dp_kpu.py,sha256=GkGKEGhLmOvPERqgTkf_0_vD9zOEPlBX2N7vuSQG_-c,9317
|
|
23
|
-
pwact/active_learning/train/train_model.py,sha256=
|
|
25
|
+
pwact/active_learning/train/train_model.py,sha256=Hh6_yq_86Y4pqP60sbEaeCJexD9a-BTqop07l2FAQSI,12021
|
|
24
26
|
pwact/active_learning/user_input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
27
|
pwact/active_learning/user_input/cmd_infos.py,sha256=g1QW5Wi3JvmC5xEY4F-7AO1xBuJSjHG8IhZjom8haxQ,3728
|
|
26
|
-
pwact/active_learning/user_input/init_bulk_input.py,sha256=
|
|
27
|
-
pwact/active_learning/user_input/iter_input.py,sha256=
|
|
28
|
-
pwact/active_learning/user_input/resource.py,sha256=
|
|
29
|
-
pwact/active_learning/user_input/scf_param.py,sha256=
|
|
28
|
+
pwact/active_learning/user_input/init_bulk_input.py,sha256=M8IlT4ABJUEwomb6eQGq8d3h1darMHtDlws1fcq077k,9422
|
|
29
|
+
pwact/active_learning/user_input/iter_input.py,sha256=7k0M3BaP1dMWK2Bglvb2WXQ2Ugrfy0v7yMqPqWqNCdE,12744
|
|
30
|
+
pwact/active_learning/user_input/resource.py,sha256=OtsJEAWmMknLyrPB309C6ipyL1fCXHriF8sjXs5pjmg,7351
|
|
31
|
+
pwact/active_learning/user_input/scf_param.py,sha256=QX_Dd6c9Q2sjV4lIKjfV7t-DgIwDKZp7fh2KY5HyKOU,11262
|
|
30
32
|
pwact/active_learning/user_input/workdir.py,sha256=64J3wBbYzy6ztYHs513YHfEIF5d8zwv_WpF-U9HOEkA,8245
|
|
31
33
|
pwact/active_learning/user_input/train_param/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
34
|
pwact/active_learning/user_input/train_param/model_param.py,sha256=4-bJAGOJDTLT11lLqpEZAWMqgen7zghHESfHeb0UUb4,4574
|
|
33
|
-
pwact/active_learning/user_input/train_param/nep_param.py,sha256=
|
|
35
|
+
pwact/active_learning/user_input/train_param/nep_param.py,sha256=04GEKqT2miZYxgVtxTEGIWJW5mUZriPcvwfgdp7IL0g,21249
|
|
34
36
|
pwact/active_learning/user_input/train_param/nn_feature_type.py,sha256=eGmqfsPTlIpftzvUqHV_VziGQuUZ_KKqek3SQKZl85o,15640
|
|
35
|
-
pwact/active_learning/user_input/train_param/optimizer_param.py,sha256=
|
|
37
|
+
pwact/active_learning/user_input/train_param/optimizer_param.py,sha256=8zG3l6DqEjmwNCqRwpcA1J1oY2tm-J-V4zl3sM0G_ek,13085
|
|
36
38
|
pwact/active_learning/user_input/train_param/train_param.py,sha256=rpLmOncwqQ82Hudwwl-VzZKJv2jCtrsCsJN2UpuHqKg,16640
|
|
37
|
-
pwact/active_learning/user_input/train_param/work_file_param.py,sha256=
|
|
39
|
+
pwact/active_learning/user_input/train_param/work_file_param.py,sha256=3sQiHcquQO9hw0JexiMXkuf01gy871yjYz9GEZ3Icoo,12239
|
|
38
40
|
pwact/bin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
41
|
pwact/data_format/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
42
|
pwact/data_format/configop.py,sha256=6JA84cK7Ck-t1z3iLz3pPVJ-q4srhDiQQhs9-G-cxY0,11772
|
|
41
43
|
pwact/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
|
-
pwact/utils/constant.py,sha256=
|
|
43
|
-
pwact/utils/file_operation.py,sha256=
|
|
44
|
+
pwact/utils/constant.py,sha256=qKiASMwMpROa_w29NEyUG6Uov8di4UGprXBIa7tUGjc,19482
|
|
45
|
+
pwact/utils/file_operation.py,sha256=bfLezgJHD3BRtZFm0HwSGTNBPukVNICZFpXYWMs68A4,9827
|
|
44
46
|
pwact/utils/format_input_output.py,sha256=oYFydQy3-btXzieO2O2LbHFoeRyhPnLVE4c5TNgS-IQ,1798
|
|
45
47
|
pwact/utils/json_operation.py,sha256=BqBsnIjk1URoMW_s2yu7Gk8IBxlir-oo6ivt8P3RIqg,1794
|
|
46
48
|
pwact/utils/pre_al_data_util.py,sha256=QE-axnVYUIyORFiVs-WK9-UaJlMUFY816_rSyYOOJc8,2542
|
|
@@ -51,13 +53,15 @@ pwact/utils/app_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
51
53
|
pwact/utils/app_lib/common.py,sha256=lQmI-9Qumq62MNjr-eVlLL88ISDHBOb6vAfYYFcDIgM,6040
|
|
52
54
|
pwact/utils/app_lib/cp2k.py,sha256=txd-eMDUOsWPug395WJOQz3aqhwz7eU4hcEZIWTF1OY,15492
|
|
53
55
|
pwact/utils/app_lib/cp2k_dp.py,sha256=VP4gyPGhLcMAqAjrqCQSUiiGlESNlyYz7Gs3Q4QoUHo,6912
|
|
54
|
-
pwact/utils/app_lib/
|
|
56
|
+
pwact/utils/app_lib/do_direct_sample.py,sha256=G8VZH23c2vBJwG9pp_H9EvRVaRJPsQVliDH-v6l2Gek,4947
|
|
57
|
+
pwact/utils/app_lib/do_eqv2model.py,sha256=cRVzagozELK6kCZuX6dqg2gDHQPr7n3TQk6JghDjiy4,1509
|
|
58
|
+
pwact/utils/app_lib/lammps.py,sha256=t3nkBqwkViO6UbnInGKAHiwVngHKayeat2pPEtaZZIU,8015
|
|
55
59
|
pwact/utils/app_lib/pwmat.py,sha256=PTRPkG_d00ibGhpCe2-4M7MW3dx2ZuAyb9hT2jl_LAs,18047
|
|
56
60
|
pwact/utils/draw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
61
|
pwact/utils/draw/hist_model_devi.py,sha256=o1Try-ekith2A7S6u1mt3zuTqaQwyw5tdURReh8BeLY,4945
|
|
58
|
-
pwact-0.1.
|
|
59
|
-
pwact-0.1.
|
|
60
|
-
pwact-0.1.
|
|
61
|
-
pwact-0.1.
|
|
62
|
-
pwact-0.1.
|
|
63
|
-
pwact-0.1.
|
|
62
|
+
pwact-0.2.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
63
|
+
pwact-0.2.1.dist-info/METADATA,sha256=wk-2qBIua2agM_XNjx-pQ17K9dXDjbL0g88Caz-41kc,612
|
|
64
|
+
pwact-0.2.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
65
|
+
pwact-0.2.1.dist-info/entry_points.txt,sha256=p61auAnpbn8E2WjvHNBA7rb9_NRAOCew4zdcCj33cGc,42
|
|
66
|
+
pwact-0.2.1.dist-info/top_level.txt,sha256=fY1_7sH5Lke4dC9L8MbYM4fT5aat5eCkAmpkIzY1SlM,6
|
|
67
|
+
pwact-0.2.1.dist-info/RECORD,,
|
pwact-0.1.28.dist-info/METADATA
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pwact
|
|
3
|
-
Version: 0.1.28
|
|
4
|
-
Summary: PWACT is an open-source automated active learning platform based on PWMLFF for efficient data sampling.
|
|
5
|
-
Home-page: https://github.com/LonxunQuantum/PWact
|
|
6
|
-
Author: LonxunQuantum
|
|
7
|
-
Author-email: lonxun@pwmat.com
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.9
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
License-File: LICENSE
|
|
14
|
-
|
|
15
|
-
# Dependencies
|
|
16
|
-
|
|
17
|
-
Please refer to the [`user manual`](http://doc.lonxun.com/PWMLFF/active%20learning/)
|
|
18
|
-
|
|
19
|
-
1. AL-PWMLFF job scheduling uses the [SLURM](https://slurm.schedmd.com/documentation.html) cluster management and job scheduling system. SLURM must be installed on your computing cluster.
|
|
20
|
-
|
|
21
|
-
2. DFT calculations in AL-PWMLFF support [PWmat](https://www.pwmat.com/gpu-download), [VASP](https://www.vasp.at/), [CP2K](https://www.cp2k.org/) and DFTB. We have integrated DFTB in PWmat. You can find detailed usage instructions in the `DFTB_DETAIL section` of the [`PWmat Manual`](http://www.pwmat.com/pwmat-resource/Manual.pdf).
|
|
22
|
-
|
|
23
|
-
3. AL-PWMLFF model training is based on [`PWMLFF`](https://github.com/LonxunQuantum/PWMLFF). Refer to the [`PWMLFF documentation`](http://doc.lonxun.com/PWMLFF/Installation) for installation instructions ([`Download address for PWmat version integrated with DFTB`](https://www.pwmat.com/modulefiles/pwmat-resource/mstation-download/cuda-11.6-mstation-beta.zip)).
|
|
24
|
-
|
|
25
|
-
4. AL-PWMLFF Lammps molecular dynamics simulation is based on [Lammps_for_pwmlff](https://github.com/LonxunQuantum/Lammps_for_PWMLFF/tree/libtorch). Refer to the [`Lammps_for_pwmlff documentation`](https://github.com/LonxunQuantum/Lammps_for_PWMLFF/blob/libtorch/README) for installation instructions.
|
|
26
|
-
|
|
27
|
-
# Installation Process
|
|
28
|
-
You can install it through the pip command or the github source code installation.
|
|
29
|
-
|
|
30
|
-
## install by pip
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
pip install pwact
|
|
34
|
-
```
|
|
35
|
-
## from github
|
|
36
|
-
|
|
37
|
-
### Code Download
|
|
38
|
-
|
|
39
|
-
git clone https://github.com/LonxunQuantum/PWact.git
|
|
40
|
-
|
|
41
|
-
Then import environment variable.
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
export PATH=/data/home/wuxingxing/codespace/al_pwmlff/bin:$PATH
|
|
45
|
-
```
|
|
46
|
-
AL-PWMLFF is developed in Python and supports Python 3.9 and above. It is recommended to use the Python runtime environment provided by PWMLFF.
|
|
47
|
-
|
|
48
|
-
If you need to create a virtual environment for AL-PWMLFF separately, you only need to install the following dependent packages (compatible with your Python version, Python >= 3.9).
|
|
49
|
-
```bash
|
|
50
|
-
pip install numpy pandas tqdm pwdata
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# Command List
|
|
55
|
-
|
|
56
|
-
AL-PWMLFF includes the following commands, which are not case sensitive. The starting command is `pwact`
|
|
57
|
-
|
|
58
|
-
### 1. Display the available command list
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
pwact [ -h / --help / help ]
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### 2. Display the parameter list for cmd_name:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
pwact cmd_name -h
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### 3. Initial Training Set Preparation
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
pwact init_bulk param.json resource.json
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### 4. Active Learning
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
pwact run param.json resource.json
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
For the 3-th and 4-th command above, the names of the JSON files can be modified by the user, but it is required that the input order of [`param.json`](#paramjson) and [`resouce.json`](#resourcejson) cannot be changed.
|
|
83
|
-
|
|
84
|
-
### 5. Tool Commands
|
|
85
|
-
|
|
86
|
-
Convert MOVEMENT or OUTCAR to PWdata format
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
pwact to_pwdata
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Search for labeled datasets in the active learning directory
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pwact gather_pwdata
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### examples download
|
|
99
|
-
from github
|
|
100
|
-
```
|
|
101
|
-
https://github.com/LonxunQuantum/PWact/tree/main/pwact/example
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
from BaiduNetdisk included the calculation results of examples
|
|
105
|
-
```
|
|
106
|
-
https://pan.baidu.com/s/14E0u_7cpntiBZgg-C1S5XA?pwd=pwmt
|
|
107
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|