A module for processing user data to NN input
Project description
Neural Network inputs MAKER
Description
This python package will detect the output of other codes (still Quantum Espresso) and create a json file that can be used as the raw input for Neural Networks.
Prerequisite
The python libraries which are needed to install:
numpy,
pandas,
json,
collections,
collections.abc,
ase.data,
glob
Other codes and necessary files:
QE output
Madetory!
User have to provide a Quantum ESPRESSO output (PWSCF) as a necessary ingredient for this package!
The folder that includes this file, should be specify with argument --folder [directory] in runtime!
Platform or supercomputer
Madetory!
Supercomputer can be identified with argument --platform [supercompure name] in runtime too!
There is no other necessary inputs, but optional one!
SYSINFO.JSON
Optional!
The user can improve the hardware information from the utilized flatform or supercomputer.
This information can be provided as a JSON file with this keywords:
"Platform": platform, "CPU": cpu_model, "Node": node_info, "Memory": f"{total_memory_gb:.2f} GB DDR4 RAM"
Although in order to avoid error, we recommend to use IDENTIKEEP plugin for generating the JSON file.
This JSON file sould be named sysinfo.json (default name for IDENTIKEEP output) and placed in the same directory as of QE output.
How to install
Method 1:
Installation is based on Python Package Index (PyPI) repository.
pip install NNimaker
Method 2:
However, if you prefer to create the wheel of package on your laptop, you just need to download the source code from the origin repository . Then follow the path below to create the wheel on your system and then install it. (Note that you may need use virtual environment to install the necessary packages)
pip install setuptools wheel
python setup.py sdist bdist_wheel
pip install dist/NNimaker-<VERSION>-py3-none-any.whl
How to USE
It is possible to use terminal commands ( The console point is provided). Since it supports just Quantum Espresso output (till this moment), the command is:
NNimake_QE --folder [DIRECTORY] --outname [OUTPUT] --netinfo [NETWORK INFORMATION] --algname [ALGORITHM]
All of the arguments have default values. Default for directory is ./ , Default for output name is data.json, Default for netinfo is Unknown, and Default for algorithm name is DAVIDSON.
For example, I put the sysinfo.json and output file of QE in ../work/ directory. The command line would be:
NNimake_QE --folder ../work/ --netinfo "DrogonFly..."
You can import the package in your python code directly:
from NNimaker import create_json
create_json("../work", outname="data.json", net_info="Unknown", algoname='davidson')
Good luck!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NNimaker-2.5.tar.gz.
File metadata
- Download URL: NNimaker-2.5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14712c66cc47ffb510dd998f9884e9119582410622701bf280cfa3a3cafc5951
|
|
| MD5 |
92a18e30bcd57dc689a180b5695a40f9
|
|
| BLAKE2b-256 |
a1652d2fa3da2cf2b54f9feb12da5972d7b46948780ddf2c58fb2111a28af7a5
|
File details
Details for the file NNimaker-2.5-py3-none-any.whl.
File metadata
- Download URL: NNimaker-2.5-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed8dd11859a45b363c7a44c9f0ea92b480a98d9c8145e760f75a7c7e3a483c8
|
|
| MD5 |
acf9dae3e8467f278272df3d222bbf01
|
|
| BLAKE2b-256 |
03063973454d80b813167a25a858a92cc61d50cc71a700455fae8c3f169f4b77
|