Python package collecting commonly used snippets for the Keras library.
How do I install this package?
As usual, just download it using pip:
pip install extra_keras_utils
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
is_gpu_available
Method that returns a boolean if a GPU is detected or not.
from extra_keras_utils import is_gpu_available
if is_gpu_available():
print("Using gpu!")
is_multi_gpu
Method that returns a boolean if more than one GPU is detected.
from extra_keras_utils import is_multi_gpu
if is_multi_gpu():
print("More than one GPU is available!")
set_seed
Method to get reproducible results.
from extra_keras_utils import set_seed
set_seed(42) # set as seed 42, the results are nearly reproducible.
set_seed(42, kill_parallelism=true) # set as seed 42, the results are fully reproducible.
Metadata
Release files for extra-keras-utils 1.0.4
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 |
|---|---|---|---|---|
| extra_keras_utils-1.0.4.tar.gz | 3.6 kB | Without provenance | Details for extra_keras_utils-1.0.4.tar.gz |
Release files / extra_keras_utils-1.0.4.tar.gz
| Download URL | extra_keras_utils-1.0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31bb6d51aca22cd36fe3b421f1181087b7969ba3a64f73df0e72b30447785d07
|
|
BLAKE2b-256 checksum How to use checksums |
77c5862ac6cbe995048d88f04460018f6320cdae601f1a7721db45aea9ffd5bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for extra-keras-utils 1.0.4
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.