This release is a pre-release and may not be stable for production use.
GANPDFs
Enhance the statistics of a prior PDF set by generating fake PDF replicas using Generative Adversarial Neural Networks (GANs). Documentation is available at https://n3pdf.github.io/ganpdfs/.
How to install
To install the ganpdfs package, just type
python setup.py install or python setup.py develop (if you are a developper)
The package can be installed via the Python Package Index (PyPI) by running:
pip install ganpdfs --upgrade
How to run
The code requires as an input a runcard.yml file in which the name of the PDF set and the
characteristics of the Neural Network Models are defined. Examples of runcards can be found
in the runcard folder.
ganpdfs runcard/reference.yml [-t TOT_REPLICAS_SIZE]
In case one does not want to train the GANs and directly resort to a pre-trained one, a pre-trained
model
can be used out of the box by setting the entry use_saved_model to True in the runcard.
In order to evolve the generated output grids, just run:
evolven3fit <PRIOR_PDF_NAME>_enhanced <TOT_REPLICAS_SIZE>
Then, to link the generated PDF set to the LHAPDF data directory, use the postgans script by
running:
postgans --pdf <PRIOR_PDF_NAME> --nenhanced <TOT_REPLICAS_SIZE>
Hyper-parameter opitmization
For more details on how to define specific parameters when running the code and on how to perform a hyper-parameter scan, please head to the section how to of the documentation.
Metadata
Release files for ganpdfs 1.1.0.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ganpdfs-1.1.0.dev0.tar.gz | 25.1 kB | Without provenance | Details for ganpdfs-1.1.0.dev0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ganpdfs-1.1.0.dev0-py3-none-any.whl | Python 3 | none | any | Details for ganpdfs-1.1.0.dev0-py3-none-any.whl |
Total release size: 53.5 kB
Release files / ganpdfs-1.1.0.dev0.tar.gz
| Download URL | ganpdfs-1.1.0.dev0.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
838ee76f31897f3a39732cc074cd696a14c2fc81cb62e447d3693f98fe34c36e
|
|
BLAKE2b-256 checksum How to use checksums |
6828fedce75bce59639aef3dbf70a627a51f7241854c57a7c144ed9dca60a0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
|
Release files / ganpdfs-1.1.0.dev0-py3-none-any.whl
| Download URL | ganpdfs-1.1.0.dev0-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b732cec67b8711e42b0096e83723c65f639ae78bb427a404005e0e5559569c7d
|
|
BLAKE2b-256 checksum How to use checksums |
43fcf1b0525e5d4b69f86b9405e727fd3bed312a332f7165351a5bc1ac27ffeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
|
Security for ganpdfs 1.1.0.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.